Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-25-2004, 05:19 PM
|
#1
|
LQ Newbie
Registered: Jun 2004
Posts: 6
Rep:
|
Convert from shell script to binary?
How can I compile my shell script using a GCC or something so it is binary, and users cannot view the source. I need to do it remotely via shell/bash on a RH9, Fedora, or FreeBSD 5.2.x box (I have multiple servers).
Thanks in advance.
|
|
|
06-25-2004, 05:34 PM
|
#2
|
Member
Registered: Oct 2003
Location: Switzerland (Europe)
Distribution: OpenSuSE, RedHat, Knoppix, IRIX + MacOSX
Posts: 198
Rep:
|
An ugly but quick and dirty possibility is, to embed your script in a C program through system calls.
Like execl("echo Hello");
Otherwise, can't you took away the rights to your scripts, so other can't read them ?
|
|
|
06-25-2004, 06:09 PM
|
#3
|
Senior Member
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038
Rep:
|
why not just rewrite the entire program using c or something? (after all, scripts are scripts, not really meant to be binary)
|
|
|
06-25-2004, 06:28 PM
|
#4
|
LQ Newbie
Registered: Jun 2004
Posts: 6
Original Poster
Rep:
|
Quote:
Originally posted by SciYro
why not just rewrite the entire program using c or something? (after all, scripts are scripts, not really meant to be binary)
|
And how would I go about doing that? 
|
|
|
06-26-2004, 05:53 AM
|
#5
|
Senior Member
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038
Rep:
|
open up a console, and load up your favorite text editor, and try not to get to bored
|
|
|
All times are GMT -5. The time now is 03:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|