Tim, Tim Rosenblatt wrote: > output = `sudo rabbitmqctl list_queues` > queue_sizes = output.scan(/\d+/) You may want to supply the '-q' option to rabbitmqctl in order to suppress the output of information messages ("Listing queues ..." , "...done", etc). Regards, Matthias.