home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
NPIPE.ZIP
/
NPIPE.DOC
next >
Wrap
Text File
|
1991-06-11
|
2KB
|
79 lines
NPIPE.DOC Version 1.0
10-June-1991
Theo Jenetopulos
This program is provided for public use. The program must be distributed as
is and may not be modified. No fees may be charged for the use or
distribution of this program, other than the normal on-line fees of public
data services.
---- Using NPIPE ----
NPIPE was written to allow OS/2 programs to redirect output, through a named
pipe to another session. The program is most useful for viewing output
from PM programs that write to standard out. This is very helpful when
trying to debug PM messages such as WM_PAINT, that can't easily be worked
on with a debugger.
The syntax is:
NPIPE /W pipename (writes standard out to the pipe name you provide)
or
NPIPE /R pipename (reads the named pipe and writes it to standard out)
---- Examples ----
Simple Demo:
OS/2 Window #1
NPIPE /R TEST
OS/2 Window #2
DIR | NPIPE /W TEST
The directory listing will display in window #1.
Useful Demo:
OS/2 Window #1
NPIPE /R MYPIPE
OS/2 Window #2
HELLO | NPIPE /W MYPIPE
Data written to stdout from the Presentation Manager Program will be
displayed in Window #1.
----Warning----
The reader and the writer do their best to wait for the other to get there
before using the pipe but stdout appears buffer about 512 bytes of data
before filling. If you have a PM program that outputs a lot of data to
stdout before you get the reader side of the pipe going you may cause thread
1 to freeze up which will stop your PM message loop. To avoid this you
should start the reader side first.
You can duplicate this using my HELLO program by starting the writer and
causing 10-12 paints to occur. The program will lock. You can hit Ctl-Esc
and wait for the 'not responding' message from OS/2. After killing the
program, start up the reader in another window - it will clear the stdout
of the writer and allow the filter to terminate normally.
---- Future -----
Please let me know if you find this program useful, if you find bugs,
or performance problems or would like to see additional features.
So far the only feature I am considering adding is to allow a sever
name to be specified for remote named pipes.