【发布时间】:2013-04-17 18:43:12
【问题描述】:
我已连接到远程 ubuntu 服务器。在连接时,我想执行下面的 shell 命令
String command = "cd "to some directory" ;
sudo ./i3lsdd";
// want to move to a directory and execute sudo ./i3lsdd command.
我使用了下面的代码,但它给出了这个错误:
"sudo: no tty present and no askpass program specified 抱歉,试试 再次。”
非常感谢任何帮助。
【问题讨论】: