Inets, CGI, Python, and Windows, oh my!

Bijan Parsia bparsia@REDACTED
Wed Feb 21 20:43:03 CET 2001


Or "Oh damn!" ;)

Anyone have any tips on running python cgi scripts under Inets under
Windows (gag) 98?

AFAICT, it's not going to work out of the box no matter how I diddle the
settings. mod_cgi:is_executable/1 seems incapable of recognizing *.py
files as executables because, well, they *aren't* to Windows, or rather,
to *dos* (yuck!).

(Note that os:find_executable(python) works, so the python executable is
in my PATH variable.)

Even if it would find the interpereter, it's not clear that it will get
any results or even execute the script. 

	os:cmd("python tester.py").

doesn't work. It doesn't execute the script (though sometimes it *does*
crash windows).

	os:cmd("python -c \"import tester; tester.test()").

*does* work and even gets the results.

Oh the pain.

Any hints like suffering souls care to share?

Cheers,
Bijan Parsia.




More information about the erlang-questions mailing list