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

Re^2: Wrap around an interactive python script

by rastoboy (Monk)
on Jul 21, 2010 at 04:08 UTC ( #850552=note: print w/replies, xml ) Need Help??


in reply to Re: Wrap around an interactive python script
in thread Wrap around an interactive python script

I've recently started using IPC::Open3::open3 for InterProcess Communication type purposes and haven't looked back. Makes it easy to interact with another application by just reading and writing to filehandles, very slick and more intuitive (at least for me, anyway).

But I'm still quite the amateur and may be missing some subtleties (or outright facts).

  • Comment on Re^2: Wrap around an interactive python script

Replies are listed 'Best First'.
Re^3: Wrap around an interactive python script
by ikegami (Pope) on Jul 21, 2010 at 14:58 UTC
    While open3 does a lot (incl propagating exec errors to the parent), it's still a low level module. It's doesn't help you read from the child's STDOUT and its STDERR without combining them, a situation prone to deadlocks. IPC::Run3 and IPC::Run are higher-level solutions.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (1)
As of 2021-10-24 22:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?