1

Why can't bash see my files?

view story
linux-howto

http://stackoverflow.com – I have a simple bash script that allows cron to execute a series of Python scripts in a virtualenv. The script keeps raising No such file or directory errors. ~/nightly.sh works fine: #!/bin/bash source virt_env/myproject/bin/activate cd virt_env/myproject/main python script1.py python script2.py I want to keep everything in ~/virt_env/myproject/main/ to simplify deployment. I thought I could call bash virt_env/myproject/main/nightly.sh on this: #!/bin/bash MAINDIR=`dirname $0` cd $MAINDIR source ../bin/activate python script1.py python script2.py but I get the No such file or directory (HowTos)