[Tutor] really stange behaviour

alan.gauld@bt.com alan.gauld@bt.com
Mon, 5 Nov 2001 17:33:08 -0000


> >>> import commands
> >>> op = commands.getoutput('echo foo')

> P.S: I know all you gurus would suggest something like a 
> popen, I just wanted to make a mention of the "commands" 
> module, which is a nice 

Very nice thanks for pointing it out, I certainly 
didn't realize it existed! Once again Python surprises 
me with its completeness. (Mind you I cant get it to 
work on win98 but thats probably a popen issue in Win32.)

Alan g.