Where/When exactly does the error message show up?
A couple of things to check:
(1) The 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 chmod
command to the one using octal notation. So for instance:
chmod u+x file means change file for user to executable (or just
+x, the user is implied by default).
You can specify group, others in place of u, or combinations. In
place of x you can use w, r etc, again in combinations if wanted
Use + to add, - to take away attributes.
See the chmod man page for more
information.
(2) Do you have the appropriate shell incantation at the top of your shell file? e.g.,
#!/bin/bash
(or whichever shell you want)
(3) How are you running it? This way should work:
./abc.sh
(4) Note: Your cd command has a space (' ') between the ~ and /generallstuff .. hopefully that's just a typo in the posting; otherwise, the command will fail and you won't change directories!