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

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