I'm trying to execute a python script using the linux crontab, but I found a lot of solutions and none of them works. For example: edit the anacron at /etc/cron.d or use crontab -e.
I want to run this script every 10 minutes.
What file must I edit to configure this?
Thanks in advance
I put this line at the end of the file, but it doesn't changes anything. Do I have to restart any service?
*/2 * * * * /usr/bin/python /home/souza/Documets/Listener/listener.py
Just use crontab -e and follow the tutorial here:
Look at point 3 for a guide on how to specify the frequency.
Based on your requirement, it should effectively be:
*/10 * * * * /usr/bin/python script.py