-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcron_old.txt
More file actions
42 lines (34 loc) · 2.13 KB
/
cron_old.txt
File metadata and controls
42 lines (34 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# crontab -l > cron.txt
# crontab cron.txt
# crontab -e
# crontab -
# dont use $USER - it will not find the user... at least did not bother to find how to make it work. .bashrc?
# Explanation of the cron job syntax:
# * * * * * command
# | | | | |
# | | | | +---- Day of the week (0 - 7) (Sunday = 0 or 7)
# | | | +------ Month (1 - 12)
# | | +-------- Day of the month (1 - 31)
# | +---------- Hour (0 - 23)
# +------------ Minute (0 - 59)
# I am alive cron job every minute
* * * * * echo "I am alive at $(date)" >> /home/arvypi/GIT/katinelis/cron_aliveness.log 2>&1
# clean log files every 3 days
0 0 */3 * * /home/arvypi/GIT/katinelis/clean_logs.sh
# Run every day at 02:00 AM
0 2 * * * /home/arvypi/venvs/venv-mm2/bin/python /home/arvypi/GIT/katinelis/fetches/rescuetime.py
# Run every minute from 5:00 AM to 6:59 AM
* 5-6 * * * /home/arvypi/venvs/venv-mm2/bin/python /home/arvypi/GIT/katinelis/fetches/invest_fetch_stock_data.py
* 5-6 * * * /home/arvypi/venvs/venv-mm2/bin/python /home/arvypi/GIT/katinelis/fetches/cvbankas.py
* 5-6 * * * /home/arvypi/venvs/venv-mm2/bin/python /home/arvypi/GIT/katinelis/fetches/random_quote.py
* 5-6 * * * /home/arvypi/venvs/venv-mm2/bin/python /home/arvypi/GIT/katinelis/fetches/pi_system_info.py
# Run every hour from 6:59 AM to 5:00 PM
59 6-17 * * * /home/arvypi/venvs/venv-mm2/bin/python /home/arvypi/GIT/katinelis/fetches/invest_fetch_stock_data.py
59 6-17 * * * /home/arvypi/venvs/venv-mm2/bin/python /home/arvypi/GIT/katinelis/fetches/cvbankas.py
59 6-17 * * * /home/arvypi/venvs/venv-mm2/bin/python /home/arvypi/GIT/katinelis/fetches/random_quote.py
59 6-17 * * * /home/arvypi/venvs/venv-mm2/bin/python /home/arvypi/GIT/katinelis/fetches/pi_system_info.py
# Run every minute from 5:00 PM to 9:59 PM
* 17-21 * * * /home/arvypi/venvs/venv-mm2/bin/python /home/arvypi/GIT/katinelis/fetches/invest_fetch_stock_data.py
* 17-21 * * * /home/arvypi/venvs/venv-mm2/bin/python /home/arvypi/GIT/katinelis/fetches/cvbankas.py
* 17-21 * * * /home/arvypi/venvs/venv-mm2/bin/python /home/arvypi/GIT/katinelis/fetches/random_quote.py
* 17-21 * * * /home/arvypi/venvs/venv-mm2/bin/python /home/arvypi/GIT/katinelis/fetches/pi_system_info.py