美文网首页
shell脚本bad interpreter: No such

shell脚本bad interpreter: No such

作者: 我想我是 | 来源:发表于2017-12-11 10:41 被阅读0次
脚本路径正确,执行时报找不到文件错误

报错原因:

test.sh在windows编写,windows的某些字符和Linux不一样,导致在Linux执行失败。

解决方法是:

在linux下新建test.sh,把shell文本拷贝进去。

相关文章

网友评论

      本文标题:shell脚本bad interpreter: No such

      本文链接:https://www.haomeiwen.com/subject/wpxiixtx.html