<div dir="ltr">I want to receive events from the erlang module and for that execute the following commands<br><div><br></div><div><div>[root@fs1 xml]# erl -sname test -setcookie ClueCon</div><div>Erlang/OTP 17 [erts-6.2.1] [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]</div><div><br></div><div>Eshell V6.2.1  (abort with ^G)</div><div>(test@fs1)1&gt;  {foo, fs1@fs1} ! {event, &#39;CHANNEL_CREATE&#39;}, receive Y -&gt; Y after 1000 -&gt; timeout end. </div><div>ok</div><div>(test@fs1)2&gt; </div></div><div><br></div><div><br></div><div>And second way</div><div><div>[root@fs1 xml]# erl -sname test -setcookie ClueCon</div><div>Erlang/OTP 17 [erts-6.2.1] [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [kernel-poll:false]</div><div><br></div><div>Eshell V6.2.1  (abort with ^G)</div><div>(test@fs1)1&gt;  {foo, fs1@fs1} ! {event, &#39;ALL&#39;}.</div><div>{event,&#39;ALL&#39;}</div><div>(test@fs1)2&gt; receive Y -&gt; Y after 1000 -&gt; timeout end.</div><div>ok</div><div>(test@fs1)3&gt;</div></div><div><br></div><div><div>And I can not get events.</div><div>What am I doing wrong?</div></div></div>