Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Per IPC

by sourav007 (Initiate)
on Jul 16, 2013 at 08:05 UTC ( [id://1044530]=note: print w/replies, xml ) Need Help??


in reply to Re: Per IPC
in thread Per IPC

Thanks for the reply FIFO means named PIPE mechanism you are telling to implement? Yes I am facing the problem with buffer for that the child process is hanging after some time. Please can you help me how to flush the buffer when it is filled up as the child process needs to continuously write to the pipe handle. As I am having two separate scripts and I am to trying initiate the execution of one script(child process) from another script(parent process) using pipe mechanism such as open($fh, '-|', "./monitor.pl") here monitor.pl is the child process such that both of them executes asynchronously and at the same time as well as the output of the commands placed inside the while loop of the child process are written to the pipe handle continuously for that reason the buffer is getting filled up. So please suggest me the mechanism and appropriate location to flush the buffer such that the child process never hangs up as the buffer fills up.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1044530]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-20 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found