Quickest way to make py script Web accessible

Jim jhefferon at smcvt.edu
Thu Jan 5 09:48:35 EST 2006


rtilley at vt.edu 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 run the
> scripts themselves whenever they like... instead of asking me.
>
Perhaps I'm not understanding the question, but ..

Can you write a CGI script that calls the desired program using
Python's system call, like:
   os.system("/home/rtilley/cleanup.py")
and then returns a little HTML saying that the cleanup was done at
such-and-such a time?

Is that what you are asking to do?
Jim




More information about the Python-list mailing list