Protect shell script source code

Hello,

Is there any way where a shell scripts source code can be protected? Basically, I'm after to convert shell scripts into to some form of binaries so that my shell script source code can be protected.

Forgot to mention, this is on solaris.

Many thx,

kam

There's a tool called shc but it's by no means perfect.

http://www.datsi.fi.upm.es/~frosal/sources/

See this about shc -
shc(1): Generic shell script compiler - Linux man page

Thanks for the suggestions. But this is a requirement for solaris

The tool should hopefully be portable.

Keep in mind, btw, that such an executable is probably not hard to reverse-compile. Using strings(), ltrace() and strace(), it can be fairly easy to know what's going on. However, at least your source will be protected.

@OP , you don't need to do that. Just give the necessary permissions for anyone who is ever going to use the script. Even if you compile your source and become executable, how are you going to protect your original source code?