table of contents
other versions
- wheezy-backports 3.8.7-2~bpo70+1
- jessie 3.8.7-2
- testing 3.8.9b-1+b1
- unstable 3.8.9b-1+b1
| shc(1) | General Commands Manual | shc(1) |
NAME¶
shc - Generic shell script compilerSYNOPSIS¶
shc [ - e date ] [ - m addr ] [ - i iopt ] [ - x cmnd ]DESCRIPTION¶
shc creates a stripped binary executable version of the script specified with -f on the command line.OPTIONS¶
The command line options are:- -e date
- Expiration date in dd/mm/yyyy format [none]
- -m message
- message to display upon expiration ["Please contact your provider"]
- -f script_name
- File name of the script to compile
- -i inline_option
- Inline option for the shell interpreter i.e: -e
- -x command
- eXec command, as a printf format i.e: exec(\\'%s\\',@ARGV);
- -l last_option
- Last shell option i.e: --
- -r
- Relax security. Make a redistributable binary which executes on different systems running the same operating system.
- -v
- Verbose compilation
- -D
- Switch on debug exec calls
- -T
- Allow binary to be traceable (using strace, ptrace, truss, etc.)
- -C
- Display license and exit
- -A
- Display abstract and exit
- -h
- Display help and exit
ENVIRONMENT VARIABLES¶
- CC
- C compiler command [cc]
- CFLAGS
- C compiler flags [none]
EXAMPLES¶
Compile a script which can be run on other systems with the trace option enabled:example% shc -v -r -T -f myscript
BUGS¶
The maximum size of the script that could be executed once compiled is limited by the operating system configuration parameter _SC_ARG_MAX (see sysconf(2))AUTHOR¶
Francisco Rosales <frosal@fi.upm.es>REPORT BUGS TO¶
the author.| June 18, 2003 | 4th Berkeley Distribution |