468,556 Members | 2,400 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,556 developers. It's quick & easy.

Re: running python as a dameon

On Sep 5, 9:56 pm, Sean Davis <seand...@gmail.comwrote:
What I want
to do is to provide the python NLP program as a service to any other
PHP/Java/Ruby process request. So the mapping is
http -apache -PHP/Java/Ruby/... -Python NLP

Why not use a simple CGI script or wsgi application? You could make
the service online and interactive and with the same application and
code make an XMLRPC web service. So, things would look more like:

http -apache -Python (running NLP and serving requests)

You can use apache to proxy requests to any one of a dozen or so
python-based webservers. You could also use mod_wsgi to interface
with a wsgi application.

Sean
xmlrpc is the right idea, as it interfaces easily across languages.
Sep 6 '08 #1
2 974
On 6 sep, 15:44, Michael Palmer <m_palme...@yahoo.cawrote:
On Sep 5, 9:56 pm, Sean Davis <seand...@gmail.comwrote:
What I want
to do is to provide the python NLP program as a service to any other
PHP/Java/Ruby process request. So the mapping is
http -apache -PHP/Java/Ruby/... -Python NLP
Why not use a simple CGI script or wsgi application? You could make
the service online and interactive and with the same application and
code make an XMLRPC web service. So, things would look more like:
http -apache -Python (running NLP and serving requests)
You can use apache to proxy requests to any one of a dozen or so
python-based webservers. You could also use mod_wsgi to interface
with a wsgi application.
Sean

xmlrpc is the right idea, as it interfaces easily across languages.
I just daemonize some utility script these week. For that I took one
of the scripts in the ASPN python cookbook : google those 3 words then
search python and you will find out your solution faster than I end up
this mail. It worked like a charm on my linux box.
BTW, I wouldn't complicate with xml stuffs if you don't need it.

Good luck.
Sep 6 '08 #2
On 6 sep, 22:16, kaer <kaerbu...@gmail.comwrote:
On 6 sep, 15:44, Michael Palmer <m_palme...@yahoo.cawrote:
On Sep 5, 9:56 pm, Sean Davis <seand...@gmail.comwrote:
What I want
to do is to provide the python NLP program as a service to any other
PHP/Java/Ruby process request. So the mapping is
http -apache -PHP/Java/Ruby/... -Python NLP
Why not use a simple CGI script or wsgi application? You could make
the service online and interactive and with the same application and
code make an XMLRPC web service. So, things would look more like:
http -apache -Python (running NLP and serving requests)
You can use apache to proxy requests to any one of a dozen or so
python-based webservers. You could also use mod_wsgi to interface
with a wsgi application.
Sean
xmlrpc is the right idea, as it interfaces easily across languages.

I just daemonize some utility script these week. For that I took one
of the scripts in the ASPN python cookbook : google those 3 words then
search python and you will find out your solution faster than I end up
this mail. It worked like a charm on my linux box.
BTW, I wouldn't complicate with xml stuffs if you don't need it.

Good luck.
you obviously "search daemon" not "search python". Her is the link:
http://www.google.com/search?q=daemo...ctivestate.com
Sep 6 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Rex Eastbourne | last post: by
1 post views Thread by walterbyrd | last post: by
1 post views Thread by UniDue | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.