home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.questions:13282 news.software.nntp:1494
- Path: sparky!uunet!gossip.pyramid.com!olivea!sun-barr!cs.utexas.edu!asuvax!asuacad!ietam
- From: IETAM@ASUACAD.BITNET (Thom Anthony McCarty)
- Newsgroups: comp.unix.questions,news.software.nntp
- Subject: cron not finding script
- Message-ID: <92315.102834IETAM@ASUACAD.BITNET>
- Date: 10 Nov 92 17:28:34 GMT
- Organization: Arizona State University
- Lines: 63
-
-
- I am executing a Bourne shell script, newsrunning, from within cron.
- I have given the absolute filename (including the path) but cron says
- it cannot find the script:
-
-
- helpdesk% crontab -l
- 5,10,20,25,35,40,50,55 * 1-31 * 1-6 '/usr/lib/newsbin/input/newsrun'
- 30 8 1-31 * 1-5 '/usr/lib/newsbin/input/newsrunning off'
- 00 17 1-31 * 1-5 '/usr/lib/newsbin/input/newsrunning on'
- #40 * 1-31 * 0-6 '/usr/lib/newsbin/batch/sendbatches'
- 59 0 1-31 * 0-6 '/usr/lib/newsbin/expire/doexpire'
- 10 8 1-31 * 0-6 '/usr/lib/newsbin/maint/newsdaily'
- 00 5,13,21 1-31 * 1-5 '/usr/lib/newsbin/maint/newswatch
- | mail page'
- 1,31 * 1-31 * 1-5 '/usr/lib/newsbin/utils/create-desc'
-
-
- Although the script works from when I'm logged on the "news" account,
- I get the following mail when cron attempts to run the script:
-
-
- From daemon Tue Nov 10 08:30:02 1992
- Return-Path: <root>
- Received: by helpdesk.inre.asu.edu (4.1/SMI-4.1)
- id AA09380; Tue, 10 Nov 92 08:30:02 MST
- Date: Tue, 10 Nov 92 08:30:02 MST
- From: root (Operator)
- Message-Id: <9211101530.AA09380@helpdesk.inre.asu.edu>
- To: news
- Subject: Output from "cron" command
- Status: R
-
- Your "cron" job
-
- '/usr/lib/newsbin/input/newsrunning off'
-
- produced the following output:
-
- sh: /usr/lib/newsbin/input/newsrunning off: not found
-
-
- And here's the kicker; I have given an absolute filename and cron
- cannot find it:
-
-
- helpdesk% ls -al /usr/lib/newsbin/input
- total 144
- drwxrwsr-x 2 news 512 Oct 29 10:53 .
- drwxrwsr-x 10 news 512 Nov 5 10:08 ..
- -rwxrwxr-x 1 news 24576 Sep 23 08:55 bdecode
- -rwxrwxr-x 1 news 24576 Sep 23 08:55 c7decode
- -rwx--x--x 1 news 1499 Sep 23 08:55 cunbatch
- -rw------- 1 root 51740 Oct 7 10:32 mail.man
- -rwxr-xr-x 1 news 3693 Nov 2 13:03 newsrun
- -rwxr-xr-x 1 news 510 Sep 23 08:55 newsrunning
- -rwsrwsr-x 1 news 32768 Sep 23 08:55 newsspool
- -rwx--x--x 1 news 239 Sep 23 08:55 recenews
- -rwx--x--x 1 news 279 Sep 23 08:55 recpnews
- -rwx--x--x 1 news 1499 Sep 23 08:55 rnews
-
- Any words of wisdom (or even plain and simple guesses) would be
- greatly appreciated.
-