fork windows

A

Alexander Fleck

Hi,
I want to start an app from a ruby script on windows 2K.
When the app is started the script is blocked by the new app until it's left.
I tried to use fork but that' s not supported under windows. I just want to start the app and then leave it alone. How can I do that?

Thanks,
Alexander Fleck.
 
S

Sean O'Halpin

Hi,
I want to start an app from a ruby script on windows 2K.
When the app is started the script is blocked by the new app until it's l= eft.
I tried to use fork but that' s not supported under windows. I just want =
to start the app and then leave it alone. How can I do that?

For a simple solution, you could use "start", e.g.

system "start notepad.exe"

Regards,

Sean
 
A

Alexander Fleck

Thanks,
but that has the same effect. My script is blocked until I close the app.
 
A

Alexander Fleck

Yes, that' s it.
I can close my Ruby script, it' s a FXRuby app and the .exe keeps alive.
That' s what I wanted.
Thanks,
Alex.
 
J

Joel VanderWerf

Alexander said:
Yes, that' s it.
I can close my Ruby script, it' s a FXRuby app and the .exe keeps alive.
That' s what I wanted.
Thanks,
Alex.

You can also do

Thread.new do
system "whatever"
end

and your main thread (and other ruby threads) will keep running while
"whatever" runs.
 

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

Members online

Forum statistics

Threads
474,196
Messages
2,571,036
Members
47,631
Latest member
kukuh

Latest Threads

Top