Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Complete solution for system commands?

by Moron (Curate)
on Jul 03, 2006 at 09:36 UTC ( #558963=note: print w/replies, xml ) Need Help??

in reply to Complete solution for system commands?

Even though IPC::Run3 is the most official way, I usually prefer to write a wrapper class around IPC::Open3, so as to provide full control over the pipes and create sufficient flexibility for having one central solution. This depends on the requirements you want to support, but, for example, you might want to fetch just some output into memory and conditionally abort. You might want to process and submit the output from one spawned process before conditionally submitting to a second one and so on. It takes some careful design to be able to cover all the possibilities that may be necessary for a site.


Free your mind

  • Comment on Re: Complete solution for system commands?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2023-10-03 11:14 GMT
Find Nodes?
    Voting Booth?

    No recent polls found