Upload of binary files

Steve Holden sholden at holdenweb.com
Mon Mar 17 17:07:19 EST 2003


"Peter Mott" <peter.mott at btconnect.com> wrote in message
news:b550cb$534$1 at venus.btinternet.com...
> > One last thing you might try if your web server honors the shebang
> > convention (as Xitami and Apache both do, for example, even on Windows)
is
> > to use a first line similar to
> >
> > #!C:/python22/python -u
>
> Well b****r me. This works too.
>

Excellent! Now, if you can think of a way I can get the same CGI to run
under Cygwin Python when I use it as part of an Apache 1/Cygwin web and
Windows Python when I use it as part of an Apache 2/Windows web you'll be
able to take it one step further.

[Clue: the Windows version can be persuaded to use the registry...]

regards
--
Steve Holden                                  http://www.holdenweb.com/
Python Web Programming                 http://pydish.holdenweb.com/pwp/
Register for PyCon now!            http://www.python.org/pycon/reg.html







More information about the Python-list mailing list