Please explain the magic in os.erl
Fri Sep 10 16:37:06 CEST 2004
Thanks, that makes perfect sense, there was a comment in there that
makes sense in this light, I guess I expected more magic and hence
didn't get it.
On 2004-09-10, at 15.22, Raimo Niskanen wrote:
> (David Wallin) writes:
> I guess it is just to easier identify hanging or slow shell commands
> in a ps -ef listing. It just sets the first argument for the shell
> to "unix:cmd".
> 1> os:cmd("echo $1").
>> Hi all,
>> I had a look at os.erl and found this (line 173):
>> -define(SHELL, "sh -s unix:cmd 2>&1").
>> Could someone explain the 'unix:cmd' part ?
> / Raimo Niskanen, Erlang/OTP, Ericsson AB
More information about the erlang-questions