Re: Executing a hidden/background program
- From: "Mike Driscoll" <kyosohma@xxxxxxxxx>
- Date: Sat, 1 Nov 2008 22:59:15 -0500
Jim,
On Sat, Nov 1, 2008 at 6:02 PM, <jim3371@xxxxxxxxxxxxxx> wrote:
Using wxPython, I'm looking to build a GUI app for a daemon-based app,
on Win32 platform, how would I go about executing the daemon app so it
stays in the background when the Py app is running? It's critical that
the child process exit when the Py app exits/crashes.
--
http://mail.python.org/mailman/listinfo/python-list
You probably want to create a Windows service with Python. There are
various ways to accomplish this. While I haven't done it myself, I
found you some links:
http://agiletesting.blogspot.com/2005/09/running-python-script-as-windows.html
http://essiene.blogspot.com/2005/04/python-windows-services.html
http://timgolden.me.uk/python/wmi.html
Then the service can basically listen for input. You could probably do
something similar by creating a local server with cherrypy or some
such. I like the pubsub module for communication in wxPython.
Fortunately you can use it outside of the toolkit as well:
http://pypi.python.org/pypi/pubsub/1%20to%203
There's also a win32 mailing list for Python users. If you have
specific questions about creating a service, that's probably the best
place to ask. Here's a link to that as well:
http://mail.python.org/mailman/listinfo/python-win32
HTH
Mike
.
- Follow-Ups:
- Re: Executing a hidden/background program
- From: jim3371
- Re: Executing a hidden/background program
- References:
- Executing a hidden/background program
- From: jim3371
- Executing a hidden/background program
- Prev by Date: Anyone in the Houston / College Station / Austin area? Looking to do some sprints / joint projects.
- Next by Date: Re: Responding to web request with python
- Previous by thread: Executing a hidden/background program
- Next by thread: Re: Executing a hidden/background program
- Index(es):
Relevant Pages
|