Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#8 Help with su in jsch..

open
nobody
None
5
2006-01-21
2006-01-21
Anonymous
No

Hi,

I am a new user for the jsch. I am using the latest
version of jsch, I am trying the exec command. I am
able to successfully login as a user and then do "su"
command. I did get the password prompt on my console
and then added my root password to the command.

My question is I dont want to do anything from the
console, I have the root password as the String, when
I issue "su" to execute, i there a way I can just add
my root password to the input stream.

I saw in the posting

In the next release, I"ll add methods to
use "RequestPtyReq" without
modifying ChannelExec class.

Does anyone know how I can make use of it, any help is
really appreciated

Thanks
UR

Discussion