tja_ariani has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: executing commands and getting output
by zby (Vicar) on Sep 05, 2003 at 07:16 UTC | |
by tja_ariani (Acolyte) on Sep 05, 2003 at 08:02 UTC | |
by rnahi (Curate) on Sep 05, 2003 at 08:29 UTC | |
|
Re: executing commands and getting output
by bm (Hermit) on Sep 05, 2003 at 09:10 UTC | |
|
Re: executing commands and getting output
by Roger (Parson) on Sep 05, 2003 at 11:02 UTC | |
|
Re: executing commands and getting output
by ctilmes (Vicar) on Sep 05, 2003 at 11:29 UTC | |
|
Re: executing commands and getting output
by jmanning2k (Pilgrim) on Sep 05, 2003 at 13:53 UTC | |
|
Re: executing commands and getting output
by gilbert0 (Monk) on Sep 05, 2003 at 16:24 UTC |