Crontab

Brian Hessee gasp at runbox.com
Thu Jan 17 07:58:47 PST 2002


> Rodney,
> 
> 	Do not place the file in cron.hourly etc.  Instead, edit the crontab 
> file for the user to run the perl script as. For instance, if the perl 
> script is to be run by user rodney, log-in as, or 'su rodney' then edit 
> the crontab file by typing "crontab -e" at the shell prompt.  The crontab 
> editor is whatever your shell editor variable is, in my case it defaults 
> to vi.  You must use the "crontab -e" command or some other special 
> crontab editor such as kcrontab to keep things from getting goofed up. 
> Other than that, the editing is pretty straightforward.  
> 
> 	From here you need to edit the file and save it.  From there, the system 
> takes care of the rest.  Details for how to edit the crontab file and 
> what the different fields mean are found at "man 5 crontab" I have pasted 
> a few examples from some of my system files as examples in hopes that 
> they help.
#snip#

crontab -u rodney -e should work as well with out you having to log in as the user
( if your root ) or do any unnecessary typing by having to type in your password
or anything. 

yes, i'm lazy enough that i read the man page. but that's on a Sun. YMMV. 



More information about the LUAU mailing list