[JSch-users] pty flag works for su command but hangs for sudo.
Status: Alpha
Brought to you by:
ymnk
From: prakash b. <jpr...@ya...> - 2011-07-06 07:28:26
|
Hi , I am trying to run an interactive su and sudo command from my webapplication on a remote host which is Linux. Since this an interactive command and prompts for the password, I have set the pty as shown below. ((ChannelExec)channel).setPty(true); The su command works, but the sudo command is irresponsive(hangs). Am I missing something here like setting the pty type, dimensions etc. thanks, Prakash |