Reputation: 2653
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
Upvotes: 2
Views: 15224