It’s pretty straightforward to daemonize and communicate with a Python script using the PYRO (Python Remoting Objects) library. I found this example on StackOverflow recently and it worked for my purposes.
If you haven’t already, setup pip. Then use it to install Pyro.
To test the daemon, you’ll need two scripts–a client and server. The server acts as the daemon and the client communicates with it.
Comments