home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.questions:13318 news.software.nntp:1497
- Path: sparky!uunet!gossip.pyramid.com!olivea!sun-barr!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!m2.dseg.ti.com!ernest!alan
- From: alan@ernest.itg.ti.com (Alan Edmonds)
- Newsgroups: comp.unix.questions,news.software.nntp
- Subject: Re: cron not finding script
- Message-ID: <BxMD3D.Gzx@ernest.itg.ti.com>
- Date: 12 Nov 92 20:04:24 GMT
- References: <92315.102834IETAM@ASUACAD.BITNET>
- Organization: Texas Instruments, Inc. - Plano, Tx
- Lines: 39
-
- In article <92315.102834IETAM@ASUACAD.BITNET> Thom Anthony McCarty <IETAM@ASUACAD.BITNET> 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'
- >
-
- Get rid of the apostrophes. You are turning a script with an argument
- into a script ( with an embeded space in the name) with no arguments.
-
- >Subject: Output from "cron" command
- >
- >Your "cron" job
- >
- > '/usr/lib/newsbin/input/newsrunning off'
- >
- >produced the following output:
- >
- >sh: /usr/lib/newsbin/input/newsrunning off: not found
-
- Notice it says 'newsrunning off' is the name of the script.
-
- --
- Alan Edmonds Texas Instruments, Inc.
- I don't speak for TI; TI doesn't speak for me M/S 8515
- Work phone: (214)575-6427 6620 Chase Oaks Blvd.
- Email: edmonds@lobby.ti.com Plano, Texas 75023
-