无法执行二进制文件linux,尝试在Linux上运行Shell脚本时“无法执行二进制文件”... |
您所在的位置:网站首页 › shell执行二进制文件 › 无法执行二进制文件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的任何建议。 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |