OTRS Cron jobs

Moderator: crythias

Locked
223roni256
Znuny newbie
Posts: 63
Joined: 30 Dec 2013, 14:27
Znuny Version: 3.3.3
Real Name: Lukasz Sobiepan
Company: Novum

OTRS Cron jobs

Post by 223roni256 »

Hello

I got question how to edit cron jobs, because on default cron jobs fetch every emails after 10 minutes. What and where i should edit this to change this time
for 1 minute.


thank's for help.
Regards.

otrs 3.3.3 on ubuntu 12.04 lts
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: OTRS Cron jobs

Post by reneeb »

1 minute might be to short. If you want the mail to appear as tickets immediately, you should think about piping the mails to OTRS via fetchmail.

To edit the cronjobs, you can either

1) edit the files at <OTRS_HOME>/var/cron/ and use otrs.CronSetup.sh

2) use the command "crontab -e -u otrs"
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS Cron jobs

Post by crythias »

or otrs/bin/Cron.sh restart
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
223roni256
Znuny newbie
Posts: 63
Joined: 30 Dec 2013, 14:27
Znuny Version: 3.3.3
Real Name: Lukasz Sobiepan
Company: Novum

Re: OTRS Cron jobs

Post by 223roni256 »

Ok thank's but I need more specyfic info, what script and where I change to fetch email time. I thought that's script postmaster_mailbox, or postmaster fo change that's but in script postmaster_mailbox I have comment
# fetch emails every 10 minutes

and line

*/10 * * * * $HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null

thank"s for help.
Regards.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: OTRS Cron jobs

Post by reneeb »

to run it every minute, just remove the "/10", so:

Code: Select all

* * * * * $HOME/....
http://www.adminschoice.com/crontab-quick-reference/
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
223roni256
Znuny newbie
Posts: 63
Joined: 30 Dec 2013, 14:27
Znuny Version: 3.3.3
Real Name: Lukasz Sobiepan
Company: Novum

Re: OTRS Cron jobs

Post by 223roni256 »

OK i got it, very very thank you for your help. Problem Solved
Locked