Ceding commandline control to child process

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

On Mon, Mar 16, 2009 at 10:12 PM, Juan Z. [email protected]
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).

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs