Where does my output go?

Hans Nowak hnowak at cuci.nl
Wed Sep 5 11:15:31 EDT 2001


>===== Original Message From Michael Abbott <michael at rcp.co.uk> =====
>So, I write a small bit of Python (one line):
>
>write.py
>--------
>    	print 'hello'
>--------
>
>I then run it from the command line:
>
>
>    	C:\TEMP>ver
>
>    	Windows NT Version 4.0
>
>    	C:\TEMP>write
>    	Hello
>
>    	C:\TEMP>write >write.txt
>
>    	C:\TEMP>dir write.txt
>    	 Volume in drive C is SKYLARK
>    	 Volume Serial Number is 2801-8D16
>
>    	 Directory of C:\TEMP
>
>    	05/09/01  15:27                      0 write.txt
>    	               1 File(s)              0 bytes
>    	                          1,080,729,088 bytes free
>
>    	C:\TEMP>
>
>Where did my output go?  This is most perplexing!

Not sure what the cause is, but if you run the program with "python", like

  python write.py > bla.txt

then it should work fine. At least on my NT box it does. :)

Regards,

--Hans Nowak





More information about the Python-list mailing list