# Opening new command window from a Ruby application

**URL:** <https://www.ruby-forum.com/t/opening-new-command-window-from-a-ruby-application/184100>\
**Category:** Ruby\
**Created:** [February 25, 2010, 1:23am UTC](https://www.ruby-forum.com/t/opening-new-command-window-from-a-ruby-application/184100 "2010-02-25T01:23:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@alexd](https://www.ruby-forum.com/u/alexd)\
**Post date:** [February 25, 2010, 1:23am UTC](https://www.ruby-forum.com/t/opening-new-command-window-from-a-ruby-application/184100/1 "2010-02-25T01:23:56Z")

</div>

I have a .rbw application. I only want it to open a command  
window/terminal under certain circumstances, such as if there are error  
messages, or if it needs user input. Otherwise, I don’t want to display  
the window.

How can I get my ruby script to open up a new command window and then  
read from it or write to it?

Also, can I open multiple command windows and read/write to a specific  
command window?

–Alex
