Re: [JSch-users] Submit several command

2012-11-01 Thread David Walend
> I'd like to execute several command. > > First i need to open a connection (this i found how to do) then make a "su > - user" then submit another order like "ls" and finally get back the result. > > Do you know how i could do that please ? Hi Vivien, Will something like sudo -u username ls

[JSch-users] Submit several command

2012-10-25 Thread Vivien Duparc
Hi, I'd like to execute several command. First i need to open a connection (this i found how to do) then make a "su - user" then submit another order like "ls" and finally get back the result. Do you know how i could do that please ? Thanks. -