Re: [JSch-users] stdout and stderr question
Status: Alpha
Brought to you by:
ymnk
From: Offer B. <off...@gm...> - 2016-09-28 10:35:35
|
Really? no one? is this the right place to ask this? On Tue, Sep 6, 2016 at 12:47 PM, Offer Baruch <off...@gm...> wrote: > Hi everyone, > > We have been using JSCH for a long time now... > We are using an ChannelExec to run our commands. > Up until now we always read both the input and err streams and combined > their output into one string. > > We now want to split those streams into different strings and to allow the > calling program to decide what to do with each stream... > When i tried to debug this, i have found that reading from the input > stream returns back both stdout and stderr... in fact the err stream is > empty... > is this a known feature/bug? > > is there a proper way to do this? > > thanks in advance! > Offer Baruch > |