Forums

I can't get my python scheduled task to run

I can't get my scheduled task to run. If my python file is called this_script.py, which of these commands should I have scheduled to run:

1) execfile("this_script.py")

2) this_script.py

or 3) python this_script.py

All of the above don't seem to actually work.

try the full path to the script: /home/angeladopter/this_script.py. Or if it's in a directory, /home/angeladopter/my-folder/this_script.py

Okay, will give it a shot. Thanks!

If I run a task on the scheduler, can I not see it on the console?

I want to see the output (log) of the scheduled task, but the log of my scheduled task doesn't show anything. I don't have much insight as to whether it is running properly or not..

EDIT: If i run the same python file via console, it works fine and I can see all my print statements in console log

When did you schedule it for? The scheduler did have a bit of a hiccup earlier this morning, so it may be worth trying again now?