[rt-users] Rt-crontool - escalate priority
tmaciak at ci.grand-rapids.mi.us
tmaciak at ci.grand-rapids.mi.us
Thu Oct 6 15:03:54 EDT 2005
Well I found out if I run the script as "root" from the linux box with this command:
./rt-crontool --search RT::Search::ActiveTicketsInQueue --search-arg "Queue Name" --action RT::Action::EscalatePriority
Then it works.
If I do it in cron with this command:
Cron <root at devhelpdesk> /opt/rt3/bin/rt-crontool --search RT::Search::ActiveTicketsInQueue --search-arg "Queue Name" --action RT::Action::EscalatePriority
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Can't call method "Rollback" on an undefined value at /opt/rt3/local/lib/RT_Local.pm line 111.
Anyone have any ideas or suggestions?
T.J. Maciak
Internet/Intranet Developer
Department of IT
City of Grand Rapids
P: (616)456-3713
F: (616)456-3448
-----Original Message-----
From: Maciak, TJ
Sent: Thursday, October 06, 2005 9:54 AM
To: rt-users at lists.bestpractical.com
Subject: [rt-users] Rt-crontool - escalate priority
I am trying to get the escalate priority script working by using rt-crontool in my linux box Root crontab. This is what I have placed in the crontab to run:
*/2 * * * * /opt/rt3/bin/rt-crontool --action RT::Action::EscalatePriority
Following are the results I get from cron:
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Can't call method "Rollback" on an undefined value at /opt/rt3/local/lib/RT_Local.pm line 111.T.J. Maciak
Anybody have any ideas?
I have read something about a rt-user account, but I dont have one of these. The only accounts I have On RT are: root and RT_System. On my linux box, rt is run as user "apache" via root.
Any help is appreciated.
Internet/Intranet Developer
Department of IT
City of Grand Rapids
P: (616)456-3713
F: (616)456-3448
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Be sure to check out the RT Wiki at http://wiki.bestpractical.com
Buy your copy of our new book, RT Essentials, today!
Download a free sample chapter from http://rtbook.bestpractical.com
More information about the rt-users
mailing list