Newbie has trouble with in/output

Mark Hammond MHammond at skippinet.com.au
Thu Jul 1 18:56:49 EDT 1999


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