Hi,

I connected to a product using JSch.

I am trying to read the data, that has been written out by a product
(solaris machine) onto its output stream using the input stream.

I am getting all the data, however I get a whole bunch of garbage characters
in between the data.

I am collecting the data in a byte array directly from the input stream.

Can anyone tell me why I might be facing this problem ?

I have tried using Reader and providing different charset values, but it is
not working.

Here's the output with garbage (unhighlighted part)
*Last login: Wed Dec 23 22:16:34 2009 from 148.147.152.191

Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
TERM is: vt100*

        H        H        H        H        H        H
H        H        H
7*tsdexpert:/export/home/pshindikar $*

Regards,

Prasad Shindikar
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to