home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!ut-emx!scout.utexas.edu
- From: mikael@scout.utexas.edu (Mikael Behrens)
- Newsgroups: comp.sys.next.sysadmin
- Subject: cron and shell scripts
- Keywords: cron shell script
- Message-ID: <86258@ut-emx.uucp>
- Date: 6 Jan 93 23:32:39 GMT
- Sender: news@ut-emx.uucp
- Reply-To: mbehrens@cs.utexas.edu
- Distribution: usa
- Lines: 29
-
- I'm running a mono NeXTstation with Mamakos' SLIP software, and I have a
- shell script that retrieves my mail from my school account. This script
- works; I've tested it several times.
-
- I would like to have this script periodically executed by cron, but I
- can't seem to make it work. Here's my /private/etc/crontab file:
-
- 0,15,30,45 * * * * root /usr/lib/atrun
- 0 2 * * * root /bin/sh /usr/adm/daily >/usr/adm/daily.log 2>&1
- 30 3 * * 6 root /bin/sh /usr/adm/weekly >/usr/adm/weekly.log 2>&1
- 30 5 1 * * root /bin/sh /usr/adm/monthly >/usr/adm/monthly.log
- 2>&1
- 10 17 * * * mikael /bin/sh /Users/mikael/Apps/RetrieveMail
-
-
- The last line is my addition. I've been changing the times to test it.
- I've also tried this entry:
-
- 10 17 * * * mikael /Users/mikael/Apps/RetrieveMail
-
- Neither works. When the specified time rolls around nothing happens.
- I've rebooted after changing the crontab file, but that doesn't seem to
- help. Is there a log file somewhere where errors are reported? I've
- never messed with cron before, and I'm completely stumped. Any help would
- be greatly apprecieated.
-
- Mikael
-
-
-