Hi, Jerry:<div><br></div><div>Note those &#39;-&#39; signs in the quoted ones. �Erlang&#39;s demanding that an atom name be escaped in single quotes so that the hyphen doesn&#39;t get taken as a minus sign, thereby producing a gibberish expression.</div>
<div><br></div><div>If you&#39;re writing something to systematically parse things like this, you might find looking at an Erlang reference useful so you can get a sense for what types are involved in such expressions, and what the syntactic conventions and requirements are on their structures...</div>
<div><br></div><div>Best regards,</div><div>Jerry<br><br><div class="gmail_quote">On Wed, Nov 7, 2012 at 2:08 PM, Jerry Bao <span dir="ltr">&lt;<a href="mailto:hijerrybao@gmail.com" target="_blank">hijerrybao@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Why do some�&quot;rabbitmqctl cluster_status&quot; outputs have single quote around the nodes, others do not?</div>
<div><br></div><div>For example,�</div><div><div><i>[root@jbao-vm1 ~]# rabbitmqctl cluster_status</i></div>
<div><i>Cluster status of node &#39;rabbit@jbao-vm1&#39; ...</i></div><div><i>[{nodes,[{disc,[&#39;rabbit@jbao-vm2&#39;,&#39;rabbit@jbao-vm1&#39;]}]},</i></div><div><i>�{running_nodes,[&#39;rabbit@jbao-vm2&#39;,</i></div>

<div><i>� � � � � � � � �&#39;rabbit@jbao-vm1&#39;]}]</i></div><div><i>...done.</i></div></div><div><i><br></i></div><div>On another cluster, I have somthing like this:</div><div><pre>rabbit1$ <i>rabbitmqctl cluster_status</i>
Cluster status of node rabbit@rabbit1 ...
[{nodes,[{disc,[rabbit@rabbit1,rabbit@rabbit2]},{ram,[rabbit@rabbit3]}]},
 {running_nodes,[rabbit@rabbit2,rabbit@rabbit1]}]
...done.</pre></div><div>They are same version of RabbitMQ/Erlang/OTP, all on the same CentOS 5.7 64bit.</div><div><br></div>I am trying to write a script to parse it so I can monitor the status of the cluster.�I have been working with RabbitMQ for a while but am relatively new to Erlang. Does anybody know why? Is this a Erlang or OS locale issue?�<div>

<br></div><div>I know I can write my parser to handle both cases but just want to know what is causing that.<div><br></div><div>Thanks,</div><div><br></div><div>Jerry<br><div><br></div><div><br></div></div></div>
<br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>