libvenus has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I m making a threaded application and inside each thread i m using an external binary to fire a query onto a specific server and port. I then use pipe to read the response of the command. In this process i have noticed that the external binary gets defunct a lot and the application hangs. Below is the code snippet:-
open(HAN,"$allConfig{'pathToClientBinary'} $allConfig{'dmProdH +ost'} $allConfig{'dmProdPort'} $allConfig{'queryMsgType'} \" $duprefo +rmedQuery \"|") || confess "$!"; $prod = <HAN>;
Is there a better and safer way of doing this ?? .. i know i can make sockets but i m unable to format my message in the way the application sever expects and the protocol that talks to the application is not supported in our company specific perl dist.
Any help is greatly appreciated
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Launch External Binary
by moritz (Cardinal) on Oct 09, 2008 at 06:14 UTC | |
by Illuminatus (Curate) on Oct 09, 2008 at 14:43 UTC | |
by Fletch (Bishop) on Oct 09, 2008 at 15:05 UTC | |
by Illuminatus (Curate) on Oct 09, 2008 at 15:20 UTC |