The solution I am using is as follows:
- Edit crontab(use command :crontab -e) to run the job as frequently
as needed (every 1 minute or 5 minutes)
- Modify the shell script which should be executed using cron to prints the output into some file (e.g: echo "Working fine" >>
output.txt)
- Check the output.txt file using the command : tail -f output.txt, which will print the latest additions into this file, and thus you can track the execution of the script