[erlang-questions] Erlang module for "controlling" (linux/unix) commands?

Boris Mühmer <>
Wed Sep 8 16:24:11 CEST 2010


2010/9/8 Zoltán Bán <>:
> os:cmd("ls /nodir >/dev/null 2>&1; echo $?").

I already thought about this... but sometimes
I need the output as well and I don't want to
start parsing the result.

I would have prefered something like

   x:cmd(Command) -> {ReturnCode, Output}


  - boris


More information about the erlang-questions mailing list