I have a php script I need to run frequently, ie approx every 10 seconds. It seems that cron is not suitable given the required frequency.
Ideally I would like to run my script;
a) in a loop with a short pause(say) 5 seconds between each execution, or
b) schedule the script to run every 10 seconds
php, mysql, linux
Any suggestions are greatly appreciated.
Set an every minute cronjob to run your PHP script.
In your PHP script, run the code in a loop, 6 times.
You can use
sleepfunction to create a pause between each loop execution: http://php.net/sleep