[erlang-questions] GUID

Yariv Sadan yarivsadan@REDACTED
Fri Oct 26 09:12:45 CEST 2007


If you're going down the os:cmd() path, why not call 'os:cmd("uuidgen")'?

Yariv

On 10/25/07, Roberto Saccon <rsaccon@REDACTED> wrote:
> 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
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list