Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have an OpenSolaris system and some korn shell scripts that have a #!/bin/pfksh at the top. However, I don't have pfksh in either /bin/ or /usr/bin directories.

How should I go about installing pfksh on my system? When I tried to copy the file, I get a "Invalid argument" error message. I couldn't find the exact name of the package in OpenSolaris to install pfksh.

pkg install pfksh pkg install SUNWpfksh

don't work.

I tried copying the pfksh file from another machine, but it gives me

How should I go about it?

share|improve this question

2 Answers 2

As described here you should download the ksh93 package, once you have it you will need to create a hardlink for pfksh

share|improve this answer

pfksh is a Solaris profile shell (see manual pages for pfexe(1) and rbac(5) for more information) and it is a link to /usr/bin/sh which is delivered in the SUNWcs package, but on OpenSolaris where it seems to have been forgotten.

If you just do the following, it will work

cd /usr/bin
ln -s ksh pfksh
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.