Newbie has trouble with in/output
Mark Hammond
Mark.Hammond at p98.f112.n480.z2.fidonet.org
Fri Jul 2 14:56:49 EDT 1999
From: "Mark Hammond" <MHammond at skippinet.com.au>
Florian W. wrote in message <7lglb4$ksu$1 at news.vossnet.de>...
>1.) Being in a pipe:
>
>I won't to filter the output of the compiler (e.g. only errors and warning
>are reported, no logo etc.)
>using the pipe-mechanismen :
>
>cl.exe blabla | python filter_compiler_output.py
>
>How do I catch the input and how do print the output ?
You simply read() to get the input, and print to write output!!
>2.) Catch the output of an application:
Check out the win32pipe module in the win32all package. Documentation
(sort-of :) is in the help file, or searching dejanews for that module name
will return plenty of hits...
Mark.
More information about the Python-list
mailing list