Forking an .rb script (or multi-threading)

Discussion in 'Ruby' started by Joerg Diekmann, Feb 16, 2006.

  1. 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

    --
    Posted via http://www.ruby-forum.com/.
    Joerg Diekmann, Feb 16, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    38
    Views:
    1,251
    Dennis Lee Bieber
    Feb 15, 2005
  2. Sophia Cao

    threading/forking and IPC

    Sophia Cao, Oct 14, 2005, in forum: Python
    Replies:
    2
    Views:
    321
    Qun Cao
    Oct 15, 2005
  3. rh0dium

    Fork You.. Forking and threading..

    rh0dium, Jul 5, 2006, in forum: Python
    Replies:
    4
    Views:
    3,990
    rh0dium
    Jul 6, 2006
  4. akineko
    Replies:
    3
    Views:
    2,587
    Jesse Noller
    Jan 29, 2009
  5. Clyde Ingram
    Replies:
    1
    Views:
    431
    Randal L. Schwartz
    Dec 12, 2003
Loading...

Share This Page