[erlang-questions] os:cmd/1 with exit status aka erlexec or eunit_lib:command/1 or ?

Gleb Peregud gleber.p@REDACTED
Wed May 16 10:43:57 CEST 2012

Hello list.

Is there any rebar-compatible easy to use lib for executing shell
commands with ability to get it's stdout (stderr would be nice to have
separately if possible) and it's exit status?

erlexec seems to be old and non-maintained, but does all this.
eunit_lib:command/1 does some of this, but it's part of eunit which is
rarely a part of production Erlang setup.

Any pointers?


More information about the erlang-questions mailing list