Results 1 to 3 of 3
Thread: 5 second cronjob?
-
06-07-2005, 05:27 AM #1Junior Guru
- Join Date
- Dec 2002
- Posts
- 216
5 second cronjob?
Well, I wand to un a .sh every 5 seconds, how is it possible in crontab?
5 * * * * sh /home/apachecheck.sh
Is what I have at the moment, doesn't appear to be working... at all.
-
06-07-2005, 06:19 AM #2Web Hosting Master
- Join Date
- Feb 2003
- Posts
- 560
* * * * * sh /home/apachecheck.sh
would do it every minute. which is the most cron can do.
You could then write in apachecheck.sh a loop that executes your commands and pauses for 10 seconds or so.Off Topic Web Forum - A forum for talking about anything!!
N.Z. Webmaster Community - Are you from New Zealand? Well signup to our forum!!!!
-
06-07-2005, 06:43 AM #3Web Hosting Master
- Join Date
- Oct 2002
- Posts
- 705
Yeah the best solution would be to put a 5 second sleep then loop back to the top of the script.
ServerMatingProject.com
The World's first server mating experiment
We give new meaning to I/O intensive and hot swap