Hi Yamanaka

We are using jsch 1.36 version where in we are facing one very peculiar
problem while using ChannelExec for executing a remote command.
Following the code snippet for the same. The issue is that when we try
to set the Pty for ExecChannel the actual command is not getting set and
once we remove the setpTy it works absolutely fine. Could you please
share your thoughts on this as this is very urgent

========================================================================
==============================================
                                String
cmd="/u/ainet/install/interface/InspectInstallation 3";
                                Channel
channel=session.openChannel("exec");
                                ((ChannelExec)channel).setPty(true);
                                ((ChannelExec)channel).setCommand(cmd);
                                 channel.setInputStream(null);
        
((ChannelExec)channel).setErrStream(System.err);
                                InputStream in=channel.getInputStream();
                                channel.connect();
========================================================================
==============================================
 


Tiru Kumar K Sheth
Alcatel-Lucent
Lead Engineer
OMC-H
BPL Software Centre,11th KM, 
Bannerghatta Road,Arakere,
Bangalore 560076
[EMAIL PROTECTED]
Phone : +91-80- 6622 2023 Xtn: 2023
Fax   : +91-80- 6622 2500 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to