home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / next / sysadmin / 7329 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.9 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!ut-emx!scout.utexas.edu
  2. From: mikael@scout.utexas.edu (Mikael Behrens)
  3. Newsgroups: comp.sys.next.sysadmin
  4. Subject: Re: cron and shell scripts
  5. Message-ID: <86306@ut-emx.uucp>
  6. Date: 7 Jan 93 20:53:22 GMT
  7. References: <86258@ut-emx.uucp>
  8. Sender: news@ut-emx.uucp
  9. Reply-To: mbehrens@cs.utexas.edu
  10. Distribution: usa
  11. Lines: 39
  12.  
  13. Mikael Behrens writes
  14. | I'm running a mono NeXTstation with Mamakos' SLIP software, and I have a  
  15. | shell script that retrieves my mail from my school account.  This script  
  16. | works; I've tested it several times.
  17. | I would like to have this script periodically executed by cron, but I  
  18. | can't seem to make it work.  Here's my /private/etc/crontab file:
  19. | 0,15,30,45 * * * *    root /usr/lib/atrun
  20. | 0 2 * * *    root    /bin/sh /usr/adm/daily >/usr/adm/daily.log 2>&1
  21. | 30 3 * * 6    root    /bin/sh /usr/adm/weekly >/usr/adm/weekly.log 2>&1
  22. | 30 5 1 * *    root    /bin/sh /usr/adm/monthly >/usr/adm/monthly.log  
  23. | 2>&1
  24. | 10 17 * * *    mikael    /bin/sh /Users/mikael/Apps/RetrieveMail
  25. | The last line is my addition.  I've been changing the times to test it.   
  26. | I've also tried this entry:
  27. | 10 17 * * *    mikael    /Users/mikael/Apps/RetrieveMail
  28. | Neither works.  When the specified time rolls around nothing happens.   
  29. | I've rebooted after changing the crontab file, but that doesn't seem to  
  30. | help.  Is there a log file somewhere where errors are reported?  I've  
  31. | never messed with cron before, and I'm completely stumped.  Any help  
  32. would  
  33. | be greatly apprecieated.
  34. | Mikael
  35.  
  36. Thanks to Robert Lutwak who responded to my post, the problem is solved.   
  37. My script uses ftp, and I had to specify it's full pathname for it to run  
  38. under cron.
  39.  
  40. Thanks to everyone else who responded too.  The net sure is a nice  
  41. resource (especially when the online documentation has NOTHING to say!)
  42.  
  43. Mikael Behrens
  44.