Hello, i'm new here (and to Perl), and this is my question:
I want to get a variable directly from an on-running UNIX daemon on my system. How do I do that?
The daemon is a simple, self-created one that continuously calculates some system information. Then, I have another script that accepts user input and chooses the correct variable to retrieve from the daemon. I have done this by making the daemon print to a file and read it from there.
However, how do I read it directly without using files? I've tried turning the daemon into a package and trying to use the 'require' and 'use' function but this doesn't work. I think its because the daemon is already running and the require would try to execute it again.
How can I get round this? Or is there another better way?
Hope someone out there can help me with this. Wish you thanks first.