Reputation: 26
I have a ruby script that runs many external executables (.exe). I run these executables in two different ways.
sytem(program)
IO.popen(program)
, in this case I need the PID since later on I monitor this process.My UI is designed with FX ruby. When I run the program through my cmd console (ruby MyScript.rb
) everything works fine and I don't see any pop-up.
Then, I generate an exe with the OCRA gem by using the following syntax:
ocra MyScript.rb --gem-all --windows
The exe is generated correctly; however, when I run any external program, through system or popen, there is a cmd window popping up during the time the exe is running.
Is there a way to hide these cmd windows?
Upvotes: 0
Views: 63