crontab实现定时任务

1.创建一个待执行的py文件

2.crontab -e实现每分钟的定时任务

3.查看所有的定时任务

crontab -l

4.查看定时任务的输出

tail -f run2.log

5.关掉定时任务

service crond stop

原文地址:https://www.cnblogs.com/pythonsnowhiwte/p/12779645.html