home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!news.tek.com!vice!philw
- From: philw@vice.ICO.TEK.COM (Philip W White)
- Newsgroups: comp.unix.questions
- Subject: Re: cron not finding script
- Message-ID: <10753@vice.ICO.TEK.COM>
- Date: 13 Nov 92 17:22:09 GMT
- Article-I.D.: vice.10753
- Distribution: usa
- Organization: Tektronix Inc., Beaverton, Or.
- Lines: 40
-
-
- In article <92315.102834IETAM@ASUACAD.BITNET> IETAM@ASUACAD.BITNET (Thom Anthony McCarty) writes:
- ::
- ::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'
- ::
- ::(mail msg resulting said in part:)
- ::Your "cron" job
- ::
- :: '/usr/lib/newsbin/input/newsrunning off'
- ::
- ::produced the following output:
- ::
- ::sh: /usr/lib/newsbin/input/newsrunning off: not found
- ::
- Looks to me as if it is trying to run:
- /usr/lib/newsbin/input/newsrunning off
-
- That is a file name which includes a space. The space is just before "off".
-
- Either try removing the '' around the command, or create a new file
- which calls newsrunning with the off argument. Put the name of
- the new file in crontab
-
- Phil White Tektronix, Beaverton, OR
- USENET: philip.w.white@tek.COM
- US Mail: Mail Stop 59-432, P.O. Box 500, Beaverton OR 97077-0001
-