Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-1276

Add support for merged inverted output and error streams of remote process

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.8.0
    • 2.9.0
    • None
    • Java SE 8, Apache NetBeans IDE 8.2

    Description

      Hello!

      I want to merge output and error streams of remote process as java.lang.ProcessBuilder#redirectErrorStream(true) does.

      If I set output and error streams;

      channelExec.setOut(mergedOutputStream);
      channelExec.setErr(mergedOutputStream);
      channelExec.open.verify();

      Then, ChannelExec#getInvertedOut() and ChannelExec#getInvertedErr() return null.

      If I don't set output and error streams;

      //channelExec.setOut(mergedOutputStream);
      //channelExec.setErr(mergedOutputStream);
      channelExec.open.verify();

      Then, ChannelExec#getInvertedOut() and ChannelExec#getInvertedErr() return not null. But, streams are not merged.

      How can I merge output and error streams of remote process ?

      Thanks in advance!

      Attachments

        Activity

          People

            lgoldstein Lyor Goldstein
            dgun dgü
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m