Help on nonblocking read & write with popen4

Discussion in 'Ruby' started by Mohammed Gad, Oct 31, 2008.

  1. Mohammed Gad

    Mohammed Gad Guest

    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
    --
    Posted via http://www.ruby-forum.com/.
    Mohammed Gad, Oct 31, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Roman Yakovenko
    Replies:
    0
    Views:
    1,613
    Roman Yakovenko
    Sep 7, 2004
  2. Jeff Epler
    Replies:
    0
    Views:
    402
    Jeff Epler
    Sep 8, 2004
  3. Peter Ammon

    nonblocking read()

    Peter Ammon, Nov 16, 2004, in forum: Python
    Replies:
    3
    Views:
    553
    Donn Cave
    Nov 17, 2004
  4. Replies:
    1
    Views:
    264
    Paul Boddie
    Feb 6, 2008
  5. Bernhard Kuemel

    nonblocking write(2) 512K to /dev/ttyS0

    Bernhard Kuemel, May 30, 2010, in forum: C Programming
    Replies:
    2
    Views:
    596
    Bernhard Kuemel
    May 30, 2010
Loading...

Share This Page