Where does my output go?

Tim Hammerquist tim at vegeta.ath.cx
Tue Sep 11 18:56:04 EDT 2001


Me parece que Michael Abbott <michael at rcp.co.uk> dijo:
> 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!

Try:

    C:\TEMP> python write.py > write.txt

ASSOC is just another MS hack to try to imitate *nix.  The hack seems to
fail in your case.


-- 
The house smelled musty and damp, and [a] little sweet,
as if it were haunted by the ghosts of long-dead cookies.
    -- Neil Gaiman, "American Gods"



More information about the Python-list mailing list