LISCOMB@MAINE.MAINE.EDU (David A. Liscomb) (05/26/91)
Having grown up with VM Rexx and being used to fetching command output
from the program stack, has anyone figured out how to stack command
output using OS/2 Rexx? The docs have this funky queue handler, but
I've had no success piping commands to it. It's really depressing to
have to pipe commands to a disk file and then read the disk file...
Also, keep the Rexx standards minutes coming!
Oh, by the way, for you Amiga types out there, same question as above.
-David A. Liscomb This package sold by weight, not by volume.
Systems Prog. Team Leader Some settling may occur during shipment.
MediQual Systems Inc.
Your_Insult: If you act like a punk, just be
hewed by Sandy Shaw.RICKW@umrvmb.umr.edu (05/28/91)
------------------------- Original Article -------------------------
Having grown up with VM Rexx and being used to fetching command output
from the program stack, has anyone figured out how to stack command
output using OS/2 Rexx? The docs have this funky queue handler, but
I've had no success piping commands to it. It's really depressing to
have to pipe commands to a disk file and then read the disk file...
Also, keep the Rexx standards minutes coming!
Oh, by the way, for you Amiga types out there, same question as above.
-David A. Liscomb This package sold by weight, not by volume.
Systems Prog. Team Leader Some settling may occur during shipment.
MediQual Systems Inc.
Your_Insult: If you act like a punk, just be
hewed by Sandy Shaw.
----------------------------------------------------------------------------
Here is a short example of stacking the output from OS/2 commands
/* */
PARSE ARG path
'@ECHO OFF'
'DIR ' path '/n | RXQUEUE /fifo'
DO WHILE(QUEUED() > 0)
PARSE PULL input
IF POS('<DIR>',input) > 0 THEN
DO
SAY input
END
END
EXIT
The important part is the piping of DIR into RXQUEUE. This is NOT the
RXQUEUE function. The only documentation I found is on page 210 of the
Reference.
I hope this helps.
Rick... RICKW@UMRVMB