Skip to content

Cron Scheduling Runs

Scott edited this page Jul 30, 2020 · 1 revision
  • vim /etc/cron.d/easyping

use > for one time logging, use >> to append

You can change the log file to be different per cron task

  • >> /tmp/easyping.webHost.log

  • or >> /tmp/easyping.groupA.log

  • Without Groups

    • */5 * * * * scott /opt/EasyPing/easyping.cron.sh >> /tmp/easyping.log
  • With Groups

    • */10 * * * * scott /opt/EasyPing/easyping.cron.sh groupA >> /tmp/easyping.log
    • 0 1 * * * scott /opt/EasyPing/easyping.cron.sh webHosts >> /tmp/easyping.log

This will output data that is seen from running it manual to the /tmp/easyping.log file. This could be helpful for troubleshooting later on or to check the return times of success pings.

Clone this wiki locally