I have a test.py file that I execute in my terminal with
python test.py
what I would like to do is to have this file automatically execute at 1:00 am everyday. How can I implement this?
I have a test.py file that I execute in my terminal with
python test.py
what I would like to do is to have this file automatically execute at 1:00 am everyday. How can I implement this?
crontab
is better option for this use case. You can add your command in cron job using following command. It will execute your python script at 1:00am every day.
crontab -e
write following lines :
00 01 * * * python /path/to/python/script