04 Oct 2012
October 4, 2012

ksh: ./: not found

October 4, 2012 Blog 0 Comment

-rwxr-xr-x    1 wasadmin imgroup       19683 04 Oct 21:50 install.sh
wasadmin@host:/var/was/scripts/wasInstall>./install.sh
ksh: ./install.sh:  not found.

 Reason:

The shebang is bad.

Test the scenario with the shell interpreter on the cmdline, test with ksh <your_script_name>

Solution, your first line in your file is wrong edit it to make it right, for example:

#!/bn/ksh should be #!/bin/ksh

Facebooktwittergoogle_plusredditpinterestlinkedinmail

Leave a Reply