Databases
cancel
Showing results for
Did you mean:

can I make my ksh scripts into binary executables?

SOLVED
Go to solution
Esteemed Contributor

can I make my ksh scripts into binary executables?

I have quite a good many scripts I've written and borrowed from others... is there a way to compile or convert or wrap them into a single non-editable binary executable? I'm sure I've seen this posted before but I couldn't find it anywhere.
11 REPLIES
Honored Contributor

Re: can I make my ksh scripts into binary executables?

Sure, but first you have to RE-Write them in "perl" and then do the "perlcc" on them.

live free or die
harry
Live Free or Die
Esteemed Contributor

Re: can I make my ksh scripts into binary executables?

I'm in the process of learning perl....
is there an (ahem...) easy way of converting to perl...

I guess I have a lot of reading to do then. I also saw a program by Lone Star called Script-Lock (or was it Lock-Script) that was supposed to convert your scripts into binary executables.... I doubt I'll look into that due to cost... But I do intend to learn perl so I guess this gives me some motivation.
Acclaimed Contributor
Solution

Re: can I make my ksh scripts into binary executables?

It's not free but it will do the job. ShellLock from Cactus Software.

http://www.cactus.com/products/cactus/shell-lock.html
If it ain't broke, I can fix that.
Outstanding Contributor

Re: can I make my ksh scripts into binary executables?

John,

I agree - I've seen it before too but I'll be darned if I can find it now. I seem to remember replies from Olympians saying that it could be done with such and such a compiler.

I'll keep scanning . . .

Pete

Pete
Outstanding Contributor

Re: can I make my ksh scripts into binary executables?

John,

This is not the one I was thinking of but it's a start:

I agree - I've seen it before too but I'll be darned if I can find it now. I seem to remember replies from Olympians saying that it could be done with such and such a compiler.

I'll still keep scanning . . .

Pete

Pete
Esteemed Contributor

Re: can I make my ksh scripts into binary executables?

right Cactus software... i found the link to that from lone star software... that's where I saw that... .

and if there were a compiler out there that could convert ksh scripts to binary... yahoo... i'll keep my fingers crossed.

In the meantime I think I'll go get a few books on perl. What's a good book to get? Any recomendations?
Outstanding Contributor

Re: can I make my ksh scripts into binary executables?

John,

Pete

Pete
Outstanding Contributor

Re: can I make my ksh scripts into binary executables?

John,

http://gatekeep.cs.utah.edu/hppd/hpux/Shells/shc-2.4a/

Pete

Pete
Outstanding Contributor

Re: can I make my ksh scripts into binary executables?

And, as long as I'm beating this thing to death, here's the thread I was thinking of:

Pete

Pete
Esteemed Contributor

Re: can I make my ksh scripts into binary executables?

Great... thanks everyone. I love this forum... I get superb responses to my inquiries in under half an hour. :) Once again thank you. I'll let you guys know how it works out. I'll try it tomarrow