To cmd.exe

Tim Golden mail at timgolden.me.uk
Mon Aug 22 09:29:33 EDT 2011


On 22/08/2011 14:21, aba ca wrote:
> How can I send to cmd.exe "netstat -an"?

Look at the subprocess module, and especially the .check_output
convenience function:

   http://docs.python.org/library/subprocess.html#subprocess.check_output

TJG



More information about the Python-list mailing list