We can get the in and out using getInputStream(); and getoutputStream(); 
function.
But I could not find  anything to get the error stream.
is there any way to get the error stream ?
For referrence I am pasting a piece of code based on Shell.java in the example 
section.


      Session session=jsch.getSession(user, host, 22);

      // username and password will be given via UserInfo interface.
      UserInfo ui=new MyUserInfo();
      session.setUserInfo(ui);
      
      session.connect();

   //   String command=JOptionPane.showInputDialog("Enter command",      
"set|grep SSH");

      Channel channel=session.openChannel("shell");
      channel.setInputStream(null);
      channel.setOutputStream(null);


      InputStream in=channel.getInputStream();
      OutputStream out =channel.getOutputStream();


 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to