473,372 Members | 1,067 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 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 1116
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Alex Stapleton | last post by:
Whenever I run python I get "Warning! you are running an untested version of Python." prepended to the start of any output on stdout. This is with Debian and python 2.3 (running the debian...
12
by: Rex Eastbourne | last post by:
Hi, I'm interested in running a Python interpreter in Emacs. I have Python extensions for Emacs, and my python menu lists "C-c !" as the command to run the interpreter. Yet when I run it I get...
1
by: walterbyrd | last post by:
I understand that Python has them, but PHP doesn't. I think that is because mod_php is built into apache, but mod_python is not usually in apache. If mod_python was built into apache, would...
8
by: geert | last post by:
Hi all, I have a mac mini running maocosx 10.5 leopard I want to deploy a django project on. My backend is MySQL, and I have it running as a 64- bit app. Of course, apache2 is also running as...
9
by: Jimmy | last post by:
Well, i know it may be a little non-python thing, however, I can think of no place better to post this question :) can anyone tell me, in python, how to obtain some information of a running...
4
by: Propad | last post by:
Hello, I know this issue pops up once in a while, but I haven't found a good answer to it. I need to debug a long running application under windows. The application is a combined java/python...
7
by: alito | last post by:
Hi all, I am new to using packages to group my modules. I can't figure out how to run a module that uses relative imports without writing a wrapper that imports that module. Everything I try...
0
by: eddiefisher41 | last post by:
Hey guys. Im having problems running a python cgi. Im using the example code from: http://www.python.org/doc/essays/ppt/sd99east/sld041.htm as writen by Van Rossum himself I can get the script...
5
by: Christopher Brewster | last post by:
I am running the same script on the same data on two different machines (the folder is synchronised with Dropbox). I get two different results. All the script does is count words in different...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.