stdout and redirection (win NT)

Gordon McMillan gmcm at hypernet.com
Tue Mar 21 07:56:53 EST 2000


Craig Findlay writes:

> What am I doing wrong here?
...
> Next, I type:
> test.py > c:\myfile.txt
> 
> I expect the file myfile.txt to contain the redirected output from the
> python script. Instead, myfile.txt exists but is empty.
> 
> What is happening?

You're using NT.
python test.py > c:\myfile.txt 
will work.

- Gordon




More information about the Python-list mailing list