Skip to content

Instantly share code, notes, and snippets.

@mgdelacroix
Created March 1, 2013 09:32
Show Gist options
  • Save mgdelacroix/5063524 to your computer and use it in GitHub Desktop.
Save mgdelacroix/5063524 to your computer and use it in GitHub Desktop.
OneLiner to execute and print the output of a system command using groovy
'ping -c 5 google.es'.execute().waitForProcessOutput(System.out, System.err)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment