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

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!ut-emx!scout.utexas.edu
  2. From: mikael@scout.utexas.edu (Mikael Behrens)
  3. Newsgroups: comp.sys.next.sysadmin
  4. Subject: cron and shell scripts
  5. Keywords: cron shell script
  6. Message-ID: <86258@ut-emx.uucp>
  7. Date: 6 Jan 93 23:32:39 GMT
  8. Sender: news@ut-emx.uucp
  9. Reply-To: mbehrens@cs.utexas.edu
  10. Distribution: usa
  11. Lines: 29
  12.  
  13. I'm running a mono NeXTstation with Mamakos' SLIP software, and I have a  
  14. shell script that retrieves my mail from my school account.  This script  
  15. works; I've tested it several times.
  16.  
  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.  
  20. 0,15,30,45 * * * *    root /usr/lib/atrun
  21. 0 2 * * *    root    /bin/sh /usr/adm/daily >/usr/adm/daily.log 2>&1
  22. 30 3 * * 6    root    /bin/sh /usr/adm/weekly >/usr/adm/weekly.log 2>&1
  23. 30 5 1 * *    root    /bin/sh /usr/adm/monthly >/usr/adm/monthly.log  
  24. 2>&1
  25. 10 17 * * *    mikael    /bin/sh /Users/mikael/Apps/RetrieveMail
  26.  
  27.  
  28. The last line is my addition.  I've been changing the times to test it.   
  29. I've also tried this entry:
  30.  
  31. 10 17 * * *    mikael    /Users/mikael/Apps/RetrieveMail
  32.  
  33. Neither works.  When the specified time rolls around nothing happens.   
  34. I've rebooted after changing the crontab file, but that doesn't seem to  
  35. help.  Is there a log file somewhere where errors are reported?  I've  
  36. never messed with cron before, and I'm completely stumped.  Any help would  
  37. be greatly apprecieated.
  38.  
  39. Mikael
  40.  
  41.  
  42.