-   Red Hat (
-   -   crontab issue (

houssamfarag 06-23-2006 12:55 AM

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

b0uncer 06-23-2006 01:29 AM

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.

chrism01 06-27-2006 11:56 PM

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 07:01 AM.