First type all of those commands into a file and change the owner of the file to the user you expect to run the file. Make the file executable by that user.
Next read:
man cron
and
man 5 cron
The latter will show you the fields of the cron file and how to use them.
Login as the user to execute the cron and type:
crontab -l >my.crontab
Add this line to the file
0 * * * * /path_to_the_executable
Type:
crontab my.crontab
and cron will be updated
Type crontab -l to confirm your new line has been added.
(I had typed crontab -L, when I meant crontab -l ) --little ell
Last edited by Jerre Cope; 05-18-2006 at 10:59 PM.
|