Piping data into script under Win32

R. C. James Harlow james at wrong.nu
Fri Apr 15 22:37:26 EDT 2005


On Saturday 16 April 2005 03:11, runes wrote:
> I trying to figure out a way to make a python script accept data output
> from another process under Windows XP, but I fail miserably. I have a
> vague memory having read this is not possible with Python under
> Windows...
>
> C:\> type countlines.py | python countlines.py
> Counted 3 lines.

Are you definitely doing this and not:

C:\> type countlines.py | countlines.py

That will give you the error you're seeing. The example you posted works for 
me.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050416/9a52705e/attachment.sig>


More information about the Python-list mailing list