How to setup a 30 second Cron job
Sometimes you need a cron job at a frequency less than the minimum of 1 minute (60 seconds) that cron allows. One way of achieving this is by placing a sleep in front of your job as follows :-
Show Plain TextText code
- # m h dom mon dow user command
- * * * * * root /your/cron/job &> /dev/null
- * * * * * root sleep 30; /your/cron/job &> /dev/null
Another way this could be achieved is by calling a script with a sleep between the jobs.