The other way is going
crontab -e
This will edit your crontab file, or create one if it doesn't already exist for the current user
Run crontab -e in command-line as the user you want to run the cronjob as and paste this line 1 2 3 4 5 /home/myscript.sh where /home/myscript.sh is the script you want to run
1 - Minute (0 - 59) 2 - Hour (0 - 23) 3 - Day of Month (1 - 31) 4 - Month (1 - 12) 5 - Day of Week (0 - 6 where Sunday = 0 and Saturday = 6)
Make sure your script has execution rights by running
chmod a+x /home/myscript.sh
crontab -l
Display your crontab file.
By PHPin24 @ 2009-07-15 16:23:38
|