1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/shc.md

20 lines
445 B
Markdown
Raw Normal View History

2018-06-13 11:12:54 -05:00
# shc
> Generic shell script compiler.
- Compile a shell script:
`shc -f {{script}}`
- Compile a shell script and specify an output binary file:
`shc -f {{script}} -o {{binary}}`
- Compile a shell script and set an expiration date for the executable:
`shc -f {{script}} -e {{dd/mm/yyyy}}`
- Compile a shell script and set a message to display upon expiration:
`shc -f {{script}} -e {{dd/mm/yyyy}} -m "{{Please contact your provider}}"`