Where/When exactly does the error message show up?
A couple of things to check:
chmod command makes the script only executable, it does not run it.
chmod +x abc.sh will make your script executable.
Aside: I much prefer the "human readable" version of the
command to the one using octal notation. So for instance:
chmod u+x file means change file for user to executable (or just
user is implied by default).
You can specify
others in place of
u, or combinations. In
x you can use
r etc, again in combinations if wanted
+ to add,
- to take away attributes.
See the chmod man page for more
(2) Do you have the appropriate shell incantation at the top of your shell file? e.g.,
(or whichever shell you want)
(3) How are you running it? This way should work:
(4) Note: Your
cd command has a space
(' ') between the
/generallstuff .. hopefully that's just a typo in the posting; otherwise, the command will fail and you won't change directories!