[erlang-questions] os:cmd/1 with return code
Sat Oct 18 16:48:19 CEST 2008
2008/10/18 Tim Fletcher <twoggle@REDACTED>:
>> I've been trying to implement and os:cmd/1 variant that also returns
>> the status code of the executed command. But it proved to be
>> exceedingly difficult.
> There's an example of that in eunit:
That function does not run the command in a shell. So, for example,
eunit_lib:command("exit 123") will not work.
More information about the erlang-questions