-
-
Save OlegSmelov/ba32eb56f2d8fb27cb3c759b9dfe907f to your computer and use it in GitHub Desktop.
Groovy shell command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def command = [ | |
"sh", | |
"-c", | |
"shell command" | |
] | |
def proc = command.execute() | |
proc.waitFor() | |
println "Process exit code: ${proc.exitValue()}" | |
println "Std Err: ${proc.err.text}" | |
println "Std Out: ${proc.in.text}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment