I need to create a daemon in c that runs in the background but does not perform its task until I request it to.
Just for an example; I have created a daemon that when run will perform a
du -h --max depth=3
command on /home
and output it to a file. However I want the daemon to run in the background and not perform this task until I request it.
I’ll admit this sounds pointless but I have set of programs that I want to combine into one daemon that performs tasks upon request.
Any advice or example on this are greatly appreciated.
Many Thanks,