Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!crdgw1!uakari.primate.wisc.edu!umriscc!umrvmb.umr.edu!RICKW From: RICKW@umrvmb.umr.edu Newsgroups: comp.lang.rexx Subject: Re: passing commands from os/2 rexx Message-ID: <2767@umriscc.isc.umr.edu> Date: 28 May 91 16:59:07 GMT Sender: news@umriscc.isc.umr.edu Organization: Univ of MO - Rolla Lines: 43 ------------------------- 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('',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