Running .ksh Scripts from Solaris KornShell
15,016
Add PATH="$PATH:."
to the main script.
Author by
aglassman
Updated on June 04, 2022Comments
-
aglassman almost 2 years
I have developed a few KornShell (ksh) scripts to run on Solaris. I run the scripts over Putty. On one server, I am able to run them as follows:
$ script.ksh
On the other, server, I need to run them as follows:
$ ./script.ksh
Otherwise I get a script.ksh not found error. What would cause this difference? I call scripts from within this script, and do not want to have to change all the scripts to append './' to each script invocation in order to get the scripts working.
Both servers uname -a reports following:
$ uname -a = SunOS servername 5.10 Generic_147440-10 sun4u sparc SUNW,Sun-Fire-V245 $ echo $SHELL = /bin/ksh