guisantogui guisantogui - 24 days ago 4x
Linux Question

Execute python Script on Crontab

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/

EDIT [2]

Guys, I have followed the source code. There maybe a problem here, but when I execute it manually, it works:


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