# Ways to capture output stream of the process executed with e

**URL:** <https://www.ruby-forum.com/t/ways-to-capture-output-stream-of-the-process-executed-with-e/83456>\
**Category:** Ruby\
**Created:** [January 26, 2007, 9:50am UTC](https://www.ruby-forum.com/t/ways-to-capture-output-stream-of-the-process-executed-with-e/83456 "2007-01-26T09:50:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Googy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/dfb087/32.png) [@Googy](https://www.ruby-forum.com/u/Googy)\
**Post date:** [January 26, 2007, 9:50am UTC](https://www.ruby-forum.com/t/ways-to-capture-output-stream-of-the-process-executed-with-e/83456/1 "2007-01-26T09:50:24Z")

</div>

Hi,

I need to capture output of the process executed with exec or other  
eqavalent calls.

Thanks.

---

<div class="post-metadata">

**Author:** ![Googy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/dfb087/32.png) [@Googy](https://www.ruby-forum.com/u/Googy)\
**Post date:** [January 26, 2007, 10:00am UTC](https://www.ruby-forum.com/t/ways-to-capture-output-stream-of-the-process-executed-with-e/83456/2 "2007-01-26T10:00:26Z")

</div>

On 26.01.2007 09:47, Googy wrote:

> I need to capture output of the process executed with exec or other  
> eqavalent calls.

Look for popen() and variants. Alternatively you can use backticks:  
s = `ls -lF`

Kind regards

robert
