Created
March 25, 2019 11:42
-
-
Save olblak/f9aa77bb4ff792b40cb799982ad4886b to your computer and use it in GitHub Desktop.
Groovy exec 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
#!/usr/bin/groovy | |
def cmd = "ls /tmp".execute() | |
println cmd.in.text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment