471,322 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,322 software developers and data experts.

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 1036
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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.