Prev: Ruby on Rails application could not be started
Next: results are different by running script via irb and ruby
From: Alex DeCaria on 24 Feb 2010 09:47 How can I launch a command prompt window from within a .rbw application? I'd like, under certain circumstances, to allow output and input via a command prompt window/terminal window, but I don't want it launched at starupt, nor open all the time. --Alex -- Posted via http://www.ruby-forum.com/.
From: Chris Hulan on 25 Feb 2010 08:46 HAve a look at http://whynotwiki.com/Ruby_/_Process_management which points to http://www.ruby-doc.org/ruby-1.9/classes/Open3.html Looks like the writer of the former was working on linux so there may be some gotchas on windows... Cheers
From: Roger Pack on 25 Feb 2010 10:15
> How can I launch a command prompt window from within a .rbw application? > I'd like, under certain circumstances, to allow output and input via a > command prompt window/terminal window, but I don't want it launched at > starupt, nor open all the time. Looks like using system can do it rubyw -e 'system("cmd")' -r -- Posted via http://www.ruby-forum.com/. |