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 <[email protected]>wrote:

> 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 <[email protected]> a
> écrit :
>
> There is no documentation.   Look at the examples directory
>
> For running commands remotely, even su, look at Exec.java in the examples
> directory
>
> On Apr 23, 2010 2:41 PM, "Vivien Duparc" < <[email protected]>
> [email protected]> wrote:
>
> Hi,
>
> I'm a new user of api jsch and i have two question please
>
> First, is There any doc anywhere ? Or the only help for beginner are
> examples ?
>
> Second, do you know how to execute an su command please ?
>
> Thx.
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> JSch-users mailing list
>  <[email protected]>[email protected]
>  <https://lists.sourceforge.net/lists/listinfo/jsch-users>
> https://lists.sourceforge.net/lists/listinfo/jsch-users
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> JSch-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jsch-users
>
>
------------------------------------------------------------------------------
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to