Forking an .rb script (or multi-threading)

J

Joerg Diekmann

Hi,

I am using rubyscript2exe on my rails app. tar2ubyscript uses an init.rb
file to launch WEBrick.

I want to modify this init.rb file to launch the browser (to
127.0.0.1:300) as soon as WEBrick has started.

Is there a way to monitor the progress of the output/state of the
script/server.rb command, to launch my browser once it has successfuly
started the server?

Don't know whether this would be possible, or which libraries to look at
... Any ideas would be a huge help.

Thanks
Joerg
 

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

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,664
Latest member
RoseannBow

Latest Threads

Top