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


Groups > comp.lang.python > #12027

Re: To cmd.exe

Date 2011-08-22 14:29 +0100
From Tim Golden <mail@timgolden.me.uk>
Subject Re: To cmd.exe
References <CAN_CDaMm_mgxVhcoGaGVaRyMMRG3fJPqbwOkZ0MDsWKRPtwjuQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.316.1314019782.27778.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web