Rubyw.exe and the "system()" call

I'm trying to run ruby without the command terminal popping up, so I run
it using rubyw.exe. However, in my program I need to make many calls
using the "system()" command, and every time I do, the command terminal
pops up for a fraction of a second and then goes away. This is very
distracting and I was wondering if anyone knew a way around this.

When I run this using ruby.exe I don't get this problem; however because
it's ruby.exe I have the command terminal showing the whole time (which
I don't want)

···

--
Posted via http://www.ruby-forum.com/.

I hope this will help
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/87045
although i didn't test it.

···

--
Posted via http://www.ruby-forum.com/.

Chase Wilson wrote in post #996358:

I'm trying to run ruby without the command terminal popping up, so I run
it using rubyw.exe. However, in my program I need to make many calls
using the "system()" command, and every time I do, the command terminal
pops up for a fraction of a second and then goes away. This is very
distracting and I was wondering if anyone knew a way around this.

When I run this using ruby.exe I don't get this problem; however because
it's ruby.exe I have the command terminal showing the whole time (which
I don't want)

IIRC, Process.spawn [1] doesn't cause the cmd window to show when using
rubyw.exe.

1: module Process - RDoc Documentation

···

--
Posted via http://www.ruby-forum.com/\.

When I run this using ruby.exe I don't get this problem; however because
it's ruby.exe I have the command terminal showing the whole time (which
I don't want)

http://en.wikibooks.org/wiki/Ruby_Programming/Running_Multiple_Processes#Windows:_how_to_run_ruby_without_opening_up_a_command_window

Might help.
Cheers!
-r

···

--
Posted via http://www.ruby-forum.com/\.