Skip to content

Instantly share code, notes, and snippets.

@miguelSantirso
Created April 15, 2014 10:28
Show Gist options
  • Save miguelSantirso/10721083 to your computer and use it in GitHub Desktop.
Save miguelSantirso/10721083 to your computer and use it in GitHub Desktop.
Run command line comands in ruby
%x(echo hi) # Return the stdout, redirect stderr to the program's
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment