Hi,

   +-From: Simone Battagliero <s.battagli...@googlemail.com> --
   |_Date: Wed, 14 Mar 2012 16:50:14 +0100 ____________________
   |
   |I tried, but it seems to be not supported in my OS... I have Red Hat
   |4.1.2-51 with 2.6.18 kernel.
   |I also tried su -c "Command" < "/path/to/file" but it says "standard in
   |must be a tty".

If "sudo" command on RedHat 4.1.2-51 supports "-S" option,
how about using it?  Refer to 
  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
    +1-415-578-3454
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk
Facebook: http://facebook.com/aymnk
 

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to