Once you save the script, provide executable permission to run the script.
$ chmod +x CronLogChecker.sh
How to use the script with the cron:
Now you need to use this script file with the cron url. Use this script as per the below instructions.
30 1 * * * root /bin/bash /opt/CronLogChecker.sh http://your-cron-url /tmp/cron-url-log.tmp
Save and close the file.
This is well-tested script and provides you data without using more memory on the server.
You can modify above script according to your requirement. If you still face any issues to setup this script then comments down below in comment box. Stay connected & subscribe with techthings.org for more such articles.