Thanks for your answer but My problem is not how to execute a command,
this i understand, but how execute a 'su - user' command where remote
host ask for user's password and so how send remote host this password.
Le 24 avr. 2010 à 01:47, Keith Alan Richardson keith.a...@gmail.com
a écrit
use 'session' instead of 'exec', parse the response and send the password
after.
Ehud
On Sat, Apr 24, 2010 at 1:31 AM, Vivien Duparc vivien.dup...@gmail.comwrote:
Thanks for your answer but My problem is not how to execute a command,
this i understand, but how execute a 'su - user' command
Hi,
+-From: Mick McLaughlin mclaughlin.m...@gmail.com --
|_Date: Fri, 23 Apr 2010 12:21:26 -0400 __
|
|I don't see how I can return null a 2nd time after getPassword() is called
|unless I hack it to detect if it's already been asked for.
That hack will be needed for