Where does my output go?

Oleg Broytmann phd at phd.pp.ru
Wed Sep 5 10:51:48 EDT 2001


On Wed, Sep 05, 2001 at 02:27:45PM +0000, Michael Abbott wrote:
> 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!

   Your output went to the asshole of that damned "operating system". Run
this instead:

   python write >write.txt

Oleg.
---- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.




More information about the Python-list mailing list