# Help on nonblocking read & write with popen4

**URL:** <https://www.ruby-forum.com/t/help-on-nonblocking-read-write-with-popen4/152238>\
**Category:** Ruby\
**Created:** [October 31, 2008, 4:59pm UTC](https://www.ruby-forum.com/t/help-on-nonblocking-read-write-with-popen4/152238 "2008-10-31T16:59:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![masgad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/45deac/32.png) [@masgad](https://www.ruby-forum.com/u/masgad)\
**Post date:** [October 31, 2008, 4:59pm UTC](https://www.ruby-forum.com/t/help-on-nonblocking-read-write-with-popen4/152238/1 "2008-10-31T16:59:45Z")

</div>

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,  
Masgad
