Forum: Ruby Help on nonblocking read & write with popen4

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Mohammed G. (Guest)
on 2008-10-31 17:59
Hi all,
Any hint on using popen4 for alternate reading and writing to a pipe?
Especially, how to avoid blocking on reading from stdout,stderr.
An example will be much appreciated.

Thanx in advance,
This topic is locked and can not be replied to.