Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #12027 > unrolled thread

Re: To cmd.exe

Started byTim Golden <mail@timgolden.me.uk>
First post2011-08-22 14:29 +0100
Last post2011-08-22 14:29 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: To cmd.exe Tim Golden <mail@timgolden.me.uk> - 2011-08-22 14:29 +0100

#12027 — Re: To cmd.exe

FromTim Golden <mail@timgolden.me.uk>
Date2011-08-22 14:29 +0100
SubjectRe: To cmd.exe
Message-ID<mailman.316.1314019782.27778.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web