Think about Loose Coupling | |
PerlMonks |
executing commands and getting outputby tja_ariani (Acolyte) |
on Sep 05, 2003 at 06:46 UTC ( [id://289118]=perlquestion: print w/replies, xml ) | Need Help?? |
tja_ariani has asked for the wisdom of the Perl Monks concerning the following question:
Hi Perl Monks, Need help with your wise advice here. I was trying to run a daemon in a server, and I need to execute commands to get information regarding what active nodes is running in the server(for a specific application, particularly Netsolve), in order to then kill or restart the nodes (must be done one by one). I was trying to use exec and system command, but with this, I could not get the output from the application, since I need them for deciding the subsequent actions in the program and also to update clients connected to the server regarding what's going on in the server.(The connection to clients are using IO::Socket::INET) Can you give me suggestion to do this? ( execute command, get response from the application, and based on this response,execute different kinds of commands) A bunch of thanks to you all.
Back to
Seekers of Perl Wisdom
|
|