I have a php script that i need to run every 4 seconds for one hour a day, what is the best way to do this. I look up a way of using cron and sleep and also watch but what would be the best way of doing this over all?
Watch
watch -n10 command args
cron:
* * * * * /foo/bar/your_script
* * * * * sleep 4; /foo/bar/your_script
* * * * * sleep 8; /foo/bar/your_script
* * * * * sleep 12; /foo/bar/your_script