How to check a cronjob is working properly
1.From the terminal exicute
$ crontab -e
* * * * * date >>/home/cronstatus.txt
then save and open the /home/cronstatus.txt using any editor
check the time intervel between the date printed on the file.
Note: the above cron job will execute every second .So you need to be remove from it ASAP after the testing …
Will update the later part shortly…….
That’s it !
Leave a Reply