Task

Run either the   ls   system command   (dir   on Windows),   or the   pause   system command.




Related task
  Get system command output


[indent=4]
/*
  Execute system command, in Genie
 
  valac executeSystemCommand.gs
  ./executeSystemCommand
*/
 
init
    try
        // Non Blocking
        Process.spawn_command_line_async("ls")
    except e : SpawnError
        stderr.printf("%s\n", e.message)