Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sout = new StringBuffer(), serr = new StringBuffer()
- def proc = 'cmd.exe /c dir'.execute()
- proc.consumeProcessOutput(sout, serr)
- proc.waitForOrKill(1000)
- println "out> $sout err> $serr"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement