Skip to content

Instantly share code, notes, and snippets.

@xconnecting
Created January 23, 2014 05:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xconnecting/8573340 to your computer and use it in GitHub Desktop.
Save xconnecting/8573340 to your computer and use it in GitHub Desktop.
[Groovy] Exec command from Groovy script
def proc = "pandoc -v".execute()
proc.waitFor()
println proc.in.text
// if you just want stdout of the command, you can write as:
println "pandoc -v".execute().text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment