Python scripts in IIS

Robert Brewer fumanchu at amor.org
Wed Feb 25 11:18:38 EST 2004


Jon Cosby wrote:
> > Thanks. I had left out the trailing arguments. What is "%s" 
> for, anyway?

Andrew Clover replied:
> It gets substituted with the name of the .py file.
> 
> Note: you really want -
> 
>    ...python.exe -u %s %s


What you *really* want ;) is to avoid allowing users to pass arbitrary
strings on the command line, which is what happens with this technique.
You should seriously look into ASP, mod_python, or some other means of
more safely connecting python to a web server.


Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org




More information about the Python-list mailing list