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

  1. Xref: sparky comp.unix.questions:13318 news.software.nntp:1497
  2. 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
  3. From: alan@ernest.itg.ti.com (Alan Edmonds)
  4. Newsgroups: comp.unix.questions,news.software.nntp
  5. Subject: Re: cron not finding script
  6. Message-ID: <BxMD3D.Gzx@ernest.itg.ti.com>
  7. Date: 12 Nov 92 20:04:24 GMT
  8. References: <92315.102834IETAM@ASUACAD.BITNET>
  9. Organization: Texas Instruments, Inc. - Plano, Tx
  10. Lines: 39
  11.  
  12. In article <92315.102834IETAM@ASUACAD.BITNET> Thom Anthony McCarty <IETAM@ASUACAD.BITNET> writes:
  13. >
  14. >I am executing a Bourne shell script, newsrunning, from within cron.
  15. >I have given the absolute filename (including the path) but cron says
  16. >it cannot find the script:
  17. >
  18. >
  19. >helpdesk% crontab -l
  20. >5,10,20,25,35,40,50,55 * 1-31 * 1-6 '/usr/lib/newsbin/input/newsrun'
  21. >30 8    1-31 *  1-5     '/usr/lib/newsbin/input/newsrunning off'
  22. >00 17   1-31 *  1-5     '/usr/lib/newsbin/input/newsrunning on'
  23. >#40 *    1-31 *  0-6     '/usr/lib/newsbin/batch/sendbatches'
  24. >59 0    1-31 *  0-6     '/usr/lib/newsbin/expire/doexpire'
  25. >10 8    1-31 *  0-6     '/usr/lib/newsbin/maint/newsdaily'
  26. >00 5,13,21      1-31 *  1-5     '/usr/lib/newsbin/maint/newswatch
  27. >| mail page'
  28. >1,31 *   1-31 *  1-5     '/usr/lib/newsbin/utils/create-desc'
  29. >
  30.  
  31. Get rid of the apostrophes.  You are turning a script with an argument
  32. into a script ( with an embeded space in the name) with no arguments.
  33.  
  34. >Subject: Output from "cron" command
  35. >
  36. >Your "cron" job
  37. >
  38. >    '/usr/lib/newsbin/input/newsrunning off'
  39. >
  40. >produced the following output:
  41. >
  42. >sh: /usr/lib/newsbin/input/newsrunning off: not found
  43.  
  44. Notice it says 'newsrunning off' is the name of the script.
  45.  
  46. -- 
  47. Alan Edmonds                                     Texas Instruments, Inc.
  48. I don't speak for TI; TI doesn't speak for me    M/S 8515
  49. Work phone: (214)575-6427                        6620 Chase Oaks Blvd.
  50. Email: edmonds@lobby.ti.com                      Plano, Texas  75023
  51.