Return to Snippet

Revision: 13298
at April 17, 2009 18:50 by narkisr


Initial Code
proc = "ls -al".execute()
println(proc.in.text)
println(proc.returnCode())

Initial URL

                                

Initial Description
An easy way to launch an external process (http://docs.codehaus.org/display/GroovyJSR/Run+Sub-Process+Safely).

Initial Title
Running an external process from a GString

Initial Tags
groovy

Initial Language
Groovy