Error when using rt-crontool

All,

I am attempting to use rt-crontool to send e-mail on unowned tickets based
on the instructions shown at
http://wiki.bestpractical.com/index.cgi?TimedNotifications. However, when I
attempt to run the commands I get the following:

[rt@elentari extutils]$ ./rt-unowned
No RT user found. Please consult your RT administrator.

rt-unowned contains the following:

/opt/rt/bin/rt-crontool --search RT::Search::FromSQL
–search-arg “Owner = ‘10’ AND Created < ‘2 days ago’ AND Created > ‘3
days ago’”
–action RT::Action::RecordComment --template ‘Unowned tickets’

Any help would be greatly appreciated.

Thanks,

Dave Schnardthorst

No RT user found. Please consult your RT administrator.

rt-crontool (which uses RT::Interface::CLI, btw) tries to create a
user object from whatever the currently logged in user is. So if the
username you’re current using in your operating system doesn’t exist,
it won’t work.

You can fudge it a bit…

In the rt-crontool script, instead of:

#Get the current user all loaded
my $CurrentUser = GetCurrentUser();

change it to:

specify user to load

my $CurrentUser = RT::CurrentUser->new();
$CurrentUser->LoadByName(‘YourRTUsername’);

Andy Harrison