Hi ,

I execute an interactive command on the target host using jsch by setting the 
pty flag.
I set the input to be provided to this interactive command using the following 
code snippet.

            byte[] cmdbuf = cmdInput.getBytes();
            ByteArrayInputStream bi = new ByteArrayInputStream(cmdbuf);
            channel.setInputStream(bi);

Every now and then this input is sent to pseudo terminal even before the 
command execution starts as a result of which the command hangs waiting for 
this input
What can be done to ensure the input to this command is sent to the pseudo 
terminal only after the command execution has started ?

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-d2dcopy2
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to