8000 GitHub - chhshen/shc: Shell script compiler
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chhshen/shc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shell Script Compiler

A generic shell script compiler. Shc takes a script, which is
specified on the command line and produces C source code. The
generated source code is then compiled and linked to produce a
stripped binary executable. Use with care.

Install:

cd to directory "main": cd main
do a "make"
and then "sudo make install"

or simply run the "install" script/file provided, in terminal

Testing:

cd to test "directory": cd test
Try: shc -f test.bash -o test

output binary file will be test. If no output file is specified
by the -o option, then it will create an executable with .x extension
by default

Known bugs:

The one (and I hope the only) limitation using shc is the
_SC_ARG_MAX system configuration parameter.

It limits the maximum length of the arguments to the exec function,
limiting the maximum length of the runnable script of shc.

!! - CHECK YOUR RESULTS CAREFULLY BEFORE USING - !!

Released at https://github.com/neurobin/shc/archive/3.9.0.zip

and https://github.com/neurobin/shc/arch 60FF ive/3.9.0.tar.gz

Authors:

Francisco Rosales Garcia

frosal@fi.upm.es

Jahidul Hamid

http://github.com/neurobin

About

Shell script compiler

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 62.1%
  • HTML 12.1%
  • Perl 10.4%
  • Roff 8.4%
  • Shell 7.0%
0