Daemons
Zlatin Stanimirov, F64571
There are code listings to help you get started. You need root privileges to install 2 packages
You may download a small perl script which can be used as a daemon here: https://gist.github.com/IamBc/940820c33b79b9225f55
Run the source code by typing: perl <file name>.pl in a terminal window.
There are a few things which are easy to do by hand.
You can use the script on the previous slide or make your own.
What you get:
What you don't get:
Your programming language needs to support it. Usually it doesn't by default, but there are a lot of modules. Here are some examples:
I suggest to daemonize the script in the beginning of the slides with the module Proc::Daemon, although feel free to do it in any language you like :)
To install the perl library, you need to install the following package with a package manager of your choice:
We are going to use daemonize.
To install run sudo apt-get install daemon
Daemonize a script by your choice