[erlang-questions] GUID

Roberto Saccon rsaccon@REDACTED
Thu Oct 25 19:25:53 CEST 2007


Something like this gives me the MAC address on OS X;

os:cmd("ipconfig getpacket en0 | grep chaddr | awk '{print $3}'").


On 10/25/07, Taavi Talvik <taavi@REDACTED> wrote:
>
> On Oct 25, 2007, at 6:13 PM, Joe Armstrong wrote:
>
> > Does anybody have some Erlang code to generate a GUID?
> > (or to read the MAC address of the local machine interfaces?)
>
> Probably machine/os specific, on freebsd you can do
>
> 1> os:cmd("sysctl kern.hostuuid").
> "kern.hostuuid: B5D5342C-9142-3AA0-81C8-7391B34506DA\n"
>
>
> best regards,
> taavi
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>


-- 
Roberto Saccon
http://rsaccon.com



More information about the erlang-questions mailing list