I need to set up cron job for python script scheduled at 08:00 15:00 and 18:00 IST
My python location is
/usr/bin/python3
and script location is
~/Documents/Python/script.py
I have tried the following solutions:
but not working.
I need to set up cron job for python script scheduled at 08:00 15:00 and 18:00 IST
My python location is
/usr/bin/python3
and script location is
~/Documents/Python/script.py
I have tried the following solutions:
but not working.
This information is not as easy to find as usual, but the full documention can be viewed by doing:
which reveals this:
There is also a reminder of these fields at the top of every new crontab, but you may have deleted that:
So, in order to run your script at 8:00, 15:00 and 18:00 on weekdays, do
where
1-5
means Monday through Friday.You need to fill in your own username, as
cron
does not understand the~
shortcut.