linux crontab 定時使用方法

 

 

 

1.文件目錄python

00 07 * * * root cd /home/op/saiyan_game_center && venv/bin/python statistics_data/odps_calc_game_center_new_day_alive.py >/tmp/goldfinger.cron 2>&1
00 08 * * * root cd /home/op/saiyan_game_center && venv/bin/python statistics_data/odps_calc_game_center_new_add.py >/tmp/goldfinger.cron 2>&1
30 08 * * * root cd /home/op/saiyan_game_center && venv/bin/python statistics_data/odps_calc_game_center_box_keep.py >/tmp/goldfinger.cron 2>&1
30 06 * * * root cd /home/op/saiyan_game_center && venv/bin/python statistics_data/odps_calc_roi.py >/tmp/odps_calc_roi.cron 2>&1

 

 

2.軟連接到 /etc/cron.dcode

 

3.重啓 blog

sudo service cron reload
相關文章
相關標籤/搜索