shc: shell compiler?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting shc: shell compiler?
# 1  
Old 04-13-2005
shc: shell compiler?

Has anyone ever gotten shc compiler program to work. I am trying to encrypt
a bash script on centos. When I run the command "shc -f test.sh", the binary actually gets created; however, when I try to run the binary I get the following the error:

[root@CENTOS scripts]# ./test.sh.x
./test.sh.x: No such file or directory: ê#%fíóß?Îüþ{*©èE

What might be happening here?
# 2  
Old 04-15-2005
fyi... The following is how I got shc compiler to work:

1. find the path to gcc or install it.
2. export CC="path to gcc"
3.make
4.mkdir /usr/local/man/man1
5.make install
6.If make install errors out with this error: install: The -c, -f, -n options each
require a directory following!
then:
prompt> install -c /usr/local/bin -s shc /usr/local/bin
prompt> install -c /usr/local/man/man1 -s shc.1 /usr/local/man/man1
7. shc -v -r -T -f scriptname.sh
8. To execute script type the following: ./scriptname.sh.x

I hope this helps.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SHC Cron help-me

Hello, I have some shellscripts internal company more by the need to conceal the code to protect passwords and others, we are using the SHC. the shellscripts always worked without error, including cron. after the SHC, if I run manually (. / shellscript) it works if I put the same command... (3 Replies)
Discussion started by: c0i0t3
3 Replies

2. Shell Programming and Scripting

shc compiler issue

I am using the shc shell compiler, it works fine, just that when i execute it, it displays the code at the terminal. Is there any way to hide this as well? otherwise it beats the purpose of hiding the code. Thanks ! (7 Replies)
Discussion started by: ysvsr1
7 Replies

3. Shell Programming and Scripting

compiler bash shell to binary

helow all, i need your advice for compiler bash shell to binary i am using shc but my script using function so shc have error like this shc: invalid first line in script: function date2stamp()how can i compile to binary if doesn't have compiler i want encode my script how i can do that???? ... (1 Reply)
Discussion started by: zvtral
1 Replies

4. Shell Programming and Scripting

Need help - shc

I have two scripts test1.sh and test2.sh. test1.sh is calling test2.sh. test2.sh is having some functions and password which we are using in test1.sh test1.sh #!/bin/sh . test2.sh echo "$test"test2.sh #!/bin/sh test=pravinO/P pravin Now use shc to protect my test2.sh and i modified... (5 Replies)
Discussion started by: pravin27
5 Replies

5. Shell Programming and Scripting

Help with shc

Hi all, I'm trying to install shc on my clean solaris 10 so that I could do some encrypting on my shell scripts. I've tried several ways but it gave me these error messages # make cc -Wall -O6 shc.c -o shc cc: illegal option -Wall *** Error code 1 make: Fatal error: Command failed... (6 Replies)
Discussion started by: solarisnoob
6 Replies

6. Shell Programming and Scripting

Problems using shc

Hi all! First of all, sorry for my poor english :-S Well, I have some scripts in a SuSe server to encrypt... but all them must still working when I encrypt it, ok? About the server, I have root access: # id uid=0(root) gid=0(root) groups=0(root) # uname -a Linux servername... (4 Replies)
Discussion started by: Magius
4 Replies

7. Shell Programming and Scripting

SHC Compiler [ERROR] AIX

Hello there, I’m compiling a shell script under UNIX AIX 5.3 operating system. I’m facing a “glitch” when I tried to run the .x file AIX sent the error message “Killed”. # rpm -qa libgcc-4.2.0-3 libstdc++-4.2.0-3 gcc-4.2.0-3 libstdc++-devel-4.2.0-3 gcc-c++-4.2.0-3 # make *** ... (2 Replies)
Discussion started by: micrinho
2 Replies

8. Programming

How Can a Machine Reads a Compiler Since A Compiler is Written in Text! Not Binaries?

To make a programming language you need a compiler, so what was the first programming language and how was is created if you need the compiler first? The compiler itself is considered as a high language comparing to the machine! since the compiler is not created in 1's and 0's... Eventhough i... (12 Replies)
Discussion started by: f.ben.isaac
12 Replies

9. HP-UX

Failed to install shell script compiler (shc)

I have install gcc, downloaded shc-3.8.6 and extracted in /install > cd /install/shc-3.8.6 > export CC=/usr/local/bin/gcc > make cleanall > make test "Makefile" 72 lines, 1526 characters # make test /usr/local/bin/gcc -Wall -O6 -pedantic shc.c -o shc *** Compiling script "match"... (0 Replies)
Discussion started by: alfredo
0 Replies

10. Shell Programming and Scripting

C-shell Script Compiler

I'm new to unix programming. I wanted to know if there's any software to compile C-shell Script. Thanks! (2 Replies)
Discussion started by: ilak1008
2 Replies
Login or Register to Ask a Question