PDA

View Full Version : [all variants] executing shell script after every 2 minutes



Vinod_hire
August 26th, 2009, 08:16 PM
how to eceute shell script after every 2 minutes

slakkie
August 26th, 2009, 08:21 PM
man cron
man crontab

Short version:

crontab -e and put the following sniplet in there, save and quit



# Run every two mins
*/2 * * * * /path/to/script
# Run 2 after the hour
2 * * * * /path/to/script

DaithiF
August 26th, 2009, 09:52 PM
use crontab


man crontab
to learn more