Check whether to activate the cron
ps -ef | grep cron
Select Edit mode
sudo crontab -e
4:00 am execution
0 4 * * * /***/test.py
Restart
sudo service cron restart
Explanation
* * * * * command
Timeshare day week command month
example
crontab Examples
30 20 * * * date >> /home/date.log // 20:30 date information additional day under the home directory date.log
5 20 13,14 * * date >> / home / date. log // each month on the 13th, 14th 20: 5 date.log date information on the most added home directory under
0,10 10,12 * * * date >> /home/date.log // 10 a day between 12pm, date information every 10 minutes at most additionally date.log home directory
/ 5 * * * date >> /home/date.log // date information every five minutes most home directory is added in the date.log