Snippets Piping Arguments Through Multiple Functions in Ruby Running processes in background and redirecting to file