From: Chandan Bansal Date: 2011-04-07T21:09:58+09:00 Subject: Re: capture the output of a grandchild Brian Candler wrote in post #991223: > Here's a simple test you can do: > > ruby -e 'system("/path/to/prog")' >cap.out 2>cap.err > > Does the output from the grandchild appear in cap.out or cap.err? thanks dude it worked finally i called it from my ruby script like system ("ruby -e \'system(\"/path/to/prog\")\' >output.file 2>&1") -- Posted via http://www.ruby-forum.com/.