Computing.Net > Forums > Unix > interpreter error in unix

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

interpreter error in unix

Reply to Message Icon

Name: mohan245
Date: November 19, 2004 at 12:51:20 Pacific
OS: unix
CPU/Ram: 1gb
Comment:

i wrote a wrapper script and i am getting the followig error when i am runing it. the error is as follows:$ ab_csa_d_actxfr_xform2.ksh
interpreter "/usr/bin/ksh" not found
/usr/bin/ksh: ab_csa_d_actxfr_xform2.ksh: not found
i thought it might the path settings problem and passed the path settings as /usr/bin/ksh and even have been trying modifying the first line from #! /bin/ksh to /usr/bin/ksh but still the error is persisting . i dont uderstand where the error can be.
would you please help me in fixing this error.




Sponsored Link
Ads by Google

Response Number 1
Name: WilliamRobertson
Date: November 20, 2004 at 15:47:16 Pacific
Reply:

Do other scripts that start #!/usr/bin/ksh give the same error?

In vi, go to the top line (the one containing the #!) and enter

!!whence ksh

followed by

I#!

(then Esc etc.) That should remove some of the guesswork and set the interpreter to an executable that your session can see and execute.



0

Response Number 2
Name: thepubba
Date: November 20, 2004 at 19:21:29 Pacific
Reply:

You say you changed:

"#! /usr/bin/ksh"

If you have a space between the #! and the /usr/bin/ksh, then that will break your script. It should be:

#!/usr/bin/ksh

or

#!/bin/ksh

NO SPACE in the line.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: interpreter error in unix

quota and kernel related error in Tru64 5.0 Unix kernel log www.computing.net/answers/unix/quota-and-kernel-related-error-in-tru64-50-unix-kernel-log/1588.html

Deleting a file in unix www.computing.net/answers/unix/deleting-a-file-in-unix-/7581.html

Need drivers for DFE-530TX in UNIX! www.computing.net/answers/unix/need-drivers-for-dfe530tx-in-unix/2251.html