Tag Archives: Common Test

Rebar + Common Test + Jenkins

Testing is always important. This fact cannot be questioned. For Erlang, we have two excellent frameworks: EUnit and Common Test. I’m always using the latter, just because I’m used to it. I don’t know if it’s superior or inferior to … Continue reading

Posted in Development, Erlang | Tagged , , , , | Leave a comment

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