分享一个自己编写的脚本 进程监听端口列表 Windows平台
- 
不错支持一下.... 
 Tags 是用英文","分隔的...
 另: 请参考:<br / http://docs.python.org/library/tempfile.html br />&<br / [检测到链接无效,已移除] br />
- 
试试 http://code.google.com/p/psutil/ 模块,你可以更优雅的实现你要的功能,而且更重要的是它是夸平台的。 
- 
[quote author=mrshelly link=topic=2704.msg9101#msg9101 date=1324369221] <br />...<br />>>> pop = subprocess.Popen('cmd /c dir', stdin=subprocess.PIPE, stdout=subproces<br />s.PIPE, close_fds=False)<br />>>> print pop.stdout.read()<br />...<br />
 [/quote]
 谢谢你的提示,通过使用管道很好的处理了这个问题。
- 
[quote author=digitalsatori link=topic=2704.msg9102#msg9102 date=1324369661] 
 试试 http://code.google.com/p/psutil/ 模块,你可以更优雅的实现你要的功能,而且更重要的是它是夸平台的。
 [/quote]
 谢谢你的建议,看了psutil包的介绍,功能很强大。在系统管理上会很有用。

