Forums

Bash script in scheduler giving "no such file or directory" error

I have a bash script that was previously working with no issues until this weekend. I decided to move them out of my main folder to a subfolder. The bash script works fine if I run it from a console but when it runs from the scheduler I get:

python: can't open file 'overcast.py': [Errno 2] No such file or directory

The bash script is exporting some variables to the environment then runs a python script:

python overcast.py

I've already run chmod so it shouldn't be a permissions issue.

Are you using an absolute file path?

Nope. I'll try that.

That did it. Thanks!