# Ceding commandline control to child process

**URL:** <https://www.ruby-forum.com/t/ceding-commandline-control-to-child-process/163047>\
**Category:** Ruby\
**Created:** [March 16, 2009, 11:16pm UTC](https://www.ruby-forum.com/t/ceding-commandline-control-to-child-process/163047 "2009-03-16T23:16:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![juan\_zanos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4da419/32.png) [@juan\_zanos](https://www.ruby-forum.com/u/juan_zanos)\
**Post date:** [March 16, 2009, 11:16pm UTC](https://www.ruby-forum.com/t/ceding-commandline-control-to-child-process/163047/1 "2009-03-16T23:16:13Z")

</div>

Say I want to launch a child process and allow the user to interact  
with it until it returns. Is there an easy way to do this? It  
seems to work just using the back ticks except that the child  
process’ output is never displayed.

Juan

---

<div class="post-metadata">

**Author:** ![juan\_zanos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4da419/32.png) [@juan\_zanos](https://www.ruby-forum.com/u/juan_zanos)\
**Post date:** [March 16, 2009, 11:53pm UTC](https://www.ruby-forum.com/t/ceding-commandline-control-to-child-process/163047/2 "2009-03-16T23:53:46Z")

</div>

On Mon, Mar 16, 2009 at 10:12 PM, Juan Z. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Say I want to launch a child process and allow the user to interact with it  
> until it returns. Is there an easy way to do this? It seems to work just  
> using the back ticks except that the child process’ output is never  
> displayed.
> 
> Juan

Try system(“command”) instead of `command` (I’m presuming you don’t  
need to capture stdout or stderr).

---

<div class="post-metadata">

**Author:** ![juan\_zanos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4da419/32.png) [@juan\_zanos](https://www.ruby-forum.com/u/juan_zanos)\
**Post date:** [March 17, 2009, 12:21am UTC](https://www.ruby-forum.com/t/ceding-commandline-control-to-child-process/163047/3 "2009-03-17T00:21:53Z")

</div>

On 16 mars 09, at 18:50, Sean O’Halpin wrote:

> Try system(“command”) instead of `command` (I’m presuming you don’t  
> need to capture stdout or stderr).

Thanks, that works perfectly.  
Juan
