How to compile .sh script using g++?


 
Thread Tools Search this Thread
Top Forums Programming How to compile .sh script using g++?
# 8  
Old 10-21-2014
Quote:
Originally Posted by jim mcnamara
IF you want to maintain code provided as a vendor, and keep the customer from copying it, you can use shc. It has issues but is meant to do what Visual Basic did back in the '90's - keep compiled code safe from piracy - reverse engineering.

Francisco Rosales, home page
And how well did that work?
# 9  
Old 10-22-2014
Hi guys.
Thanks everyone for the answers.
The idea is to not allow ppl see the code itself but allow them to use script.
I've found shc but didn't use it yet. Furthemore I red that its possible to decompile scripts ))
So, there no way to keep the CODE not visible to others?
# 10  
Old 10-22-2014
Quote:
Originally Posted by nypreH
Hi guys.
Thanks everyone for the answers.
The idea is to not allow ppl see the code itself but allow them to use script.
I've found shc but didn't use it yet. Furthemore I red that its possible to decompile scripts ))
So, there no way to keep the CODE not visible to others?
If someone is interested enough it is impossible to keep the instructions contained in code that they are running locally from them in any language.

The degree of difficulty in decompiling a C++ program is obviously greater than that of decompiling a shell script, (no smart remarks about Perl please), but ultimately the user has to be able to read the file they are executing.

It is possible to respond to authenticate a remote request and execute it thus denying the user access to the executable they are running (though to be pedantic it it the application server that runs the code in this instance).
# 11  
Old 10-22-2014
Quote:
Originally Posted by nypreH
So, there no way to keep the CODE not visible to others?
How could a computer possibly run anything without decoding it?

How could you possibly decode it without giving the computer(and anyone who cares to watch) clear instructions on how to do so?

We get these threads all too often. It frequently takes pages of hilarious rube goldberg machine proposals for people to realize the futility.

Last edited by Corona688; 10-22-2014 at 12:24 PM..
# 12  
Old 10-23-2014
This is the reason one should only use free software, so my
computing is not being controlled by somebody else and
I become dependent on it.
# 13  
Old 10-23-2014
shc encrypts the shell commands and arguments so that you cannot use the strings command to see what the script is doing.

If you use a disassembler and spend many hours you can resurrect the shell script.
However, I have never seen a shell script so incredibly new and wonderful that would necessitate that effort. If you know what files a script messes with, and you can view an input file and an output file (for example) you can build your own without going through all the troubles of disassembling code.

The people who would feel the need to steal the code can't really program to start with. And if someone stole your whole app and marketed it as if they owned it, he/she could never support it.
# 14  
Old 10-23-2014
@Achenle

It worked for simple scripts. I had trouble getting it to compile and run correctly on Solaris. More of a toy than a tool IMO. I cannot think of a valid application for it offhand.

And it is not C++, just C, so you need a C compiler, gcc, not g++.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to compile this?

I want to compile cryptsetup keyslot_checker , but I get error gcc -lm -lcryptsetup chk_luks_keyslots.c -o chk_luks_keyslots chk_luks_keyslots.c:39:27: fatal error: libcryptsetup.h: No such file or directory #include <libcryptsetup.h>in FAQ they say There is a tool that automatizes this in the... (0 Replies)
Discussion started by: zognadal
0 Replies

2. Shell Programming and Scripting

How to compile or debug line by line in shell script?

I know about bash -x, set -x and -v but disappears from Command Line Interface in fraction of second ...... I am looking for a command or script ..complies each line and shows the output after executing each line ....( similar what we have in C ) Thanks in Advance (2 Replies)
Discussion started by: frintocf
2 Replies

3. Shell Programming and Scripting

bash script to compile multiple .c files with some options

I'm trying to write a bash script and call it "compile" such that running it allows me to compile multiple files with the options "-help," "-backup," and "-clean". I've got the code for the options written, i just can't figure out how to read the input string and then translate that into option... (5 Replies)
Discussion started by: travis.batzer
5 Replies

4. UNIX for Dummies Questions & Answers

Compiling gcc to compile make to compile yaboot

I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies

5. UNIX for Dummies Questions & Answers

Unable to compile Shell Script

Hi there, I have written the shell script to illustrate arithmetic operations using case command as shown below: #!/bin/bash echo -n "Enter any two numbers :" read a read b MENU=" Select any one option 1) Addition 2) Substraction 3) Multiplication 4) Division 5) Quit" clear $x=0;... (5 Replies)
Discussion started by: grc
5 Replies

6. Shell Programming and Scripting

Help - Bug: A script to compile two types of data files into two temporary files

Dear other forum members, I'm writing a script for my homework, but I'm scratching all over my head and still can't figure out what I did wrong. Please help me. I just started to learn about bash scripting, and I appreciate if anyone of you can point out my errors. I thank you in advance. ... (3 Replies)
Discussion started by: ilove2smoke
3 Replies

7. Shell Programming and Scripting

compile a shell script

How can i compile a KSH shell script. I Dont want to execute it. I just need to compile it . Any Help sincerly appreciated. (5 Replies)
Discussion started by: panyam
5 Replies

8. Shell Programming and Scripting

How to compile a stored procedure that is there with in a script file(.sql) in unix

Hi, How can i compile the procedure code that is there in a script file (.sql) in unix. (0 Replies)
Discussion started by: krishna_gnv
0 Replies

9. Solaris

Help to compile

Hi everybody, I have a small opensource project http://hpaftpd.sourceforge.net (single-threaded ftp-server for heavy network traffic). It tested with FreeBSD and Linux. Can anybody try it with another Unix system? I'm interesting about HP/UX and Solaris. Thanks. (1 Reply)
Discussion started by: wwwdev
1 Replies

10. Programming

help to compile

Hello everybody, I have a small opensource project http://hpaftpd.sourceforge.net (single-threaded ftp-server). It tested with FreeBSD and Linux. Can anybody try it with another UNIX system ? I'm interesting about HP/UX and Solaris. I would very much appreciate receiving any results about it. ... (2 Replies)
Discussion started by: wwwdev
2 Replies
Login or Register to Ask a Question