Annoying CMD Windows on Win32

T

Tim Morgan

I have a web application on win32 that runs as a service. When system
calls are made (with backticks or IO.popen), cmd windows appear and
disappear very annoyingly. Any ideas on how to stop this?
 
D

Dave Burt

Tim said:
I have a web application on win32 that runs as a service. When system
calls are made (with backticks or IO.popen), cmd windows appear and
disappear very annoyingly. Any ideas on how to stop this?

Are you using rubyw.exe?

Cheers,
Dave
 
T

Tim Morgan

Actually, I'm using the Mongrel (http://mongrel.rubyforge.org)
rails-app-as-a-service script.

A quick read through the relevant Mongrel code turns up these lines of
code:

# ruby.exe instead of rubyw.exe due a exception raised when stoping the
service!
binary_path = ""
binary_path << '"' << Config::CONFIG['bindir'] << '/ruby.exe' << '" '

Are you saying that rubyw.exe would hide these cmd windows from view?
 
D

Dave Burt

Tim said:
Actually, I'm using the Mongrel (http://mongrel.rubyforge.org)
rails-app-as-a-service script.

A quick read through the relevant Mongrel code turns up these lines of
code:

# ruby.exe instead of rubyw.exe due a exception raised when stoping the
service!
binary_path = ""
binary_path << '"' << Config::CONFIG['bindir'] << '/ruby.exe' << '" '

Are you saying that rubyw.exe would hide these cmd windows from view?

Yes, I'm pretty sure it would. You can use the Services MMC to do stop
the service if you need to, I think.

Cheers,
Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,206
Messages
2,571,068
Members
47,674
Latest member
scazeho

Latest Threads

Top