<div><div>On Fri, Sep 7, 2012 at 2:03 PM, Tim Watson <span dir="ltr"><<a href="mailto:tim@rabbitmq.com" target="_blank">tim@rabbitmq.com</a>></span> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="im">
On 09/07/2012 08:23 AM, Brett Cameron wrote:
<blockquote type="cite">Sajith,<br>
<br>
Could you just use something like <a href="http://manpages.ubuntu.com/manpages/natty/man1/amqp-consume.1.html" target="_blank">http://manpages.ubuntu.com/manpages/natty/man1/amqp-consume.1.html</a>?
<div style="word-wrap:break-word">
<div>
<div><br>
</div>
</div>
</div>
</blockquote>
<br></div>
That sets up a consumer rather than doing a one-off basic.get -
however
<a href="http://manpages.ubuntu.com/manpages/natty/man1/amqp-get.1.html" target="_blank">http://manpages.ubuntu.com/manpages/natty/man1/amqp-get.1.html</a>
appears to do exactly what the OP wants. Both of these programs
appear to come from the ./tools subdirectory of rabbitmq-c anyway. <br>
</div>
<br></blockquote><div><br></div><div>I installed amqp-tools in Ubuntu 12, and issued the following command, <div><br></div><div><div>$ amqp-get --server=10.10.1.2 --vhost=test --username=guest --password=guest --queue=myqueue, </div>
<div><br></div><div>Then i get following exception ,, </div><div><br></div><div> "basic.get: connection closed unexpectedly"</div></div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
_______________________________________________<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><br clear="all"><div><br></div>-- <br>Best Regards<div>Sajith</div><br>
</div>