TIP: Click on subject to list as thread! ANSI
echo: os2rexx
to: Eddy Thilleman
from: David Noon
date: 1999-12-10 20:13:05
subject: Pipes and queues

Hi Eddy,

Replying to a message of Eddy Thilleman to All:

 ET> Ah, I see I can give the queue a name with rxqueue(). But I am not
 ET> sure about how to use a named queue from a plain batch file.

 ET> is a queue also a pipe? I ask this because I see the pipe symbol.

No, the pipe symbol tells CMD.EXE or 4OS2.EXE to create an unnamed pipe to
pass the stdout stream to RXQUEUE.EXE. This program then makes the data stream 
available to the REXX program through the QUEUE: device. The REXX queue itself 
is not a pipe, though.

The name of a named REXX queue is known only to the REXX program that created
it and the instance of RXQUEUE.EXE that was started by that REXX program. Your 
batch program does not need to know the name of the queue.

If you use a named pipe instead, you use it like a file. In that case, you
open the pipe by its name, or have the command shell redirect a program's
stdout to it or stdin from it, and either read it or write in your REXX
program using any of the file stream functions, or .STREAM objects in OREXX.

Regards

Dave


--- FleetStreet 1.24.1
2000
128/139
* Origin: The man who broke the bank at Monte Carlo (2:257/609.5)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.