Using rt command line to check whether a queue exists

Hello All,

I’ve been playing around w/scripting the creation of queues and
haven’t been able to figure this out. How do I use the rt command line
tool to list whether a queue exists or not? ‘rt ls -t queue “name =
queue1”’ throws unsupported object, “rt list -q queue1” lists the
tickets.

Ideally a command that throw’s an exit code, 0=true or 1=false, would
be great but I can work w/whatever output.

Thanks!

Later,
Darin

Hello All,

I’ve been playing around w/scripting the creation of queues and
haven’t been able to figure this out. How do I use the rt command line
tool to list whether a queue exists or not? ‘rt ls -t queue “name =
queue1”’ throws unsupported object, “rt list -q queue1” lists the
tickets.

ls/list is for tickets only. You want “show”:

rt show queue/FooBar
rt show queue/13
rt show -t queue "Foo Bar"

Hello All,

I’ve been playing around w/scripting the creation of queues and
haven’t been able to figure this out. How do I use the rt command line
tool to list whether a queue exists or not? ‘rt ls -t queue “name =
queue1”’ throws unsupported object, “rt list -q queue1” lists the
tickets.

ls/list is for tickets only. You want “show”:

    rt show queue/FooBar
    rt show queue/13
    rt show -t queue "Foo Bar"

Excellent…thanks!