linux定时执行

crontab -e添加定时任务

crontab -l 展示定时任务

service crond stop 停止服务

service crond start 开始服务

service crond status 查看运行状态

*/1 * * * * python /1601F/wang/fang.py >> /1601F/wang/fang.txt

从左到右 分钟,小时,天,月,周

原文地址:https://www.cnblogs.com/mypath/p/9962529.html