Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Pipe, fork, exec and red-hot pokers.

by jeffenstein (Hermit)
on Apr 08, 2002 at 06:08 UTC ( [id://157370]=note: print w/replies, xml ) Need Help??


in reply to Pipe, fork, exec and red-hot pokers.

My guess is that you want to look at either IPC::Open3 or Expect.

With Expect, the new program will be on a tty, so it will be line buffered, however your stdout and stderr will be mixed together.

With IPC::Open3, the stdout and stderr will be seperated, but stdout won't be line buffered.

However, as it says in the IPC::Open3 docs, you can use IO::select to do non-blocking I/O on the resulting filehandles.

  • Comment on Re: Pipe, fork, exec and red-hot pokers.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-20 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found