<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">A platform independent way is:<div>os:getenv(“BINDIR”)++”/erl”</div><div><br></div><div><br></div><div>Sergej</div><div><br><div><div>On 25 Mar 2015, at 10:08, Dmitry Klionsky <<a href="mailto:dm.klionsky@gmail.com">dm.klionsky@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div bgcolor="#FFFFFF" text="#000000" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Simple, but procfs specific:<br><br>><span class="Apple-converted-space"> </span><a class="moz-txt-link-freetext" href="file://read_link(" style="color: purple; text-decoration: underline;">file:read_link(</a>"/proc/" ++ os:getpid() ++ "/exe"). <span class="Apple-converted-space"> </span><br>{ok,"/opt/r16b03-1/erts-5.10.4/bin/beam.smp"}<br><br><br><div class="moz-cite-prefix">On 03/25/2015 07:05 AM, József Bérces wrote:<br></div><blockquote cite="mid:7460EBDDCF52084A849D0F271CE059B809AEC041@ESESSMB101.ericsson.se" type="cite"><div class="WordSection1" style="page: WordSection1;"><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="HU">I think I have seen this recently somewhere I just do not find it.<o:p></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="HU"> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><span lang="HU">F</span>rom the Erlang VM, is it possible to get the full path of the Erlang executable that started the VM?<o:p></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;"><o:p> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">Thanks<o:p></o:p></div></div><br><fieldset class="mimeAttachmentHeader"></fieldset><br><pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org" style="color: purple; text-decoration: underline;">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions" style="color: purple; text-decoration: underline;">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre></blockquote><br>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org" style="color: purple; text-decoration: underline;">erlang-questions@erlang.org</a><br><a href="http://erlang.org/mailman/listinfo/erlang-questions" style="color: purple; text-decoration: underline;">http://erlang.org/mailman/listinfo/erlang-questions</a><br></div></blockquote></div><br></div></body></html>