while scheduling a cronjob i found out that cron wakes up every minute and executes the jobs for that minute. i needed to run a job every 30 seconds. so what to do. i was confused. later i searched for it and found out it is too simply done. just add another entry that will sleep 30 seconds and execute the job. add these lines in the crontab -
00-59 * * * * root sh /home/me/myscript.sh
00-59 * * * * root sleep 30 && sh /home/me/myscript.sh
The Outfit. And The Why.
5 days ago