crontab -l (list)crontab: no crontab for james
export EDITOR=nano //default vi
crontab -e (edit)
* * * * * command to be executed
– – – – –
| | | | |
| | | |+—– day of week (0 – 6) (where 0 represents Sunday and 6 represents Saturday)
| | | +——- month (1 – 12)
| | +——— day of month (1 – 31)
| +———– hour (0 – 23)+————- min (0 – 59)
Hourly at ‘0’
// every 15 minutes
0,15,30,45 * * * * cd /Users/james/Sites/local/api/sensor/; php -q GenerateWaterEventPush.php
// every 5 minutes
0,5,10,15,20,25,30,35,40,45,50,55 * * * * cd /Users/james/Sites/local/api/sensor/; php -q GenerateWaterEventPush.php
// Stop cron job -> crontab -e -> remove above -> save -> do crontab -l to verify