title: How to run non blocking command from Ruby?
body: <ul>
  <li>User goes to page A to create a new multiplayer game</li>
  <li>The script in page A generates a unique ID for the game, and creates a worker for it. Something like: rails runner GameWorker.new(:game_id => game_id).start_game</li>
  <li>The script in page A redirects the user to page B, where he can see the newly created game, and others can join.</li>
  </ul>
  
  <p>The worker should be alive until the end of the game.</p>
  
  <p>What would be the proper way to run the command that starts the worker? It must be non blocking and ideally redirect output to the log file, in case something goes wrong.</p>
  
  <p>I'm using Rails 3, if it matters.</p>
  
  <p><strong>UPDATE</strong>
  I'm gonna rephrase my question: How to run a linux command from within ruby and don't wait for the command to end? I mean the equivalent for &amp;>>. In php for instance, &amp;>> works fine and I don't need to use any special php functiont, but in ruby it seems to get overriden by and the script waits for the command to end and grab the output.</p>