Tag Archives: return code

Originally posted on Piotr Gabryanczyk's Blog: Problem I would like to be able to run ie. ls -al / from erlang and process the results using erlang. ie. Files = cmd:run(“ls -al /”). Solution -module(cmd). -export([run/1, run/2, test/0]). run(Cmd)…