CLI documentation

Is there any documentation on the RT3 CLI? I managed to import all my RT2
scrips and templates to RT3 and they worked unchanged, so the last hurdle in
the upgrade process is to update all our RT2 CLI scripts which use rt-admin to
use the RT3 CLI. The commandline help in the RT3/bin/rt tool helps some, but
it would be nice to have some sort of mapping from RT2 to RT3 CLI commands. I
can figure that out I’m sure, but there are some other issues. One big one is
an error I’m getting that I cant figure out from reading the Perl code. Any rt
command I try other than ‘help’ asks for a password and then gives an error.
I’ve tried various RT usernames and passwords which work with the web
interface but still get this error from CLI:

rt: Server error: Found (302)

Is there any documentation on the various error codes the CLI generates?

Craig Schenk scripted ::

Is there any documentation on the various error codes the CLI
generates?

http://josiah.ritchietribe.net/moniwiki/wiki.php/CommandLine is just
me tossing together thoughts and things as I’ve picked them up, but
your welcome to read my notes. (That’s why they are online.)

JSR/

One thing you’ll want to do is make sure you’ve got $HOME/.rtrc which
looks like this:

server http://your.rt.server/
user YOUR_RT_USERNAME
passwd YOUR_RT_PASSWORD

Things will work slightly better, then. :slight_smile:

Adam

“You keep cereal in your desk? That’s the coolest thing I’ve ever seen!”
“Yeah, well, you’re young.” – Brian Michael Bendis, in Powers
adam@baz.org http://web.baz.org/~adam/

I’ve got a fairly functional RT command-line based console tool that does
rapid assigning, priority setting, comment/replying, and queue switching.
While Jesse thinks it’s silly, it’s a hell of a lot faster than using w3m
to sort through 40 tickets in the morning.

If anyone’s interested, I’ll clean it up and put it up for comments…

Adam

Unless you count as felonies innocuous actions such as overturning | adam@
coffee urns, putting mice in the bins of coffee beans at the A & P, | baz.org
and the reflexive punching of waiters and waitresses who put coffee |
next to me while I’m eating, I had never committed a crime. – Mark Helprin

My biggest gripe with the CLI just now is that I can’t see any way for it
to do steal/take – it’ll set the owner on unowned tickets, but my pokings
haven’t found a away to get it to steal/take. Anyone else?

Thank god I’m not the only person using the CLI.

Adam

fear of loneliness; fear that being in and out of love too many times itself
makes you harder to love; fear that someone would fall in love with me, get
extremely close, learn everything about me and then pull the plug; fear that
love is only important up until a certain point after which everything is
negotiable. -Douglas Coupland, Life_After_God adam@baz.org

Adam Hirsch wrote:

I’ve got a fairly functional RT command-line based console tool that does
rapid assigning, priority setting, comment/replying, and queue switching.
While Jesse thinks it’s silly, it’s a hell of a lot faster than using w3m
to sort through 40 tickets in the morning.

If anyone’s interested, I’ll clean it up and put it up for comments…

Adam

I would definitely be interested


Unless you count as felonies innocuous actions such as overturning | adam@
coffee urns, putting mice in the bins of coffee beans at the A & P, | baz.org
and the reflexive punching of waiters and waitresses who put coffee |
next to me while I’m eating, I had never committed a crime. – Mark Helprin


rt-users mailing list
rt-users@lists.bestpractical.com
The rt-users Archives

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
There’s no place like 127.0.0.1

If anyone’s interested, I’ll clean it up and put it up for
comments…>
Adam

I would definitely be interested

ditto