Forum: Ruby starting a shell command without wait?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Roland W. (Guest)
on 2009-01-14 15:32
Hi,

I have a simple problem. I like to start simply executable on windows XP
with a shell command as last step in the small script. Using
system("some.exe"), `some.exe`, exec("some.exe") or %x["some.exe"] keeps
always the shell open. After closing the exe the shell also vanish.

How can i simply start a executable from a ruby script without having
the shell always open?

Thanks,
Roland
Roland W. (Guest)
on 2009-01-14 16:24
I found my self the solution!

I use now IO.popen("some.exe") and it does the job.

Thanks,
Roland
This topic is locked and can not be replied to.