Running an external process from a GString

/ Published in: Groovy
Save to your folder(s)

An easy way to launch an external process (

Copy this code and paste it in your HTML
  1. proc = "ls -al".execute()
  2. println(
  3. println(proc.returnCode())

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.