浏览代码

shc: add page (#2138)

Darryl Abbate 6 年之前
父节点
当前提交
28f8320a0b
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. 19 0
      pages/common/shc.md

+ 19 - 0
pages/common/shc.md

@@ -0,0 +1,19 @@
+# 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"}}`