Execute a command from a cgi script

fishboy fishboy at spamspamspam.com
Sat Jun 5 23:15:09 EDT 2004


On 2 Jun 2004 21:28:37 -0700, tedlandis at rogers.com (Ted) wrote:

>Hi all,
>
>I am trying to execute a batch file from a python cgi script on an IIS
>webserver on Win2K. I have changed all the permissions I can think of.
>The command I am using is:
>
>p = os.spawnl(os.P_WAIT, 'spameggs.bat')
>
>I am using spawn because I need the Wait, but I have tried popen* and
>command and none of them work either.
>
>The odd thing is that if I embed the python code in an asp page it
>works just fine. I am aware there are a lot of variables here but has
>anyone seen anything like this before?
>
>Thanks,
>Ted

try os.system()?

><{{{*>




More information about the Python-list mailing list