I am building a Web interface to monitor an embedded system. I have built a Perl script which runs remote commands and gathers output from that system. Now what I need is a Web interface which makes calls to this script (executes remotes command) and displays data on the web page.
First of all, I need to make my script as a daemon process which can accept requests from the Web Server. I can choose any server-side technology as long as it can communicate with this Perl script. To keep it simple, I can choose Perl/CGI which can talk to this daemon Perl script.
What is the best way to communicate with this daemon script? I haven t decided on how the communication needs to be—sockets or anything else.
Are there Perl modules already available which can make my message passing simpler without me worrying about how the communication takes place? I have remote commands in plain text and might want to have the data back in XML/JSON.