Hi,

   +-From: prakash babu <jprakashb...@yahoo.co.in> --
   |_Date: Mon, 28 Nov 2011 12:19:17 +0530 (IST) ____
   |
   |This is also working perfectly fine, but for some instances,A (B
   |the execution hangs, the reason being the input/password is being
   |piped even before the pseudo terminal is launched and hence 
   |the command is waiting infinitely for the password/input.

You should wait for the prompt for password, and then send the password,
as we needed to do in dial-up connections at the ancient days
with ppp, slip, uucp, etc.

   |How do I go about resolving this issue.

If it is acceptable to use flags '-S' and '-p' options of sudo command,
try
  http://www.jcraft.com/jsch/examples/Sudo.java


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk
Facebook: http://facebook.com/aymnk

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to