Skip to content

Instantly share code, notes, and snippets.

@greggroth
Created November 29, 2011 18:10
Show Gist options
  • Save greggroth/1405766 to your computer and use it in GitHub Desktop.
Save greggroth/1405766 to your computer and use it in GitHub Desktop.
bad way
include Process
pid = spawn("rails r my_file_1.rb")
waitpid(pid, 0)
pid = spawn("rails r my_file_2.rb")
waitpid(pid, 0)
pid = spawn("rails r my_file_3.rb")
waitpid(pid, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment