Article View: comp.os.os2.programmer
Article #1039Re: I/O Redirection
From: "Kenneth A. Kahn"
Date: Tue, 18 Aug 1992 00:03
Date: Tue, 18 Aug 1992 00:03
19 lines
1405 bytes
1405 bytes
Organization: Staff of IBM Fellow - NetWork Computing
Disclaimer: This posting represents the poster's views, not those of IBM
News-Software: UReply 3.0
X-X-From: KENKAHN@PKSMRVM.VNET.IBM.COM (Ken Kahn)
References: <1992Aug17.204642.9222@a.cs.okstate.edu>
<1992Aug17.220541.11379@elroy.jpl.nasa.gov>
In <1992Aug17.220541.11379@elroy.jpl.nasa.gov> Les Hartzman writes:
>Can a session redirect all output to stdout to another process? In other
>words, if a program writes to stdout, can the output be intercepted for
>placement in a particular window on the screen?
>
I don't have an example off hand, but what you could do something like the
following scenerio. If you want to send Process A's output to Process B,
have process A create a Named Pipe (DosMakeNmPipe). You then redirect StdOut
to the pipe using the Pipe's Write Handle (DosDupHandle). In process B you
then access the same named pipe and use it's Read Handle to access all the
StdOut from Process A.
Technical Details
Message-ID:
<9208180003.AA26263@ucbvax.Berkeley.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!PKSMRVM.VNET.IBM.COM!KENKAHNShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!PKSMRVM.VNET.IBM.COM!KENKAHN
From: KENKAHN@PKSMRVM.VNET.IBM.COM ("Kenneth A. Kahn")
Newsgroups: comp.os.os2.programmer
Subject: Re: I/O Redirection
Message-ID: <9208180003.AA26263@ucbvax.Berkeley.EDU>
Date: 18 Aug 92 00:03:46 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 19