Hi,

   +-From: David Tabernero <davidt...@gmail.com> --
   |_Date: Sun, 12 Jun 2011 23:36:03 +0200 ________
   |
   |I'm using jsch with android. I'm using jsch to execute a command and then
   |shows me the output of
   |the command, but I cant see the ouput of command with LogCat. Could
   |you help me please? Many thanks and sorry for my english!
   ...

   |                          // Execute command
   |                          channelssh.setCommand("ls");
   |                          channelssh.connect();
   |                          channelssh.disconnect();

The command execution will be done in the other(internal) thread,
so you need to wait for the end of execution(channelssh.isClosed()==true)
after invocation of 'connect' method.
Refer to 
  http://www.jcraft.com/jsch/examples/Exec.java
# There should be the functionality like future, but not implemented yet.


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
Facebook: http://facebook.com/aymnk

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to