home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sgi / 12972 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  2.3 KB

  1. Path: sparky!uunet!gatech!darwin.sura.net!dtix!mimsy!afterlife!adm!news
  2. From: beyer@bflsgu.fl.bs.dlr.de (R. Beyer)
  3. Newsgroups: comp.sys.sgi
  4. Subject: batch, at and rc=1
  5. Message-ID: <32232@adm.brl.mil>
  6. Date: 27 Aug 92 14:58:31 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 85
  9.  
  10.  
  11. Hi,
  12.  
  13. first of all I thank Dave Olson, pjf@osiris and David Hinds for their
  14. advice on how to submit a job to 'at' or 'batch'..
  15.  
  16. However, further studies on an Indigo running IRIX 4.0.1 have shown
  17. the following curiosity: If identical scripts exist to be submitted
  18. to 'at' or 'batch' whereby one script is named 'test' and the other
  19. is named 'test.xyz' the latter is executed as expected while the script
  20. named 'test' is not executed and gets a tag "rc=1" in the cron logfile.
  21. I include a session log. Does anybody have an explanation for this
  22. behaviour ?
  23.  
  24. Thank you in advance and best regards.
  25.  
  26. Ralf Beyer
  27.  
  28. Session log:
  29.  
  30. sgu %ls -l
  31. -rwxr--r--   1 beyer    user          79 Aug 27 15:32 test
  32. -rwxr--r--   1 beyer    user          79 Aug 27 15:33 test.xyz
  33.  
  34. sgu %more test
  35. #! /bin/csh -f
  36.  
  37. set N=0
  38.  
  39. while ($N < 3)
  40.         echo "Hello world"
  41.         @ N = $N + 1
  42. end
  43.  
  44. sgu %more test.xyz
  45. #! /bin/csh -f
  46.  
  47. set N=0
  48.  
  49. while ($N < 3)
  50.         echo "Hello world"
  51.         @ N = $N + 1
  52. end
  53.  
  54. sgu %batch
  55. test
  56. warning: commands will be executed using /bin/sh
  57. job 714922702.b at Thu Aug 27 15:38:22 1992
  58. sgu %Mail
  59. No mail for beyer
  60. sgu %batch
  61. test.xyz
  62. warning: commands will be executed using /bin/sh
  63. job 714922713.b at Thu Aug 27 15:38:33 1992
  64. sgu %Mail
  65. Mail version 5.2 6/21/85.  Type ? for help.
  66. "/usr/mail/beyer": 1 message 1 new
  67. >N  1 beyer               Thu Aug 27 15:38  17/467  
  68. Message  1:
  69. From beyer  Thu Aug 27 15:38:41 1992
  70. Date: Thu, 27 Aug 92 15:38:41 MDT
  71. From: beyer (R. Beyer)
  72. Apparently-To: beyer
  73.  
  74. Hello world
  75. Hello world
  76. Hello world
  77.  
  78.  
  79. *************************************************
  80. Cron: The previous message is the standard output
  81.       and standard error of one of your cron commands.
  82.  
  83. & d
  84. & q
  85. sgu %
  86.  
  87.  
  88. ---------------------------------------------------------------------
  89. Ralf Beyer - German Aerospace Research Establishment, Institute for 
  90. Flight Guidance, Flughafen, D-3300 Braunschweig, Fed. Rep. of Germany
  91.       Phone: 0049-531-395-2530  Fax: 0049-531-395-2550
  92. EARN/BITNET: fl17@dlrvmbs.bitnet Internet: beyer@bflsgu.fl.bs.dlr.de
  93. ---------------------------------------------------------------------
  94.