设置定时任务

1. windows环境设置:

定时执行shell脚本:https://blog.csdn.net/qq_40463753/article/details/84976977

 设置python脚本定时任务,https://cloud.tencent.com/developer/news/295826

win+R---->compmgmt.msc----->创建基本任务

查看anaconda python路径:where python

2. linux环境:

https://www.runoob.com/linux/linux-comm-crontab.html

crontab介绍:

https://www.runoob.com/linux/linux-comm-crontab.html

3. windows下设置crontab:

配置crontab:https://blog.csdn.net/spring21st/article/details/52789045

参考:https://github.com/qiu8310/crontab

crontab语言规则格式:https://blog.csdn.net/xinyflove/article/details/83178876

crontab -l  查看当前的定时任务;

示例: 30 14 * * * python d:/projects/spyder/carlcare/conversation/realtime_conversation/test.py

(每天14点三十执行脚本test.py  但此定时任务未执行成功,尚未找到原因)

原文地址:https://www.cnblogs.com/xiaowa/p/13470693.html