加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux crontab 定时使用方法

发布时间:2020-12-14 01:07:34 所属栏目:Linux 来源:网络整理
导读:? ? ? 1.文件目录 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 2100 08 * * * root cd /home/op/saiyan_game_center venv/bin/python statistics_data/

?

?

?

1.文件目录

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.d

?

3.重启?

sudo service cron reload

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读