从GString运行外部进程

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了从GString运行外部进程相关的知识,希望对你有一定的参考价值。

An easy way to launch an external process (http://docs.codehaus.org/display/GroovyJSR/Run+Sub-Process+Safely).
  1. proc = "ls -al".execute()
  2. println(proc.in.text)
  3. println(proc.returnCode())

以上是关于从GString运行外部进程的主要内容,如果未能解决你的问题,请参考以下文章