1846148 Members
5006 Online
110254 Solutions
New Discussion

Re: Shell Compiler

 
System Dude_1
Frequent Advisor

Shell Compiler

Is there anything similar to shc-2.4a shell application compiler for Solaris 2.6, 2.7 and 2.8. I want to compile the shell script in HP-UX and Solaris without need to change the shell script if both the shell compiler can use the same shell script.
Performance Issue on HP-UX 10.20
2 REPLIES 2
John Meissner
Esteemed Contributor

Re: Shell Compiler

good question system dude (like the name)

I had the same problem with shc when I tried to use a compiled script on a solaris system. I'll look around an let you know if i find anything...

however... I believe that if you take the same script... and compile one on the HP side and then and the other on the sun side ... that they'll both work in their own environments.... but I think what you're looking for is a compile and be portable to other systems type of thing...

don't know... some might suggest trying perl. Perl has it's own compiling feature. some others might recommend C++

let us know what you decide. I'm interested in hearing your solution.
All paths lead to destiny
NDQ_1
Advisor

Re: Shell Compiler

Hi,
If you use Perl and you would like to compile your script try "Perl2Exe":

http://www.indigostar.com/perl2exe.htm

NDQ