Glam Prestige Journal

Bright entertainment trends with youth appeal.

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 found

please any help...

2

1 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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy