Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
starting a shell command without wait?
Roland Winkler
1/14/2009 1:32:00 PM
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
--
Posted via
http://www.ruby-...
.
1 Answer
Roland Winkler
1/14/2009 2:23:00 PM
0
I found my self the solution!
I use now IO.popen("some.exe") and it does the job.
Thanks,
Roland
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
starting a shell command without wait?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password