[erlang-questions] Path to erl

Sergej Jurecko sergej.jurecko@REDACTED
Wed Mar 25 10:14:48 CET 2015


A platform independent way is:
os:getenv(“BINDIR”)++”/erl”


Sergej

On 25 Mar 2015, at 10:08, Dmitry Klionsky <dm.klionsky@REDACTED> wrote:

> 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
> 
> _______________________________________________
> 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/b897409c/attachment.htm>


More information about the erlang-questions mailing list