Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No such file or directory error

Status
Not open for further replies.

tonykent

IS-IT--Management
Jun 13, 2002
251
GB
Please excuse this stupid question. I'm trying to run a shell script on a SCO Unixware 7.1.1 machine. I'm in the directory where the script is. I have done a chmod a+x on the script. When I type its name I just get the response:

bash: ./scriptname: No such file or directory

If I put the full path before the name the result is the same (bash: ./<path>/scriptname: No such etc).

Can anyone enlighten as to why the script is not being found and run?
 
I have just done so, but it made no difference.
 
What is the FIRST line of your script ?

Hope This Help
PH.
 
#!/bin/sh

I've checked that /bin/sh exists and it does. I have permissions to use it as well. And the same script works fine on other (HPUX) machines. I'm stumped!
 
Have you tried
Code:
 /bin/sh /path/to/script
?

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top