Skip to content

uname -o not supported on MacOS X #1

@norton

Description

@norton

Maybe there is another way to get similar info using Erlang itself?

ARCH=$(shell erl -noshell -eval 'io:format(erlang:system_info(system_architecture)), halt().')

$ uname -a
Darwin hostname 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386

$ make run_test
make: Entering directory /Users/norton/.erlang.d/lib/onviso' make[1]: Entering directory/Users/norton/.erlang.d/lib/onviso/apps'
uname: illegal option -- o
usage: uname [-amnprsv]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions