Skip to content

Instantly share code, notes, and snippets.

@jeffmaury
Created July 10, 2019 13:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffmaury/30e56f6e8c76aba06a8487da0bd83b44 to your computer and use it in GitHub Desktop.
Save jeffmaury/30e56f6e8c76aba06a8487da0bd83b44 to your computer and use it in GitHub Desktop.
def bout = new ByteArrayOutputStream()
def out = new PrintStream(bout)
"ls -l /qa/tools/opt/openjdk11_last".execute().waitForProcessOutput( out, System.err )
println(out)
println(bout)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment