python linux crontab计划任务设置

#sc-night
55 20 * * 1-5 /usr/bin/python3 /root/tq/888.py
56 20 * * 1-5 /usr/bin/python3 /root/tq/sendmsg.py
0 23 * * 1-5 /root/tq/stop.sh
#sc-day
55 8 * * 1-5 /usr/bin/python3 /root/tq/888.py
51 14 * * 1-5 /usr/bin/python3 /root/tq/sendmsg.py
0 15 * * 1-5 /root/tq/stop.sh

#moni
41 14 * * 1-5 /usr/bin/python3 /root/tq/moni.py

[root@VM_0_10_centos tq]# which python3
/usr/bin/python3
[root@VM_0_10_centos tq]# whereis python3
python3: /usr/bin/python3 /usr/local/python3 /usr/local/python3/bin/python3.7 /usr/local/python3/bin/python3.7-config /usr/local/python3/bin/python3 /usr/local/python3/bin/python3.7m-config /usr/local/python3/bin/python3.7m
[root@VM_0_10_centos tq]# 
原文地址:https://www.cnblogs.com/joeshang/p/12073103.html