[erlang-questions] Path to erl

Dmitry Klionsky dm.klionsky@REDACTED
Wed Mar 25 10:08:32 CET 2015


Simple, but procfs specific:

 > file:read_link("/proc/" ++ os:getpid() ++ "/exe").
{ok,"/opt/r16b03-1/erts-5.10.4/bin/beam.smp"}


On 03/25/2015 07:05 AM, József Bérces wrote:
>
> I think I have seen this recently somewhere I just do not find it.
>
> From the Erlang VM, is it possible to get the full path of the Erlang 
> executable that started the VM?
>
> Thanks
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150325/989bf384/attachment.htm>


More information about the erlang-questions mailing list