Forums

How do I specify the scheduled script file path?

I have a script, test.py, that I wish to run hourly. I created a test.py, hosted on python anywhere.

The schedule tab asked me to set the filepath, for the file that I wanted to schedule. However, I did that and get an error:

bash: https://www.pythonanywhere.com/user/chrisalbon/files/home/chrisalbon/test.py: No such file or directory
2015-03-10 06:59:08 -- Completed task, took 0.00 seconds, return code was 127.

How can I schedule this task? What file path do I use?

That's not the file path to the file, it's the URL for accessing the file through the web. For the file you're trying to specify, the path is: /home/chrisalbon/test.py