473,839 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

60 New Member
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 16407
bipinkdas
3 New Member
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
coaxfiber
60 New Member
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 Recognized Expert Specialist
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 Recognized Expert Contributor
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 "obsfuscati ng/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
coaxfiber
60 New Member
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 Recognized Expert Specialist
Yes, thanks for posting this link. This site teaches me something new every day.
Apr 11 '07 #7
parimalao
4 New Member
what you want to do is something like "obsfuscati ng/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
parimalao
4 New Member
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 Recognized Expert Specialist
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

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

Similar topics

6
28941
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 myprogram.exe. ? Any tools can do this for me ?? Thanks & regards, June
2
8833
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 computer, due to Microsoft licensing and everything. Signed, Charles Robinson III robinson@saiyanprincefox.cjb.net
1
2112
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 add-in to another computer? Thanks a lot -------------------------------- From: Kelly ----------------------- Posted by a user from .NET 247 (http://www.dotnet247.com/)
1
4857
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 --------------------- #include "stdafx.h" using namespace System::Reflection; using namespace System::Runtime::CompilerServices;
3
4109
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. 1. I have very much data to be incorporated into the executable file. I have to add much data into my developed program into 2 Combo Boxes and 1 List Box control. For that i have created an xml element with all of the
2
7046
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 fine, every time. But, if I access on it's public IP, from my office workstation, from home, over the VPN, a test machine on ADSL, or whatever else you please, it fails. But only about 60% of the time. I have tried everything to pin this down....
1
1593
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 separate text file ). i THOUGHT everything was fine. When i have my code open in VS 6.0 i build and compile it, and everything works fine, BUT when i run the executable file, the printout to the console is correct, but the printout to the file doesn't...
2
1533
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 decrypt the same file? How secure is to hide an hexadecimal number to be used as password or key inside an executable file? String are easy to find. Any help is appreciated,
22
11800
by: xiao | last post by:
Can I fullfill this task? Using fred and fwrite?
4
2352
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 necessary. for instance, have a button somewhere on the desktop that they can just click it and the executable will stop. Or inset some lines of code that would specify a 'button' sequence that the user can press on the keyboard that would trigger...
0
9854
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9696
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10903
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9425
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7827
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5681
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5865
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4063
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3131
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.