Tuesday, July 21, 2015

configure the auto-scheduler

crontab -e

// this command in crontab will be executed at 10 PM everyday
* 22 * * * python test.py

// this command in crontab will be executed at every 5 minutes
*/5 * * * * python test.py

crontab -l

//the alert message can check as below
vim /var/spool/mail/ping-chen.lin