[rt-users] Looking up queues by name in cli: How to handle spaces in names?
Hello list. I'm running RT 3.8.8 on Debian. Using the cli I need to get information on queues. I can look up queues with no spaces in their name, but I can't figure out to handle queues with spaces in their names. Looking up the queue "queue_name" works: rt show -t queue some_queue I can't figure out how to look up the queue "queue name". I have tried the below without success: rt show -t queue some\ queue rt show -t queue 'some queue' rt show -t queue some%20queue I get the error: rt: show: Unrecognised argument 'queue name'. rt: show: No objects specified. rt: For help, run 'rt help show'. rt: For help, run 'rt help queue'. Any ideas? Regards, Tobias RT Training Sessions (http://bestpractical.com/services/training.html) * San Francisco, CA, USA October 18 & 19, 2011 * Washington DC, USA October 31 & November 1, 2011 * Barcelona, Spain November 28 & 29, 2011
Re: [rt-users] Looking up queues by name in cli: How to handle spaces in names?
On Wed, Oct 12, 2011 at 08:37:30PM +0200, tobiasbp wrote: > I'm running RT 3.8.8 on Debian. > > Using the cli I need to get information on queues. I can look up > queues with no spaces in their name, but I can't figure out to handle > queues with spaces in their names. > > Looking up the queue "queue_name" works: > rt show -t queue some_queue > > I can't figure out how to look up the queue "queue name". > I have tried the below without success: > rt show -t queue some\ queue > rt show -t queue 'some queue' > rt show -t queue some%20queue > > I get the error: > rt: show: Unrecognised argument 'queue name'. > rt: show: No objects specified. > rt: For help, run 'rt help show'. > rt: For help, run 'rt help queue'. That sounds like a bug. Would you file something in the bugtracker? The only workaround I can see without code changes is using the queue's ID. -kevin pgpHbG9UtcQ7d.pgp Description: PGP signature RT Training Sessions (http://bestpractical.com/services/training.html) * San Francisco, CA, USA October 18 & 19, 2011 * Washington DC, USA October 31 & November 1, 2011 * Barcelona, Spain November 28 & 29, 2011
Re: [rt-users] Looking up queues by name in cli: How to handle spaces in names?
> The only workaround I can see without code changes is using the queue's ID. I would love to do that, but looking at a ticket I can not see the ID of the queue, just the name: rt show -l 103 id: ticket/103 Queue: queue name Since I can't show "queue name" with the rt command I don't see how I can get information on the queue? Regards, Tobias RT Training Sessions (http://bestpractical.com/services/training.html) * San Francisco, CA, USA October 18 & 19, 2011 * Washington DC, USA October 31 & November 1, 2011 * Barcelona, Spain November 28 & 29, 2011
Re: [rt-users] Looking up queues by name in cli: How to handle spaces in names?
On Thu, Oct 13, 2011 at 05:52:57PM +0200, tobiasbp wrote: > > The only workaround I can see without code changes is using the queue's ID. > > I would love to do that, but looking at a ticket I can not see the ID > of the queue, just the name: > rt show -l 103 > id: ticket/103 > Queue: queue name > > Since I can't show "queue name" with the rt command I don't see how I > can get information on the queue? Then you'll need to wait on a bugfix I guess, or use the perl API which doesn't have this limitation. Please do file the bug so we don't forget it. -kevin pgppvra3McFOP.pgp Description: PGP signature RT Training Sessions (http://bestpractical.com/services/training.html) * San Francisco, CA, USA October 18 & 19, 2011 * Washington DC, USA October 31 & November 1, 2011 * Barcelona, Spain November 28 & 29, 2011