Re: [JSch-users] Inserting password for the switch-user (su) command
Status: Alpha
Brought to you by:
ymnk
From: <ym...@jc...> - 2012-03-15 04:42:12
|
Hi, +-From: Simone Battagliero <s.b...@go...> -- |_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 |