Execute external programs

This example executes an external program as an process in groovy.

def process = ["echo","Hello World"].execute()
process.waitFor()
println process.exitValue()
println process.in.text
println process.err.text

This will output
0
Hello World