os.system commands in CGI on IIS?

David Brydon david.brydon at att.net
Fri Dec 14 12:16:40 EST 2001


This question seems to come up repeatedly over the last several years
of posts, but I haven't been able to find it answered:

Serving web pages from Microsoft IIS on NT, in a python CGI script, 
if I execute
os.system("copy c:\a.txt c:\b.txt")
It does not happen when the cgi page is called from a browser.
However if the script is run from the command line, it works fine.

Is there any way to get IIS to execute these os.system calls?

Thanks much, David



More information about the Python-list mailing list