crontab issue
how can i run crontab job every less than a minute
i used */1 to run it every minute how to run the job every 30 seconds for example thanks a lot |
One way, maybe robust, would be to create a script that's run once a minute, and the script itself would start the desired job, then sleep 30 seconds and re-run the job again. This way the script itself runs once every 30 seconds, and the script is run once a minute, so all in all you get the job running at 30 second intervals.
|
I hope this is a very short run job, or it'll trip over itself.
You'd prob be better off turning it into a daemon. Don't forget there is a perf overhead of creating a new process env everytime you start it. |
All times are GMT -5. The time now is 10:13 PM. |