[rt-users] Re: Error when using rt-crontool

Andy Harrison aharrison at gmail.com
Wed Dec 29 12:17:39 EST 2004


> 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



More information about the rt-users mailing list