Manuel Albarran

A random notes about Elixir

Executing commands

12 Feb 2017 » elixir, shell
System.cmd("ls", []) |> elem(0) |> String.split("\n")

{"", 3} = System.cmd("sh", ["-c", "exit 3"])