python - How to execute this log.py file in Linux every day at 2 am
迷茫
迷茫 2017-05-16 13:34:32
0
4
810

There is a log.py file in /data/log/

How to let him execute the log.py file at 2 am every day

linux ubuntu14.04

Or how to set the log.py file to be executed once every day at 2 am

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(4)
给我你的怀抱

Can set up scheduled tasks: crontab -e编辑
加入:0 2 * * * /data/log/log.py
保证文件log.py的格式和权限正确,保证服务crondRun normally.

黄舟

Use crontab
Please refer to https://www.cyberciti.biz/faq...

迷茫

There is a scheduled command crontab

Ty80

Baidu crontab

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!