473,324 Members | 2,268 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

dot sh ( .sh) to convert to a executable file

Is there anyone knows how to convert an existing script to a executable format (HEX form)?

file.sh > file.exe - something like this.

Thanks..

BR,
coaxfiber
Apr 10 '07 #1
11 16358
Is there anyone knows how to convert an existing script to a executable format (HEX form)?

file.sh > file.exe - something like this.

Thanks..

BR,
coaxfiber
Hi
Give executable permission to the file,it will be executable

$chmod 755 file.sh
Apr 10 '07 #2
I tried it. Is it same with chmod +x file.sh? So it becomes executable. What I mean is that when you will use , 'cat file.sh' or 'more file.sh' , the screen will give you as an ASCII characters instead of showing the source code.

Thanks again...

BR,
coaxfiber
Apr 10 '07 #3
Motoma
3,237 Expert 2GB
There is no way to convert a shell script to a binary executable. Perhaps if you explain what you actually want to do, we could help you out.
Apr 10 '07 #4
ghostdog74
511 Expert 256MB
Is there anyone knows how to convert an existing script to a executable format (HEX form)?

file.sh > file.exe - something like this.

Thanks..

BR,
coaxfiber
what you want to do is something like "obsfuscating/scrambling" your source so no one can see your code , right.
you can download shc and try it out. it "converts" your shell to stripped executable. remember to read shc.html from that site.
Apr 11 '07 #5
Sir,

Thank You Very Much! Hope this will help me a lot doing my work done.


BR,
ed
Apr 11 '07 #6
Motoma
3,237 Expert 2GB
Yes, thanks for posting this link. This site teaches me something new every day.
Apr 11 '07 #7
what you want to do is something like "obsfuscating/scrambling" your source so no one can see your code , right.
you can download shc and try it out. it "converts" your shell to stripped executable. remember to read shc.html from that site.
Hello sir,

we r also facing the same problem. we downloaded shc. wht are the requirements to execute this prg? How to execute this? we tried giving params as -f xyz.sh like its working but not able to see output file(or exe).

plz help.

Thanks in advance.
Jun 18 '07 #8
the output is : First line in Shell script is wrong like

but the first line represents only an echo "welcome"

plz help me with this.

thanks
Jun 18 '07 #9
Motoma
3,237 Expert 2GB
the output is : First line in Shell script is wrong like

but the first line represents only an echo "welcome"

plz help me with this.

thanks
The first line in your shell script should be the #! followed by the shell it was written for:

Expand|Select|Wrap|Line Numbers
  1. #! /bin/bash
  2. echo "Awesome!"
  3.  
Jun 18 '07 #10
Hello Motoma,

i kept the .sh file in bash folder of bin folder where shc c prg is placed in bin folder. i changed the first line in the .sh file as #! bash/xyz.sh its not giving error.

no putput file is found where can i see the executable?
Jun 19 '07 #11
Motoma
3,237 Expert 2GB
Hello Motoma,

i kept the .sh file in bash folder of bin folder where shc c prg is placed in bin folder. i changed the first line in the .sh file as #! bash/xyz.sh its not giving error.

no putput file is found where can i see the executable?
I do not know. Check the man page for the tool you are using.
Jun 19 '07 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: QQ June | last post by:
Hello, I have some java classes. But, I don't want my users to type "java my_java_program" every time they run the java class ? How do I pack them together into one executable file, like...
2
by: Charles Robinson III | last post by:
Is there a way to convert an entire access database file (*.mdb) to an executable file (*.exe)? This database will be on alot of computers, and I really do not want to put Microsoft Access on each...
1
by: Kelly Xie via .NET 247 | last post by:
Hi, I am building an add-in to the .NET framework using C#. I need to call an external executable file. It works fine with the computer I am working now. How can I make it work when I install the...
1
by: Scott Chang | last post by:
Hi all, I loaded the following program 'HelloMCPP' to my MS VC++ .NET (2002) that is installed on my Windows XP Professional PC: ------------------------------------- AssemblyInfo.cpp...
3
by: SpIcH | last post by:
Hi All, This is all about protecting my data in Executable file. I have developed a program in Visual Basic .NET 2002. I have many questions in mind... please help me to complete my project. ...
2
by: mudge | last post by:
Hi, I'm getting some very strange problems with some C# code. We're running an ASP.NET application on a local server in a DMZ. If I access it using the internal address, the application works...
1
by: manontheedge | last post by:
i'm using microsoft visual studio 6.0, and i have a program that reads in a text file, then looks for a variety of things, sorts them into categories, and prints them out ( to the console AND a...
2
by: Nicola Taibi | last post by:
Hi, In a visual basic .net 2003 application I use an hexadecimal number to encrypt a file as a symmetric key. Is it possible to detect, within the executable, the number above to consequently...
22
by: xiao | last post by:
Can I fullfill this task? Using fred and fwrite?
4
by: Perl Beginner | last post by:
i have created an automation program using Perl (Win32). i converted the perl script to an executable file. what i would like to do is have a way for the user to easily kill the executable file if...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.