Reply
Thread Tools
Posts: 2 | Thanked: 0 times | Joined on Aug 2010
#1
i am trying to write a simple shell script but for some reason this fails to execute and always gives me a "-sh: abc.sh: not found" message.

I finally changed the permissions on the script to 777 and left it as an empty script with only the #!/bin/sh line but it yet fails with the same message!

has anyone else experienced this?
 
ToJa92's Avatar
Posts: 1,091 | Thanked: 323 times | Joined on Feb 2010 @ ~
#2
You need to write "./abc.sh" or "sh abc.sh"
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:30.