[rt-users] rt-crontool

Landon Stewart lstewart at iweb.com
Fri Sep 27 15:37:12 EDT 2013


On 27 September 2013 11:17, Bryon Baker <bbaker at copesan.com> wrote:

>  Has anyone setup a rt-crontool job to run a scrip that is defined in a
> queue?
>
> Maybe I will try and explain some more.
>
> So I have built 80 scrips attached to a queue they do several thing for
> filling out custom fields.  But sometime they are not able to retrieve the
> information usually because there is something wrong with the data being
> retrieved from a foreign database.  I get the data corrected but then the
> cf need to be updated manually.
>
> My thought is to rerun the needed scrip to fill in the cf’s.
>

Hi Byron,

I'm doing this in numerous cases.  Basically I use my action modules in the
Scrips but I don't write User Defined actions in the Scrips if I want to be
able to use them as Actions like you are talking about above.  I started
here a few months ago:
http://requesttracker.wikia.com/wiki/WriteCustomAction

Basically the process is to write it as an action in your RT/Action/
directory, test it and stuff…  Once you know it works manually with
rt-crontool then add it to the RT database as a ScripAction so it can be
used in the Scrips section of the UI as well as by rt-crontool.

-- 
Landon Stewart :: lstewart at iweb.com
Lead Specialist, Abuse and Security Management
Spécialiste principal, gestion des abus et sécurité
http://iweb.com :: +1 (888) 909-4932
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130927/307e4f50/attachment.htm>


More information about the rt-users mailing list