-1. This would require a change to the .Monitor class beyond it's original
intent. However, this is easily accomplished already with a simple custom
class:

::class nullOutput
::method say
::method linout

Use that as the target and the output will be discarded.

Rick

On Sat, Dec 3, 2022 at 1:22 PM Rony G. Flatscher <rony.flatsc...@wu.ac.at>
wrote:

> Redirecting stdout and stderr on the commandline allows one to redirect to
> the null device (on Windows "nul", on Unix "/dev/null"), e.g.
>
>     someCommand >nul          (Windows)
>     someCommand >/dev/null    (Unix)
>
>     someCommand 2>nul         (Windows)
>     someCommand 2>/dev/null   (Unix)
>
>
> There are redirections where the same need occurs with redirected command
> handlers. Therefore it would be helpful, if .nil could be used as the null
> device on ooRexx redirected commands such that ooRexx would ignore any
> output to that destination.
>
> Something like
>
>     address system 'some command' with error using (.nil)
>
> or
>
>     address system 'some command' with output using (.nil)
>
> instead of
>
>     errArr=.array~new
>     address system 'some command' with error using (errArr)
>
> where "errArr" never would get used in the Rexx program.
>
> or
>
>     outArr=.array~new
>     address system 'some command' with output using (outArr)
>
> where "outArr" never would get used in the Rexx program.
>
> ---rony
>
>
>
>
> _______________________________________________
> 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

Reply via email to