Hi,
+-From: Ehud Kaldor <[email protected]> --
|_Date: Thu, 18 Mar 2010 22:15:03 -0700 ______
|
|i'm looking for a way to open a non-interactive shell session. i am
|connecting to a menu driven system the users connect to, and i need to
|navigate the menus until i get what i need. all the shell example out there
|assume interactive (channel.setInputStream(System.in);
|channel.setOutputStream(System.out);) while i am looking to send a command
|by the program, parse the output, send the next command and so forth.
|any examples?
I don't have an example, but it will be easy.
Try to get I/O streams from the channel and operate them,
and I suggest to invoke ChannelShell#setPty(false). It will
strip escape sequences for the terminal emulator.
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: @ymnk
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users