It might be very simple question, but how could I run a python script on my fedora dist every 2 days?
Thanks
Antonis
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is a question on cron.
First is add a SHEBANG line on top of your python script.
Make your script executable with
chmod +xAnd do a crontab -e and add
0 0 */2 * * /path/to/your/pythonscript.py