Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: pipe issue (linux)

by haukex (Archbishop)
on May 05, 2016 at 20:23 UTC ( [id://1162303]=note: print w/replies, xml ) Need Help??


in reply to Re: pipe issue (linux)
in thread pipe issue (linux)

Hi james28909,

From exec:

The exec function executes a system command and never returns

You're probably thinking of backticks aka qx, although that will also wait for the completion of the command before returning, so I don't think it'll help here. (BTW, a good alternative to qx is Capture::Tiny.)

What might work is opening a pipe (Using open() for IPC) or using a module like IPC::Run (I haven't used the latter myself yet but it seems to be a good module).

However, using those in the OP's line_process.pl won't fix the problem if dhcp_line_dispacher.pl is still buffering its output ;-)

Regards,
-- Hauke D

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-19 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found