home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!darwin.sura.net!dtix!mimsy!afterlife!adm!news
- From: beyer@bflsgu.fl.bs.dlr.de (R. Beyer)
- Newsgroups: comp.sys.sgi
- Subject: batch, at and rc=1
- Message-ID: <32232@adm.brl.mil>
- Date: 27 Aug 92 14:58:31 GMT
- Sender: news@adm.brl.mil
- Lines: 85
-
-
- Hi,
-
- first of all I thank Dave Olson, pjf@osiris and David Hinds for their
- advice on how to submit a job to 'at' or 'batch'..
-
- However, further studies on an Indigo running IRIX 4.0.1 have shown
- the following curiosity: If identical scripts exist to be submitted
- to 'at' or 'batch' whereby one script is named 'test' and the other
- is named 'test.xyz' the latter is executed as expected while the script
- named 'test' is not executed and gets a tag "rc=1" in the cron logfile.
- I include a session log. Does anybody have an explanation for this
- behaviour ?
-
- Thank you in advance and best regards.
-
- Ralf Beyer
-
- Session log:
-
- sgu %ls -l
- -rwxr--r-- 1 beyer user 79 Aug 27 15:32 test
- -rwxr--r-- 1 beyer user 79 Aug 27 15:33 test.xyz
-
- sgu %more test
- #! /bin/csh -f
-
- set N=0
-
- while ($N < 3)
- echo "Hello world"
- @ N = $N + 1
- end
-
- sgu %more test.xyz
- #! /bin/csh -f
-
- set N=0
-
- while ($N < 3)
- echo "Hello world"
- @ N = $N + 1
- end
-
- sgu %batch
- test
- warning: commands will be executed using /bin/sh
- job 714922702.b at Thu Aug 27 15:38:22 1992
- sgu %Mail
- No mail for beyer
- sgu %batch
- test.xyz
- warning: commands will be executed using /bin/sh
- job 714922713.b at Thu Aug 27 15:38:33 1992
- sgu %Mail
- Mail version 5.2 6/21/85. Type ? for help.
- "/usr/mail/beyer": 1 message 1 new
- >N 1 beyer Thu Aug 27 15:38 17/467
- &
- Message 1:
- From beyer Thu Aug 27 15:38:41 1992
- Date: Thu, 27 Aug 92 15:38:41 MDT
- From: beyer (R. Beyer)
- Apparently-To: beyer
-
- Hello world
- Hello world
- Hello world
-
-
- *************************************************
- Cron: The previous message is the standard output
- and standard error of one of your cron commands.
-
- & d
- & q
- sgu %
-
-
- ---------------------------------------------------------------------
- Ralf Beyer - German Aerospace Research Establishment, Institute for
- Flight Guidance, Flughafen, D-3300 Braunschweig, Fed. Rep. of Germany
- Phone: 0049-531-395-2530 Fax: 0049-531-395-2550
- EARN/BITNET: fl17@dlrvmbs.bitnet Internet: beyer@bflsgu.fl.bs.dlr.de
- ---------------------------------------------------------------------
-