mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user