Re: Piping data into script under Win32

2005-04-15 Thread runes
Thanks James! I'll post the explanation if I find it ;-) Rune -- http://mail.python.org/mailman/listinfo/python-list

Re: Piping data into script under Win32

2005-04-15 Thread R. C. James Harlow
On Saturday 16 April 2005 03:43, runes wrote: > type countlines.py | python countlines.py = Success > type countlines.py | countlines.py = Failure > > Why doesn't the latter work? Don't quote me on this, but I think it's because invoking countlines.py involves running some sort of wrapper that d

Re: Piping data into script under Win32

2005-04-15 Thread runes
You being so sure about what you were saying, was what I needed. Thanks! Under Windows, I'm used to rely on the PATHEXT env. variable, so I typically don't write "python scriptname.py args", but just "scriptname args". So: type countlines.py | python countlines.py = Success type countlines.py | c

Re: Piping data into script under Win32

2005-04-15 Thread R. C. James Harlow
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

Re: Piping data into script under Win32

2005-04-15 Thread Jaime Wyant
I can't think of any reason that wouldn't work. You've entered the code in exactly like you have it below? Could you paste the traceback from your console? jw On 15 Apr 2005 19:11:44 -0700, runes <[EMAIL PROTECTED]> wrote: > I trying to figure out a way to make a python script accept data outpu

Piping data into script under Win32

2005-04-15 Thread runes
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... But googling for a clue I came across this from /Learning Python/ (Lutz & Ascher)