Forums

Problem with scheduled bash

I wrote the simple backuping bash file, and it working well from console.

I want to run script as scheduled task. but got the error

bash: /home/yn/log2log.sh: Permission denied
2015-07-28 08:33:15 -- Completed task, took 0.00 seconds, return code was 126.

Sorry :)

https://www.pythonanywhere.com/wiki/ScheduledTasks

Non-Python files must be set up with execute permissions to be run from the scheduler. To do this, start a bash console and run chmod +x your-file.

Now work fine

Excellent, thanks for confirming :-)