1 Star 0 Fork 1

hejianop / sim

forked from 狼十三 / sim 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
crontab 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#每天8点30分、20点30,两个时间点重启服务器
30 8 * * 1-5 root sudo reboot
50 8 * * 1-5 root cd /root/tiger/develop/Linux/ && nohup python main.py &
30 12 * * 1-5 root sudo reboot
50 12 * * 1-5 root cd /root/tiger/develop/Linux/ && nohup python main.py &
5 15 * * 1-5 root sudo reboot
30 20 * * 1-5 root sudo reboot
50 20 * * 1-5 root cd /root/tiger/develop/Linux/ && nohup python main.py &
5 4 * * 1-5 root sudo reboot
#测试
#50 2 * * * root sudo reboot
#25 0 * * * root cd /root/tiger/develop/Linux/ && nohup python main.py &
Python
1
https://gitee.com/hejianop/sim.git
git@gitee.com:hejianop/sim.git
hejianop
sim
sim
develop

搜索帮助