Monthly Archives: July 2013

How to run a system command in Erlang?

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)…

Posted in Development, Erlang | Tagged , , , | 1 Comment