LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-09-2005, 09:55 AM   #1
collen
Member
 
Registered: Jun 2003
Location: /
Distribution: Fedora/Debian
Posts: 86

Rep: Reputation: 15
Cool compile bash scripts


Might be a strainge thing to ask,
but is there a way to compile bash scripts ??

I do a lot with bash scripting, and some times
scripts get slow, coz they become big.
also it is also a nice way to make the source scrambled (invisseble)
plus i was hoping to get the filesize down...
(and i'm curious if can be done!)

like i said, it might be a strainge thing to ask..

Greetz,

Collen.
 
Old 12-09-2005, 10:34 AM   #2
sirclif
Member
 
Registered: Sep 2004
Location: south texas
Distribution: fedora core 3,4; gentoo
Posts: 192

Rep: Reputation: 30
http://www.linuxquestions.org/questi...d.php?t=370328

you might find this one usefull, there is a link to a google page that has a list of sights that may apply here as well. the tool SHC seems to do what you want, but I'm not sure if there is a big performance boost or not.
 
Old 12-12-2005, 02:11 AM   #3
collen
Member
 
Registered: Jun 2003
Location: /
Distribution: Fedora/Debian
Posts: 86

Original Poster
Rep: Reputation: 15
Thumbs up

Thx... that helped, i'm alot wiser now..

scrambling bash scripts is clear to me now,
but i was actually looking for a way to speed up the bash scripts..
(performance that is)

like converting bash to C and then gcc it ?? (just a thought)
but my best option, i gues is to write it in C all the way.
(ought guess need to studdy again!)

awell thx.

Collen
 
Old 12-12-2005, 08:49 AM   #4
sirclif
Member
 
Registered: Sep 2004
Location: south texas
Distribution: fedora core 3,4; gentoo
Posts: 192

Rep: Reputation: 30
yea, i think it would be a little difficult to do unless your script only used bash built in commands. otherwise, if you used some command like sed, i don't know a "translater" would know how to write that in C.

I thought i saw that SHC first converted encrypted C source and then compiled it. Is there a way to just get the C source it generates and compile it yourself?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
little help with bash scripts sniff Programming 2 10-26-2005 05:17 PM
bash scripts hoffmanyew Programming 3 08-11-2005 01:27 AM
Need Help With Bash Scripts the_woelf Linux - Software 4 06-30-2004 09:09 AM
Bash Scripts Skute Programming 7 03-12-2004 10:17 AM
Bash scripts? BajaNick Programming 3 07-05-2003 10:13 PM


All times are GMT -5. The time now is 02:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration