Monthly Archives: March 2011

RT (Request Tracker) comments via command-line

I have RT3 installed on my Fedora 14 and have configured it to make it work. There are certain things that I had to go through while setting up RT3. I won’t got into those details as instructions are available and provided along with your RT3 installation.

yum -y install rt3

Now, I wanted to use RT3 via command-line, as it’s quicker for me, especially when I am connected with low-speed internet. Moreover to automatically create, update, modify multiple tickets together it’s always helpful.

I found this link: http://requesttracker.wikia.com/wiki/CLI pretty helpful for command-line usage of RT3

However, there’s one thing I couldn’t find neither I could get an answer on RT3 mailing list is, formatted commenting via RT3 command line: http://lists.bestpractical.com/pipermail/rt-users/2011-March/069554.html

In unix based systems, you have ‘cat’ command to get the file’s content on STDOUT. So, I did following to make it working

cat RT_MSG_FILE | rt comment 6977 -m -

It worked!

Still playing with RT3 command-line to get more easier solutions for my needs!

Thanks!
Ankit