Okay; so I guess that when using the stream option of the address instruction, the output replace option is a misnomer. I'd say that the Language Reference should point out this exception. It would be nice, also, if the examples for the address instruction included one for each of the different output/error variations.
Leslie On 2023-06-13 09:05:10 Ruurd Idenburg wrote: > Hi Leslie, > > From what I read in the reference guide you re using he strem option > correctly. > > If you insert an osCommand~open or an osCommand~close between the first > and second command it seems to work properly, but if you insert an > osCommand~open('REPLACE') between the 2 it shows the same result that > you got. > > Ruurd Idenburg > > On 6/13/23 05:45, J Leslie Turriff wrote: > > Hello, > > I'm trying out the address ... with output replace stream 'streamName' > > instruction, but it doesn't behave the way I would expect, and there are > > no examples in either of the ooRexx manuals for other than stem and > > array. > > > > What I'm trying to do is issue several OS commands and capture each > > command's output using the stream option. The first address instruction > > works as expected, but successive address instructions return no lines. > > > > Attached are two test programs that show the problem I'm having. > > > > Perhaps I'm using stream incorrectly or inappropriately? but I can't > > tell by what is in the manuals. > > > > Leslie > > --Platform: Linux > > Distribution: openSUSE Leap 15.4 (x86_64) > > Open Object Rexx Version 5.0.0 r12583 > > Build date: Dec 23 2022 > > Addressing mode: 64 > > > > > > _______________________________________________ > > Oorexx-devel mailing list > > Oorexx-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/oorexx-devel > > _______________________________________________ > Oorexx-devel mailing list > Oorexx-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- Platform: Linux Distribution: openSUSE Leap 15.4 (x86_64) Open Object Rexx Version 5.0.0 r12583 Build date: Dec 23 2022 Addressing mode: 64 _______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel