I need to run a script every second. The script will complete within milliseconds so the hardware is capable, all I am looking for is a reliable way to schedule it.
Basically I want a higher-resolution cron. Any suggestions?
One option is to write a script which runs every minute and does along the lines of: for($i=0;$i<=59;$i++) { // do something sleep(1) }
.. but I'd much rather find a daemon capable of kicking off the script every second (and ideally more flexibly like cron does, and with the logging capability etc that cron has).