Python CGI running commands under NT
Pieter Claerhout
PClaerhout at CREO.BE
Thu Apr 13 05:26:15 EDT 2000
Are there any other ways to accomplish this?
Kind regards,
Pieter
Pieter_Claerhout at creoscitex.com
-----Original Message-----
From: Paul Robinson [mailto:paul.robinson at quantisci.co.uk]
Sent: Thursday, April 13, 2000 10:54 AM
To: python-list at python.org
Subject: Re: Python CGI running commands under NT
Pieter Claerhout wrote:
>
> Hello,
>
> I made a Python CGI-script that executes a DOS-command and
> should return the result in a HTML page. The script looks
> as follows:
>
> import os
>
> pipe = os.popen("ipconfig", 'r')
> text = pipe.read()
Pieter,
By default IIS does not create a console associated with a CGI process.
This means that the pipe has nowhere to read from!
See: http://support.microsoft.com/support/kb/articles/Q194/9/48.ASP
For some info on how you can change this behaviour. I've tried this in
the past with limited success (and I also found it hard to turn it off
again!).
Paul.
-----------------------------------
Business Collaborator Team
Enviros Software Solutions
http://www.businesscollaborator.com
-----------------------------------
--
http://www.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list