Cron

Moderator: crythias

Locked
otrswin
Znuny newbie
Posts: 19
Joined: 04 Dec 2013, 15:11
Znuny Version: 4.0.6.D150219.196
Real Name: Vivian
Company: WDMM

Cron

Post by otrswin »

#this runs Kernel/Config/GenericAgent.pm, if it exists
*/20 * * * * $HOME/bin/otrs.GenericAgent.pl >> /dev/null
#this runs what's in the database (what you set up through the web interface, Generic Agent)
*/10 * * * * $HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null
Hi there,
now I can't get the Generic Agent to run and I supossibly tried any found answer to this matter...but still it wont do. We use windows and mysql is there anything different? I guess /dev/null is not working on windows what is its job here? I left it on all the other jobs in our crontab.txt.
This is what my last try looks like:

# start generic agent every 10 minutes and only between 7am and 8pm
*/10 7-20 * * * c:\perl\bin\perl.exe C:\otrs\OTRS\bin\otrs.GenericAgent.pl >>

After the change I usually restart the Service.
I also tried:

*/10 7-20 * * * c:\perl\bin\perl.exe C:\otrs\OTRS\bin\otrs.GenericAgent.pl -c db
*/10 7-20 * * * c:\perl\bin\perl.exe C:\otrs\OTRS\bin\otrs.GenericAgent.pl -c Kernel::Config::GenericAgentMove (at this one the log said it couldn't find the GenericAgentMove.pm - I couldn't either.)
Last edited by crythias on 18 Dec 2013, 14:32, edited 1 time in total.
Reason: Topic split because old topic was old
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Cron

Post by crythias »

otrswin wrote:now I can't get the Generic Agent to run
what does "now" mean? It worked before? Or you've only just tried it?
Which Generic Agent are you attempting to run? A programmed version or a web-interface version?
What time(s) did you select for it to run in the interface version?
Did you rerun the OTRS scheduler on Windows? I'm not sure how it works if you made a cron/cronW change for windows.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
otrswin
Znuny newbie
Posts: 19
Joined: 04 Dec 2013, 15:11
Znuny Version: 4.0.6.D150219.196
Real Name: Vivian
Company: WDMM

Re: Cron

Post by otrswin »

Hi,

I am answering a little late but everything is fine now.

It didn't run at all but after some more tries - and sometimes "talking" about something helps to solve the problems - I use only simple settings like the ga interface version.
Actually I am not supposed to be the admin of otrs but somehow I got myself in this position - so I try to keep it simple.

For Windows:

I used the crontab.txt file edited the file for the cron job of the ga like this:
*/10 7-20 * * * c:\perl\bin\perl.exe C:\otrs\OTRS\bin\otrs.GenericAgent.pl -c db
saved
restarted cronw service (the sheduler doesn't need to be restarted on windows)
and waited, now every ten minutes my configured interface ga jobs are checked between 7am and 8pm everyday and they are run as their configured time is due

Thank you crythias for answering anyways and sorry for any poor english expression but my skills are quite rusty!

(not to forget:) HAPPY NEW YEAR
Locked