linux 火狐无法执行二进制文件_尝试在Linux上运行Shell脚本时“无法执行二进制文件”...
我對linux和shell編寫非常陌生。我正在嘗試使用以下命令從linux上的安全shell(ssh)運行shellscript:
chmod +x path/to/mynewshell.sh
sh path/to/mynewshell.sh
我收到此錯誤:
path/to/mynewshell.sh: path/to/mynewshell.sh: cannot execute binary file.
嘗試使用此命令:
bash path/to/mynewshell.sh
我犯了同樣的錯誤。
嘗試使用此命令:su - myusername sh path/to/mynewshell.sh 詢問我的密碼并給我這個錯誤:no such file
or directory。
1. cat -v path / to / mynewshell.sh的結果是:^ @ ^ @ ^ @ ^ @ ^ @ ^ @ ^ @ ^ @
Rscript“ $ dir” /diver_script.R完成
2.當嘗試’less path / to / mynewshell.sh’時,我在終端上得到了這個:
#!/bin/bash/Rscript^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
for dir in /path/to/* ; do
^@^@^@^@^@^@^@^@Rscript "$dir"/myRscript.R
done
3.當我運行文件路徑/to/mynewshell.sh時:我得到了這個“ Bourne-Again Shell腳本文本可執行文件”
請提供有關如何嘗試執行Shellscript的任何建議。
總結
以上是生活随笔為你收集整理的linux 火狐无法执行二进制文件_尝试在Linux上运行Shell脚本时“无法执行二进制文件”...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: jmeter聚个报告怎么看qps_【jm
- 下一篇: GitHub干货分享(APP引导页的高度