Hi,
+-From: William Bathurst <[email protected]> --
|_Date: Fri, 14 Jan 2011 07:32:16 +0000 (UTC) __
|
|I begged and borrowed some code and tried to make somewhere I can send a
command
|to a server and then retrieve the results. The problem I am having is that
the
|results is always delayed. Note I put >>><<< to separate results:
...
How about reading the prompt at first?
results = getstuff(in,buffer,bos,channel);
System.out.println(results);
| System.out.println(">>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<");
| stdOut.write("\n".getBytes());
| results = getstuff(in,buffer,bos,channel);
| System.out.println(results);
| stdOut.flush(); results = "";
...
Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
+1-415-578-3454
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users