Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Channel channel=session.openChannel("exec");
- ((ChannelExec)channel).setCommand(command1);
- channel.setInputStream(null);
- InputStream in=channel.getInputStream();
- final InputStream errStream = ((ChannelExec)
- channel).getErrStream();
- channel.connect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement