Re: How to convert bash scripts into binary's, so no one can read it

I rather doubt that you are going to be able to compile this utility using the Bundled C compiler. It is intended for building kernels and only understands K&R syntax. You probably need to install aCC (purchased) or gcc (free).

Re: How to convert bash scripts into binary's, so no one can read it

I might guess that you don't work for a vendor who has and uses the tool about which you asked.

I might guess that you're a free-lance consultant who would like to make sure that any modifications your client might want to the shell you have provided requires them to come back (pay?) you.

Are you trying to hide the (human) readability of the code because it has a password buried in it? There are better ways.

Are you writing a shell script and trying to make it a 'setuid' script? There are ways to implement this without resort to translating shell into binary (C) code.

Since you responded that you were going to install the HP-UX C/aC++ bundle I assume that you are going to pay for the full version since the evaluation copy will expire leaving you high-and-dry when you want to change your shell script.

Re: How to convert bash scripts into binary's, so no one can read it

Hi Oldschool,

Why you are trying to do this ?

I want to encrypt the script ( health check script) and execute the same in many servers by copying the script.

I tried crypt command ,but its not encoding well ,so I feel better to compile the script and copy to many customer site. If you can suggest better method than this its really help full for me and well appreciated .