Run a shell command in the backround
Appending &
to a shell command will run it in the background:
#foo.rb
sleep 10
puts 'fin!'
$ ruby foo.rb &
[1] 14485
# can do whatever as we aren't blocked by Ruby sleeping
$ fin !
[1] + done ruby foo.rb
Tweet