From: Brian Candler Date: 2011-04-06T17:43:58+09:00 Subject: Re: capture the output of a grandchild Chandan Bansal wrote in post #991188: > I tried using named pipes and `` to capture the output but its not > working Show your code. Show what B and C are doing, or write replacements in ruby to demonstrate. If you use IO.popen(...) then you will capture stdout of the child; if that child forks a grandchild, which inherits the same stdout, then you will capture that as well. Maybe the output which you're failing to capture is on stderr not stdout. If so, look at open3.rb in the standard library; or do IO.popen("/path/to/prog 2>&1") { |io| ... } -- Posted via http://www.ruby-forum.com/.