This commit is contained in:
Looly
2024-08-11 00:29:47 +08:00
parent 98c4722f54
commit 4a9b4d4253
4 changed files with 6 additions and 6 deletions

View File

@@ -197,7 +197,7 @@ public class GanymedSession implements Session {
}
// 发送命令
IoUtil.write(this.raw.getStdin(), charset, true, cmd);
IoUtil.writeStrs(this.raw.getStdin(), charset, true, cmd);
// 错误输出
if (null != errStream) {

View File

@@ -158,7 +158,7 @@ public class MinaSession implements Session {
throw new IORuntimeException(e);
}
IoUtil.write(shellChannel.getInvertedIn(), charset, false, cmd);
IoUtil.writeStrs(shellChannel.getInvertedIn(), charset, false, cmd);
return IoUtil.read(shellChannel.getInvertedOut(), charset);
}
}

View File

@@ -222,7 +222,7 @@ public class SshjSession implements Session {
}
// 发送命令
IoUtil.write(shell.getOutputStream(), charset, true, cmd);
IoUtil.writeStrs(shell.getOutputStream(), charset, true, cmd);
// 错误输出
if (null != errStream) {