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
In reply to Launch External Binary by libvenus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |