linux crontab commands set in the timing tasks
In the linux environment, set the timer as you want to see the task input current:
crontab -l
To add regular tasks, or the timing of the current task to be modified:
crontab -e
At this time, a pressing enter the edit mode, the lower left corner of the insert command is present
Press the enter line break, the input timing task. When finished, press Ctrl + C to save, after esc +: + wq to exit.
In linux after entering the PG database query the database work, To exit, enter the command \ q can.
Recently, a task you want to set from 7:30 - 9:30, running every 10 minutes. According to the syntax wrote the following command:
30/10 7-9 * * * / path / python /path/abc.py
result of the task is not running at the time of maturity. Query a lot of information, it seems only written as separate commands:
30-50 / 10. 7 * * * / path / Python /path/abc.py
* / 10. 8 * * * / path / Python /path/abc.py
0-30 / 10. 9 * * * / path / Python / path / abc.py
so you can run in linux.
----------------
Disclaimer: This article is the original article CSDN bloggers "kunkun_1230", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement. .
Original link: https: //blog.csdn.net/weixin_44731100/article/details/88673365