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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ksh: script_name not found

Status
Not open for further replies.

michaelvv

MIS
Jan 17, 2003
70
US
I am running a ksh script which runs the following comand:
su <username> -c "script_name parm1 parm2 parm3"

It prompts for <username>'s password, then displays the message
ksh: script_name not found

This is true even when the full path name for the script is provided. The script DOES exist and IS executable. It works fine in AIX.

Any help is appreciated.
 
This sounds a bit obvious, but does the user have executable permission for the script?
 
Thanks for the reply Tony. Actually yes, but the problem (just discovered) was that the directory where the script resides was not readable by 'others'. If the error message was a little more descriptive...

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top