capturing output from os.system() in Windows?

David gabnash at hotmail.com
Wed Apr 23 09:37:55 EDT 2003


Duncan Booth <duncan at NOSPAMrcp.co.uk> wrote in message news:<Xns9366626B53C4Eduncanrcpcouk at 127.0.0.1>...
> gabnash at hotmail.com (David) wrote in 
> news:f405d9e7.0304230003.63baab05 at posting.google.com:
> 
> Us os.popen, os.popen2, os.popen3 or os.popen4 according to your exact 
> needs.
> e.g. lines = os.popen('net view').readlines()
> 

That worked well! Thanks very much.




More information about the Python-list mailing list