It's very strange, because I have exactly the opposite !
I want to use a sudo and it works only if I set Pty to true...
If pty is false my sudo command just don't work...

Valerie




De :    prakash babu <jprakashb...@yahoo.co.in>
A :     "jsch-users@lists.sourceforge.net" 
<jsch-users@lists.sourceforge.net>
Date :  06/07/2011 09:28
Objet : [JSch-users] pty flag works for su command but hangs for sudo.


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

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to