<div>Thanks a lot for the answer. I will go pick up an Erlang book, right now....</div><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Date: Wed, 7 Nov 2012 14:23:24 -0800<br>
From: Jerry Kuch &lt;<a href="mailto:jerryk@rbcon.com">jerryk@rbcon.com</a>&gt;<br>
Subject: Re: [rabbitmq-discuss] &quot;rabbitmqctl cluster_status&quot; output -<br>
� � � � quoted or not quoted?<br>
To: Discussions about RabbitMQ &lt;<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a>&gt;<br>
Message-ID:<br>
� � � � &lt;CAE0Sz=<a href="mailto:xebJqYuVCRNR0qnxPzz6t6NSdduOA5SRFCbAi8i-1T4g@mail.gmail.com">xebJqYuVCRNR0qnxPzz6t6NSdduOA5SRFCbAi8i-1T4g@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi, Jerry:<br>
<br>
Note those &#39;-&#39; signs in the quoted ones. �Erlang&#39;s demanding that an atom<br>
name be escaped in single quotes so that the hyphen doesn&#39;t get taken as a<br>
minus sign, thereby producing a gibberish expression.<br>
<br>
If you&#39;re writing something to systematically parse things like this, you<br>
might find looking at an Erlang reference useful so you can get a sense for<br>
what types are involved in such expressions, and what the syntactic<br>
conventions and requirements are on their structures...<br>
<br>
Best regards,<br>
Jerry<br>
<br>
On Wed, Nov 7, 2012 at 2:08 PM, Jerry Bao &lt;<a href="mailto:hijerrybao@gmail.com">hijerrybao@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Why do some &quot;rabbitmqctl cluster_status&quot; outputs have single quote around<br>
&gt; the nodes, others do not?<br>
&gt;<br>
&gt; For example,<br>
&gt; *[root@jbao-vm1 ~]# rabbitmqctl cluster_status*<br>
&gt; *Cluster status of node &#39;rabbit@jbao-vm1&#39; ...*<br>
&gt; *[{nodes,[{disc,[&#39;rabbit@jbao-vm2&#39;,&#39;rabbit@jbao-vm1&#39;]}]},*<br>
&gt; * {running_nodes,[&#39;rabbit@jbao-vm2&#39;,*<br>
&gt; * � � � � � � � � &#39;rabbit@jbao-vm1&#39;]}]*<br>
&gt; *...done.*<br>
&gt; *<br>
&gt; *<br>
&gt; On another cluster, I have somthing like this:<br>
&gt;<br>
&gt; rabbit1$ *rabbitmqctl cluster_status*<br>
&gt; Cluster status of node rabbit@rabbit1 ...<br>
&gt; [{nodes,[{disc,[rabbit@rabbit1,rabbit@rabbit2]},{ram,[rabbit@rabbit3]}]},<br>
&gt; �{running_nodes,[rabbit@rabbit2,rabbit@rabbit1]}]<br>
&gt; ...done.<br>
&gt;<br>
&gt; They are same version of RabbitMQ/Erlang/OTP, all on the same CentOS 5.7<br>
&gt; 64bit.<br>
&gt;<br>
&gt; I am trying to write a script to parse it so I can monitor the status of<br>
&gt; the cluster. I have been working with RabbitMQ for a while but am<br>
&gt; relatively new to Erlang. Does anybody know why? Is this a Erlang or OS<br>
&gt; locale issue?<br>
&gt;<br>
&gt; I know I can write my parser to handle both cases but just want to know<br>
&gt; what is causing that.<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Jerry<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rabbitmq-discuss mailing list<br>
&gt; <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
&gt; <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>
&gt;<br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20121107/2e99844f/attachment-0001.htm" target="_blank">http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20121107/2e99844f/attachment-0001.htm</a>&gt;<br>

<br></blockquote></div></div>