Question

I would like to run a python program everyday. I figured out how to do at specific time.

sudo echo "python ./test.py" | at 6:00 

However I don't know how to run this script everyday.

I tried this:

sudo echo "python ./test.py" | at 6:00 everyday

Then it didn't warn me anything, and it ran once, but when I checked atq afterwards, there is nothing there. so it means it will not be run everyday.

How can I run a python script everyday ? ( I am using mac os x. )

Thank you.

Was it helpful?

Solution

Use a cron to run your script.

Most People are using cronix for cron jobs on the mac, I believe...

You can get it here: https://code.google.com/p/cronnix/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top