...
Edit /etc/crontab and save. then reboot to make the new version take effect (alternatively use kill -HUP <PID> (e.g. kill -HUP 3039) to force an update of the crontab process, where you can find the PID from the ps ux command - see above). There is an example of a crontab:
...
Code Block |
---|
voyage:~# ls -l /usr/local/share/pinger/pingerCronStat.*
-rw-r--r-- 1 root staff 0 May 18 10:30 /usr/local/share/pinger/pingerCronStat.stderr
-rw-r--r-- 1 root staff 52934 May 18 11:02 /usr/local/share/pinger/pingerCronStat.stdout
|
Check the cronjob is running
Code Block |
---|
voyage:~# ps ux | grep cron
root 3039 0.0 0.3 2192 772 ? Ss May18 0:00 /usr/sbin/cron
root 4283 0.0 0.1 1640 508 pts/0 R+ 01:43 0:00 grep cron
|