Operating System - HP-UX
1834388 Members
2280 Online
110066 Solutions
New Discussion

Re: Converting shell into executable

 
Praveen Bezawada
Respected Contributor

Converting shell into executable

Hi
I want to convert a shell script into executable binary file. I am able to find some compiler for bourne shell code for the purpose, are they any such compilers for korn code.

Br
...BPK...
4 REPLIES 4
Stefan Farrelly
Honored Contributor

Re: Converting shell into executable


Indded there are some compilers for ksh out there. Only place ive seen them advertised is in the SYS ADMIN magazine;
www. sysadminmag.com
Im from Palmerston North, New Zealand, but somehow ended up in London...
Steven Sim Kok Leong
Honored Contributor

Re: Converting shell into executable

Hi,

This is interesting. Can you point me as well to the exact links? How was the conversion performed?

I thought that if a script is encapsulated within a C program, additional overhead is incurred with the execve () call.

In any case, why would you want to binarise a script? If it is for the sole purpose of protecting its contents from being read while allowing it to be executed, you can always make use of restricted sam ie.

# sam -r

Hope this helps. Regards.

Steven Sim Kok Leong
Robin Wakefield
Honored Contributor

Re: Converting shell into executable

Hi,

Here's one I found in SysAdmin mag:

http://www.cactus.com/products/cactus/shell-lock.html

Rgds, Robin.
Praveen Bezawada
Respected Contributor

Re: Converting shell into executable

For Bourne shell i could find the compiler at

http://www.comeaucomputing.com/faqs/ccshlit.html