• Multiple rxqueue directs

    From Garry Smithwick@21:1/5 to All on Fri Jan 19 06:46:28 2018
    I know I can use rxqueue to capture output from commands like:

    'wmic logicaldisk get size,freespace,caption ' '|' rxqueue qname

    but how to I capture multiple streams?

    For example, I use wget to pull data from the internet:

    "wget.exe" '"'url'"' parms '-O' '"'file'"' '1>NUL 2>NUL 3>NUL'

    Stream1, stream2, and stream3 all go to NUL so no output. If I wanted to capture all three streams to different rxqueue's, how do I code that?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Steven Levine@21:1/5 to garrysmithwick@gmail.com on Sun Jan 21 09:36:44 2018
    On Fri, 19 Jan 2018 14:46:28 UTC, Garry Smithwick
    <garrysmithwick@gmail.com> wrote:

    Hi,

    Stream1, stream2, and stream3 all go to NUL so no output. If I wanted to capture all three streams to different rxqueue's, how do I code that?

    It depends on your shell and not all shells are sufficiently capable.
    OTTOMH, on *ix, it's something like

    ( wget ... | rxqueue queue1 & ) 2>&1 rxqueue queue2

    etc. The key is being able to run the rxqueue instances in parallel.
    What might also work is

    { wget ... | rxqueue queue1 & ;} 2>&1 rxqueue queue2

    which uses a few less resources.

    HTH,

    Steven


    --
    ---------------------------------------------------------------------
    Steven Levine <steve53@earthlink.bogus.net>
    DIY/Warp/BlueLion etc. www.scoug.com www.arcanoae.com www.warpcave.com ---------------------------------------------------------------------

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Garry Smithwick@21:1/5 to All on Mon Jan 22 05:14:23 2018
    Sorry, I do not know what "OTTOMH" is. I am running Object Rexx on Windows 7.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Steven Levine@21:1/5 to garrysmithwick@gmail.com on Mon Jan 22 18:19:12 2018
    On Mon, 22 Jan 2018 13:14:23 UTC, Garry Smithwick
    <garrysmithwick@gmail.com> wrote:

    Sorry, I do not know what "OTTOMH" is. I am running Object Rexx on Windows 7.

    Off the top of my head, meaning my suggestion is untested and might
    contain syntax errors.

    FWIW, I don't know how to do what you are asking to do from a Windows
    shell. Hopefully someone will be able to guide you.

    Steven



    --
    ---------------------------------------------------------------------
    Steven Levine <steve53@earthlink.bogus.net>
    DIY/Warp/BlueLion etc. www.scoug.com www.arcanoae.com www.warpcave.com ---------------------------------------------------------------------

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)