Solaris 7 default shell problem - TechRepublic
General discussion
February 5, 2001 at 04:17 AM
wiaia

Solaris 7 default shell problem

by wiaia . Updated 25 years, 4 months ago

I have a script that requires a specific k shell only expression to execute. The script runs correctly on an E6500 running Solaris 7, but fails on two E3500s running Solaris 7. We have already checked with diff, and the scripts are identical on the 3 machines. Patch levels are also identical.

We turned on additional debugging and it shows that even though the first line of the script is #!/bin/ksh at the instant the expression is supposed to run, the system shell is /bin/sh. Of course this makes the script fail because the expression is k shell exclusive.

Does anyone have an idea about how to fix this problem?

Thanks,

George Wolfe
Systems Engineer
First Data Corp.

This discussion is locked

All Comments