crontab调度示例
一些crontab调度示例
10 6 * * * root reboot
10 7 * * * python /root/confluence_backup.py
*/5 * * * * flock -xn /tmp/stargate.lock -c '/usr/local/qcloud/stargate/admin/start.sh > /dev/null 2>&1 &'
35 19 * * * bash /home/weixin_wechat/weixin_serve.sh >>/home/logs/$(date +"\%Y-\%m-\%d-\%H-\%M")weixin_serve.log 2>&1
40 19 * * * bash /home/weixin_wechat/run.sh >>/home/logs/$(date +"\%Y-\%m-\%d-\%H-\%M")weixin_run.log 2>&1
40 20 * * * bash /home/weixin_wechat/run.sh >>/home/logs/$(date +"\%Y-\%m-\%d-\%H-\%M")weixin_run.log 2>&1
40 19 * * * bash /home/weixin_wechat/mp_sql_analysisi/run.sh >>/home/logs/$(date +"\%Y-\%m-\%d-\%H-\%M")run_sql_analysis.log 2>&1
40 20 * * * bash /home/weixin_wechat/mp_sql_analysisi/run.sh >>/home/logs/$(date +"\%Y-\%m-\%d-\%H-\%M")run_sql_analysis.log 2>&1