代码改变世界

Linux shc 命令手册

2021-01-06 21:45  jetwill  阅读(1018)  评论(0编辑  收藏  举报

shc

Generic shell script compiler.

https://www.linux-man.cn/command/shc/

#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}}"