cron help
I want to have a cron which should run every hour.. and another cron to run within the next 30 secs after the first cron is executed.. how to have this ?
Thanks Yusuf |
AFAIK cron only "understands" minutes. You could make the hourly script to sleep for 30sec and then run another script.
|
True, because the cron daemon scans the crontab file only once a minute. A 30 second delay will have to be handled programmaticly.
|
boolean short circuit in shell...
[QUOTE=yusufs;3007393]I want to have a cron which should run every hour.. and another cron to run within the next 30 secs after the first cron is executed.. how to have this ?
configure your crontab entry as Code:
/some/dir/script1.sh && sleep 30 && /some/dir/script2.sh -c |
All times are GMT -5. The time now is 03:48 PM. |