Please I am trying to execute a .sh file and I am getting
Already set chmod -x test.sh
Did chmod u+x test.sh, but still...
Command not found!
./test.sh: line 1: hello: command not foundplease any help...
21 Answer
Try the old school way:
a - chmod 777 YourScript.sh
b - edit your script and make line 1:
(pound bang) /usr/bin/bash
You can determine the path to bash with 'which bash'.
c - finally, as previously indicated, make this test version simple like:
echo "hi"
hth, Matt