I am centos 5.4 user and I can't run shell script outside its directry i.e my script is located:
it will run as
but not as
it is 755 chmod, why its like that ?
What error does it give you?
Did you write it to be run from anywhere, or inside it does it call programs by relative path such as 'program' instead of '/me/program' and it now cannot find them?
Run your shell script as