
OS/2 Rexx: Supressing echoing of external commands
The past two messages to our query are the two ways to suppress the ECHO of
and do echo to the screen.
I might be stating the obvious but, if you want the output (both standard and
error) to NOT appear on your screen then you'll need to redirect it to somewhere
else besides the default (which is the screen). For example, if you want to NOT
see the results of the OS/2 copy command when you run your REXX script you could
do it as follows:
'COPY first.fil second.fil 1>NUL 2>NUL' /*Redirect outputs to NUL*/
With the above you won't see anything on the screen when the COPY command is
executed. Of course the downside of this is you won't know if the COPY command
failed or was successful. If that is needed then redirect the outputs to a file
(to be read latter) or to the REXX system queue (to be read within the same REXX
script or any other REXX script running on the same machine.) The REXX queue
feature is a very powerful option. If you need more details on it please let me
know. I would suggest that you read the documentation on it first though. My
first reading of the REXX queues feature left me a little perplexed but, after
working with it for awhile it has proved very useful.
Enjoy!
Charlie
_________________________Reply Header_________________________
Author: UNIX.REXXLIT1
Subject: OS/2 Rexx: Supressing echoing of external commands
12-20-93 04:23 PM
I've been playing with the Rexx that comes with OS/2 2.1 and noticed that it
to echo to the screen any external commands issued.
How can I suppress this behaviour?
--
Belinda Avenue, Cloverdale, W.A. / \ Phone +61
9 478 1406 (GMT+8) *_.--._/