I'm running a AWS Ubuntu server with python. How do I run a script that triggers every 3 hours, from 9:15AM to 3:30 PM, Monday to Friday.
I'm looking for a direction.
I'm looking for a direction.
Py script that triggers ever 3 hours, but only between 9:15 am to 3:30 pm, Mon to Fri
|
I'm running a AWS Ubuntu server with python. How do I run a script that triggers every 3 hours, from 9:15AM to 3:30 PM, Monday to Friday.
I'm looking for a direction.
The classic way in Unix and Linux to schedule commands is cron. The cron daemon reads the cron tables of the users. These tables can be managed with the crontab command. The format is described in section 5 (type: man 5 crontab).
So you enter in a terminal window the command: crontab -eThen you enter the following lines: Meaning:
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Formatting DateTime string and and converting it from AM/PM to 24 hours | tester_V | 2 | 1,054 |
Jun-08-2024, 05:16 PM Last Post: tester_V |
|
MatplotibTicks every 24 hours | TamP | 4 | 2,624 |
Oct-04-2022, 04:08 PM Last Post: deanhystad |
|
Hello all! need help. calculating OT hours. | no1up | 5 | 2,719 |
Jul-30-2022, 10:00 PM Last Post: rob101 |
|
How to get utcnow + 2 hours? | korenron | 2 | 3,772 |
Mar-01-2021, 03:22 PM Last Post: korenron |
|
Need to add hours min and seconds | tester_V | 5 | 4,186 |
Jun-02-2020, 05:29 PM Last Post: tester_V |