Hi,
 
/bin/su requires a psuedo terminal for execution over ssh. 
I set the pty flag as follows before executing this command using jsch.
 
((ChannelExec)channel).setPty(true);
 
I works consistently on some hosts, but hangs intermittently on some hosts.
 
Could this be an environment issues where the pseudo terminal is not 
set/reset properly (OR) should I set some other flag like "setTerminalMode" .
Please suggest me how to go about debugging this issue.
 
thanks,
Prakash

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to