🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.sysadmin
Article #2240

cron and shell scripts

#2240
From: Mikael Behrens
Date: Wed, 06 Jan 1993 23:32
27 lines
1526 bytes
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
Technical Details
Message-ID: <86258@ut-emx.uucp>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!ut-emx!scout.utexas.edu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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