home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / question / 13379 < prev    next >
Encoding:
Internet Message Format  |  1992-11-14  |  1.8 KB

  1. Path: sparky!uunet!ogicse!news.tek.com!vice!philw
  2. From: philw@vice.ICO.TEK.COM (Philip W White)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: cron not finding script
  5. Message-ID: <10753@vice.ICO.TEK.COM>
  6. Date: 13 Nov 92 17:22:09 GMT
  7. Article-I.D.: vice.10753
  8. Distribution: usa
  9. Organization: Tektronix Inc., Beaverton, Or.
  10. Lines: 40
  11.  
  12.  
  13. In article <92315.102834IETAM@ASUACAD.BITNET> IETAM@ASUACAD.BITNET (Thom Anthony McCarty) writes:
  14. ::
  15. ::I am executing a Bourne shell script, newsrunning, from within cron.
  16. ::I have given the absolute filename (including the path) but cron says
  17. ::it cannot find the script:
  18. ::
  19. ::
  20. ::helpdesk% crontab -l
  21. ::5,10,20,25,35,40,50,55 * 1-31 * 1-6 '/usr/lib/newsbin/input/newsrun'
  22. ::30 8    1-31 *  1-5     '/usr/lib/newsbin/input/newsrunning off'
  23. ::00 17   1-31 *  1-5     '/usr/lib/newsbin/input/newsrunning on'
  24. ::#40 *    1-31 *  0-6     '/usr/lib/newsbin/batch/sendbatches'
  25. ::59 0    1-31 *  0-6     '/usr/lib/newsbin/expire/doexpire'
  26. ::10 8    1-31 *  0-6     '/usr/lib/newsbin/maint/newsdaily'
  27. ::00 5,13,21      1-31 *  1-5     '/usr/lib/newsbin/maint/newswatch
  28. ::| mail page'
  29. ::1,31 *   1-31 *  1-5     '/usr/lib/newsbin/utils/create-desc'
  30. ::
  31. ::(mail msg resulting said in part:)
  32. ::Your "cron" job
  33. ::
  34. ::    '/usr/lib/newsbin/input/newsrunning off'
  35. ::
  36. ::produced the following output:
  37. ::
  38. ::sh: /usr/lib/newsbin/input/newsrunning off: not found
  39. ::
  40.  Looks to me as if it is trying to run:
  41. /usr/lib/newsbin/input/newsrunning off
  42.  
  43. That is a file name which includes a space.  The space is just before "off".
  44.  
  45. Either try removing the '' around the command, or create a new file
  46. which calls newsrunning with the off argument.  Put the name of
  47. the new file in crontab
  48.  
  49.       Phil White   Tektronix, Beaverton, OR
  50. USENET:  philip.w.white@tek.COM
  51.  US Mail: Mail Stop 59-432, P.O. Box 500, Beaverton OR 97077-0001
  52.