I have this script I use for installing solaris 10 updates, and so far it's worked on every solaris 10 server except one. I get an error: "Unrecognised script interpreter"
I believe it's this part of the scirpt that cuases the problem but not sure what to do with it
The error message is printed, when the user runs another shell than some sort of ksh. Maybe the user is using bash or maybe the shell is configured with a path like "/bin/ksh". This is possible, because /bin is just a symbolic link to /usr/bin.
Run
pargs -l $$
on the server in question and then modifiy the egrep pattern accordingly.
If you comment out the if clause, don't forget to comment out everything up to the closing curly bracket. Check on a test system, so that you do not run into syntax errors.
Or even better, make it something like