Create a Python Daemon - Printable Version +- nixers (https://nixers.net) +-- Forum: Development & Graphics (https://nixers.net/Forum-Development-Graphics) +--- Forum: Programming On Unix (https://nixers.net/Forum-Programming-On-Unix) +--- Thread: Create a Python Daemon (/Thread-Create-a-Python-Daemon) |
Create a Python Daemon - venam - 07-09-2012 A daemon is a program that runs in the background independently of any shells, terminal. There's many way to create daemons but I'll show you the way I use. Here is the script: [Python daemon Script](http://paste.unixhub.net/index.php/Eu8) usage python2 pythondaemon.py scripttoberunasdaemon.py args make sure that the script doesn't ask for user inputs but for system argv This should fork the script and make it work as a daemon. See ya! RE: Create a Python Daemon - deadgone - 07-09-2012 Thanks! This is really useful! |