Python CGI running commands under NT

Paul Robinson paul.robinson at quantisci.co.uk
Thu Apr 13 09:18:48 EDT 2000


Pieter Claerhout wrote:
> 
> Are there any other ways to accomplish this?

There is always:

import os, tempfile
t = tempfile.mktemp()
command = 'ipconfig > ' + t

os.system(command)

p = open(t, 'r')

But I'm sure someone can think of a better way of doing this.

This question has definately been asked before (possibly by me!) so see
if you can find a fuller answer at dejanews...

	Paul.

-----------------------------------
Business Collaborator Team
Enviros Software Solutions
http://www.businesscollaborator.com
-----------------------------------




More information about the Python-list mailing list