[解决方法]shc -f xxx.sh shc: invalid first line in script
来源:互联网 发布:笨办法学python kindle 编辑:程序博客网 时间:2024/05/21 22:28
问题:运行shc的时候出现如下错误
Code: $ shc -f test1.sh shc: invalid first line in script
分析下:脚本可以正常运行
$cat test1.shecho "hello"cal
Code:
$ shc -f test1.shshc: invalid first line in script: echo "hello"shc: Success
原因:
You have to put the sha-bang (e.g. #!/bin/bash) at the beginning of the script, since shc need to know which shell is using. Here is an excerpt from the manual page:
解释:
在脚本的第一行添加上沙邦(#!/bin/bash)
- [解决方法]shc -f xxx.sh shc: invalid first line in script
- shc
- man shc
- 使用shc小工具对sh文件进行加密
- 用shc 加密shell
- shc脚本编译工具
- shc下载地址
- shc 脚本加密
- shc加密shell原理
- There are inconsistent line endings in the "XXX.cs" script
- Shell 脚本加密工具shc
- 使用shc加密shell脚本
- 用shc加密shell脚本
- 用shc加密shell脚本
- 用shc加密shell脚本
- Shell 加密之 shc 漏洞
- shc脚本转二进制工具
- 使用shc加密shell脚本
- JavaScript serial port (through the vb's MSCOMM32.OCX control)
- hdu_1276 士兵队列训练问题
- Java 删除一个文件夹下面的所有文件
- Linux嵌入式移植之——(3)支持DM9000网卡
- 带子屏幕的SCREEN逻辑流处理原则
- [解决方法]shc -f xxx.sh shc: invalid first line in script
- JAVA操作串口有感
- 基于 mini2440 电阻式触摸屏:电阻式触摸屏工作原理
- redis主备手动failover测试
- 07、给电影表和模型添加新字段
- 提示框相关 ---tooltip
- error: linker command failed with exit code 1 (use -v to see invocation)
- 第一阶段 学习ogre
- ORA-00600: internal error code