🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: cron and shell scripts

#2255
From: Mikael Behrens
Date: Thu, 07 Jan 1993 20:53
39 lines
1946 bytes
Mikael Behrens writes
| 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
| 

Thanks to Robert Lutwak who responded to my post, the problem is solved.   
My script uses ftp, and I had to specify it's full pathname for it to run  
under cron.

Thanks to everyone else who responded too.  The net sure is a nice  
resource (especially when the online documentation has NOTHING to say!)

Mikael Behrens
Technical Details
Message-ID: <86306@ut-emx.uucp>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!ut-emx!scout.utexas.edu
References: <86258@ut-emx.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!ut-emx!scout.utexas.edu
From: mikael@scout.utexas.edu (Mikael Behrens)
Newsgroups: comp.sys.next.sysadmin
Subject: Re: cron and shell scripts
Message-ID: <86306@ut-emx.uucp>
Date: 7 Jan 93 20:53:22 GMT
References: <86258@ut-emx.uucp>
Sender: news@ut-emx.uucp
Reply-To: mbehrens@cs.utexas.edu
Distribution: usa
Lines: 39