redirecting stdout from NT

Michael O'Brien mobrien at pixar.com
Tue Mar 7 12:44:10 EST 2000


Hola~

In a complex python script, I have:

    print "hiya"

Running this from the command shell on NT:

    E:\users\mobrien\test>t001.py
    hiya

Trying to pipe this thru more I get:

    E:\users\mobrien\test>t001.py | more

    E:\users\mobrien\test>

This is really a problem when I want to redirect the output to a file (using
>). The file is ends up empty. I'm running NT 4 sp 4. The python version is:

    Python 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on win32
    Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam

I've been searching for an answer on deja and www.python.org since I figure
I'm not the first to hit this problem. No luck yet, tho.

MO






More information about the Python-list mailing list