python调用 plink.exe returned non-zero exit status 127.
时间: 2023-09-21 19:08:30 浏览: 195
这个错误通常表示 Python 无法找到 plink.exe 或者 plink.exe 文件无法被正确执行。请确保 plink.exe 存在于你的系统 PATH 环境变量中,并且你有足够的权限运行它。你可以在命令行中尝试手动执行 plink.exe,以检查它是否能够正确执行。如果你仍然无法解决问题,请提供更多的错误信息和上下文,以便我能够更好地帮助你。
相关问题
python调用 plink.exe 运行时 Access granted. Press Return to begin session. 如何跳过
您可以使用 Python 的 `subprocess` 模块来运行 `plink.exe` 命令,并将 `-batch` 参数传递给它来跳过交互式提示。以下是示例代码:
```python
import subprocess
command = 'plink.exe -batch your-ssh-command'
output = subprocess.getoutput(command)
```
请注意,这将完全自动化 `plink.exe` 命令,因此如果需要输入密码或其他交互式输入,则可能会出现问题。此外,您可能需要在命令中传递其他参数,以便正确连接到 SSH 服务器。
plink--merge-list12.txt--recode--outhebing bash: plink--merge-list12.txt--recode--outhebing: command not found...
这个错误提示看起来是你在运行一个命令行命令时输入有误或者命令不存在。请检查你输入的命令是否正确,并且确认你已经安装了需要用到的程序或工具。
根据你提供的命令,似乎你想对一个名为"merge-list12.txt"的文件进行重新编码(recode)并将输出结果放入名为"outhebing"的文件中。如果你使用的是 Linux 操作系统,你可以尝试使用以下命令:
```
plink --file merge-list12.txt --recode --out outhebing
```
这个命令将会使用 plink 工具对 "merge-list12.txt" 文件进行重新编码,并将结果输出到名为 "outhebing" 的文件中。如果你的操作系统上没有安装 plink 工具,你需要先安装它才能运行这个命令。
阅读全文
相关推荐











