# Forking an .rb script (or multi-threading)

**URL:** <https://www.ruby-forum.com/t/forking-an-rb-script-or-multi-threading/53903>\
**Category:** Ruby\
**Created:** [February 16, 2006, 2:14pm UTC](https://www.ruby-forum.com/t/forking-an-rb-script-or-multi-threading/53903 "2006-02-16T14:14:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joergd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/51bf81/32.png) [@joergd](https://www.ruby-forum.com/u/joergd)\
**Post date:** [February 16, 2006, 2:14pm UTC](https://www.ruby-forum.com/t/forking-an-rb-script-or-multi-threading/53903/1 "2006-02-16T14:14:59Z")

</div>

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
