Load a python script from html

Samantha dub98xfs at ureach.com
Fri Aug 9 21:47:25 CEST 2002

I have tried doing this:

<!--#exec a-unix-proggy-->

and this:

<!--#include <a-unix-proggy-->

I don't think I put #1 in a .shtml file. I intend to try that.

I heard of some python module that has to be put in the http.conf (for a unix based 
system) in order to have python scripts run from html the way cgi and php can.

Meanwhile, I found that this somewhat convoluted method does work:

$aVariable=`type in command line arguments to get a script to execute`;
echo $aVariable ;
//$aVariable should have the info I need to be dumped into the html page

Lesson: back ticks(sp?) are friends to every lazy coder :)

Thanks to everyone for their help


Get your own "800" number
Voicemail, fax, email, and a lot more

---- On Mon, 5 Aug 2002, Sebastian Roth (xsebbi at gmx.de) wrote:

> On Monday 05 August 2002 05:26, Roger wrote:
> > Using shtml?
> >
> > If this is unix, try the path to unix on the first line of your
> > python script:
> > #!/usr/bin/python   # or whatever on your system.
> >
> > In the .shtml file, put:
> > <!--#exec cmd=/location/of/python/script-->
> >
> > see if that works.
> What about "include virtual" ? Worked fine for me...
> 		Sebastian

More information about the Python-list mailing list