[erlang-questions] Disable Distribution

Tony Rogvall tony@REDACTED
Fri Apr 15 11:25:35 CEST 2016


You can use inet:i(), if you trust the biased view of the emulator.
This will work on all platforms, even windows.

/Tony


> On 15 apr 2016, at 11:02, Ahmed Omar <spawn.think@REDACTED> wrote:
> 
> On Mac OS X netstat doesn't support the same options.
> 
> Instead you could use
> 
> lsof -n -iTCP | grep LISTEN | grep beam
> 
> Best Regards,
> - Ahmed Omar
> http://about.me/spawn.think/ <http://about.me/spawn.think/>
> On Fri, Apr 15, 2016 at 8:27 AM, Richard A. O'Keefe <ok@REDACTED <mailto:ok@REDACTED>> wrote:
> 
> 
> On 15/04/16 5:03 am, Magnus Henoch wrote:
> Yes, leaving out the -sname/-name option is enough. You can verify this by looking for open ports for "beam" processes with netstat:
> 
> $ netstat -ltpn | grep beam
> 
> With -sname, it shows one open port:
> 
> tcp 0      0 0.0.0.0:36551 <http://0.0.0.0:36551/> <http://0.0.0.0:36551 <http://0.0.0.0:36551/>> 0.0.0.0:*               LISTEN      29262/beam.smp
> 
> For what it's worth, MacOS X 10.9 doesn't accept those command line options.
> % netstat -a
> shows these
> tcp4       0      0  localhost.epmd         localhost.61991 ESTABLISHED
> tcp4       0      0  localhost.61991        localhost.epmd ESTABLISHED
> tcp4       0      0  *.61990                *.* LISTEN
> tcp4       0      0  *.epmd                 *.* LISTEN
> when running with -sname; no lines contain 'beam'.
> 
> I would like to know what the right command line options are for Mac OS X,
> if this is wrong.
> 
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED <mailto:erlang-questions@REDACTED>
> http://erlang.org/mailman/listinfo/erlang-questions <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/20160415/cfb9c72b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160415/cfb9c72b/attachment.bin>


More information about the erlang-questions mailing list