[rabbitmq-discuss] Parsability of rabbitctrl output
emile at rabbitmq.com
Mon Jun 7 17:53:34 BST 2010
The output values are separated by a tab character, so you should
instruct your parser to expect optional values separated by a single tab
character. The problem you describe only occurs if your pattern consumes
an arbitrary amount of whitespace.
You may also find the -q flag useful to suppress the first and last line
of output of the output of rabbitmqctl is being parsed.
(Nice email address btw)
On 07/06/10 17:14, Garrett Smith wrote:
> There are some values output by rabbitctrl that are blank/empty, but
> these are simply omitted from the output. This makes parsing the
> output difficult. E.g.
> rabbitmqctl list_queues name owner_pid memory
> In cases where owner_pid is blank, the output line has two tokens,
> three otherwise.
> Any thoughts on providing a symbol, e.g. "undefined", "-" etc. to help
> parsers know when a value is empty?
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
More information about the rabbitmq-discuss