[dev] Call a GenericAgent-Job from within another Perl-Script

Christian Schoepplein christian.schoepplein at otrs.com
Wed Feb 7 15:02:50 GMT 2007


Hello,

On Di, Feb 06, 2007 at 06:44:59 +0100, Marco Friebe wrote:
>I want to call a GenericAgent-Job from within another Perl-Script. 
>
>I want do do some work in the otrs database (Oracle) and then call 
>that Agent-Job subsequently.
>
>Like it is done for manual job invocation using URL 
>"http://localhost/otrs/index.pl?Action=AdminGenericAgent&Subaction=RunNow&Profile=Test" 
>but called from commandline (Cron).

It is possible to insert GenericAgent jobs into a file. Per default the 
file is

    Kernel/Config/GeneriCAgent.pm

If a job is defined there, just call

   ./bin/GenericAgent.pl

and the jobs stored in the GenericAgent.pm file will be executed.

Kind regards,

  Christian

-- 
((otrs)) :: OTRS GmbH :: Europaring 4 :: D - 94315 Straubing
  Fon: +49 (0) 9421 56818-0  :: Fax: +49 (0) 9421 56818-18
    http://www.otrs.com/ :: Communication with success!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.otrs.org/pipermail/dev/attachments/20070207/b2a0ef8b/attachment.pgp


More information about the dev mailing list