Turning a script into a CGI is a brain-dead easy way of web-enabling a
script.
You could even make the script dual purpose by checking for the
existence of CGI environment variables. If they exist the script is
running as a CGI.
There are lots of resources on the internet on how to write CGIs.
A
[EMAIL PROTECTED] wrote:
> I apologize for my inital ambiguity.
>
> Say I have a .py script that gets email addresses from a database and
> then sends messages to customers (this is not spam, these guys _want_
> to get the emails). Historically, IT has executed the script when
> someone in Marketi
Thank you all for the advice and suggestions. I appreciate the time you
took to help!
--
http://mail.python.org/mailman/listinfo/python-list
This works well! Thanks for the advice. The docs for it should include
something about adding content_type = 'text\plain' otherwise, the
'testing' section of the tutorial is broken
It should look like this:
from mod_python import apache
def handler(req):
req.content_type = 'text/plain'
req
I apologize for my inital ambiguity.
Say I have a .py script that gets email addresses from a database and
then sends messages to customers (this is not spam, these guys _want_
to get the emails). Historically, IT has executed the script when
someone in Marketing makes a request. I want to make it
[EMAIL PROTECTED] wrote:
> What is the quickiest and easiest way to make a py script run on a Web
> server? I have access to an Apache Web server running on Linux.
>
> I'm often asked to run some of my scripts on behalf of others. My hope
> is to make a simple Web-based interface where people coul
Karrigell lets you run pure python scripts, although not directly in
Apache.
It uses its own server running behind apache.
You can code in 4 styles:
-pure python scripts
-python in html (like in PHP)
-html in python
-karrigell services (mapping functions to urls)
http://karrigell.sf.net
Hope th
[EMAIL PROTECTED] wrote:
> What is the quickiest and easiest way to make a py script run on a Web
> server? I have access to an Apache Web server running on Linux.
>
> I'm often asked to run some of my scripts on behalf of others. My hope
> is to make a simple Web-based interface where people could
[EMAIL PROTECTED] wrote:
> What is the quickiest and easiest way to make a py script run on a Web
> server? I have access to an Apache Web server running on Linux.
>
> I'm often asked to run some of my scripts on behalf of others. My hope
> is to make a simple Web-based interface where people coul
What is the quickiest and easiest way to make a py script run on a Web
server? I have access to an Apache Web server running on Linux.
I'm often asked to run some of my scripts on behalf of others. My hope
is to make a simple Web-based interface where people could run the
scripts themselves whenev
10 matches
Mail list logo