From: Brian Candler Date: 2011-04-07T21:24:22+09:00 Subject: Re: capture the output of a grandchild Chandan Bansal wrote in post #991446: > thanks dude it worked finally > > i called it from my ruby script like > > system ("ruby -e \'system(\"/path/to/prog\")\' >output.file 2>&1") In that case, all you should need is: system("/path/to/prog >output.file 2>&1") And if you don't want a temporary file, then you can use IO.popen instead. Regards, Brian. -- Posted via http://www.ruby-forum.com/.