Task
Execute a system command and get its output into the program. The output may be stored in any kind of collection (array, list, etc.).




Related task
  Execute a system command


class Test {
  function : Main(args : String[]) ~ Nil {
    output := System.Runtime->CommandOutput("ls -l"); 
    each(i : output) {
      output[i]->PrintLine();
    };
  }
}
 