|
3 years ago | |
---|---|---|
.. | ||
README.md | 3 years ago | |
__init__.py | 3 years ago | |
check_logs.sh | 3 years ago | |
cron_daily.sh | 3 years ago | |
cron_fri.sh | 3 years ago | |
cron_mon.sh | 3 years ago | |
cron_sat.sh | 3 years ago | |
cron_test.sh | 3 years ago | |
cron_thu.sh | 3 years ago | |
cron_tue.sh | 3 years ago | |
cron_wed.sh | 3 years ago | |
schedule.txt | 3 years ago | |
test.py | 3 years ago | |
test_schedule.txt | 3 years ago |
Helpful link here.
We will be using crontab. Each line of the crontab file defines a job.
The syntax is
1 2 3 4 5 /path/to/command arg1 arg2
where
1: Minute (0-59)
2: Hours (0-23)
3: Day (0-31)
4: Month (0-12 [12 == December])
5: Day of the week(0-7 [7 or 0 == sunday])
/path/to/command – Script or command name to schedule
Put *
for where you want it run all the time.
We put the lines to add in schedule.txt
. Note that all the files in this folder are customized to AWS-EC2. If you are using something else, you will need to change these files.