mikealeonetti has asked for the wisdom of the Perl Monks concerning the following question:
The program I'm writing forks off a daemon process which I'd like to be able to communicate with to get it to do things via the command line controller.
Doing research on Perl IPC, I'm guessing the best way to communicate with it would be on a named pipe but the daemon can't be blocked spending all it's time waiting for somebody to give it a command because it has other daemonly things to do (it has to watch RSS feeds).
What's the best way to get it to receive commands (like reload config, e-mail report, etc) but not stop it from checking for RSS updates?
Or am I once again thinking about this all wrong?
Thanksss.
|
|---|