我想在Eclipse这样运行ssh命令 ExpectJ exp = new ExpectJ();
Spawn s = exp.spawn("ssh [email protected]");
. . .
. . .
. . .
,但我得到这样的错误 - Pseudo-terminal will not be allocated because stdin is not a termin
我在很多地方看到过这个问题,也就是说用PostgreSQL进行编程备份的问题。我的解决方案是使用ExpectJ,但我无法让我的代码工作。 我有以下代码: public class BackupUtility
{
public static void main(String[] args)
{
try
{
ExpectJ exp = new ExpectJ(20