RedBlueGreen SmallMediumLarge WideNarrowFluid
Your Cart 0 items,total ($0) View Cart
How to do crontab every 30 seconds? PDF Print E-mail
User Rating: / 10
PoorBest 
Monday, 11 August 2008 16:17

How to do cronjob every 30 seconds? There is no way. But you can use sleep every x second.

# crontab -e

Put this code into crontab.

* * * * * sleep 30; /var/www/html/catur/syncron.php > /dev/null 2>&1

30 means 30 seconds. By default is in second. If you want to do in minute or hour just put 30m or 30h.

> /dev/null 2>&1 means no mail when doing this job. Hope usefull.