I have a shell script that runs like this on my Ubuntu 12.04 LTS server:
cd /var/www/srv
But, for some reason, when I run it, it says: ./start.sh: 1: cd: can't cd to /var/www/srv
The directory exists, and it is run as root so no question of privileges. To add to the peculiarity, when I run the code in the terminal, it works.