linux定时执行

crontab -e添加定时任务

crontab -l 展示定时任务

service crond stop 停止服务

service crond start 开始服务

service crond status 查看运行状态

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

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

 

posted @ 2018-11-15 11:32  猪啊美  阅读(165)  评论(0编辑  收藏  举报