Hi all,
I have an application which loads a large amount of data, does a lot of processing on this data, and once this processing is complete, starts listening to a pre-specified port for any requests/commands from client programs. The program at this point establishes itself as a server to the client programs.
Is there any way I can write a perl script to find out if the server program has finished loading data and has started listening to the port for messages? I need scripts for both Unix and NT environments.
The server does not write any output to any flat files. In addition, if I were to redirect the messages of this application to a file and constantly monitor this flatfile till I find a message equivalent to its listening to the port, the file searching would takes ages, since it is rather verbose in its log message.
I am looking for the equivalent of a "ping" to this program.
Thank you very much in advance.
regards,
ZB [sig][/sig]
I have an application which loads a large amount of data, does a lot of processing on this data, and once this processing is complete, starts listening to a pre-specified port for any requests/commands from client programs. The program at this point establishes itself as a server to the client programs.
Is there any way I can write a perl script to find out if the server program has finished loading data and has started listening to the port for messages? I need scripts for both Unix and NT environments.
The server does not write any output to any flat files. In addition, if I were to redirect the messages of this application to a file and constantly monitor this flatfile till I find a message equivalent to its listening to the port, the file searching would takes ages, since it is rather verbose in its log message.
I am looking for the equivalent of a "ping" to this program.
Thank you very much in advance.
regards,
ZB [sig][/sig]