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


sx = xtra("Shell").new()
put sx.shell_cmd("cd C:\dev\lsw\lib & dir")
 
-- "
<snip>
31.08.2016  21:25    <DIR>          .
31.08.2016  21:25    <DIR>          ..
20.08.2016  04:58    <DIR>          aes
23.06.2016  18:23    <DIR>          audio
21.07.2016  19:19    <DIR>          avmedia
23.06.2016  18:22    <DIR>          base64
23.06.2016  18:21    <DIR>          base9
<snip>"