[solved]Cron-1053

Moderator: crythias

Locked
vim
Znuny newbie
Posts: 12
Joined: 04 Jul 2013, 16:27
Znuny Version: 3.2.8

[solved]Cron-1053

Post by vim »

Hi,
I saw, that I didn't get e-mail. I saw, that service "Cron Service" doesn't work, when I try start this, I got error: 1053.

edit:
If you change the path to the installer in services is part of the default.
Last edited by vim on 16 Jul 2013, 16:12, edited 2 times in total.
OTRS 3.2.8-MySQL- IIS (now in Windows 7- testing, In future- Windows Server 2008)
vim
Znuny newbie
Posts: 12
Joined: 04 Jul 2013, 16:27
Znuny Version: 3.2.8

Cron-1053

Post by vim »

Ok, cron is worked, but does not download the message automatic.

I change postmaster_mailbox
*/1 * * * * $HOME/bin/otrs/otrs.PostMasterMailbox >> /dev/null


Update
Now download mail for default time (every 10 minutes)
I noticed that the file (crontab) looks like this (something is notinstalled)

Code: Select all

# cronw - Cron for Windows (http://cronw.sourceforge.net)
#
# automatically generated CRONTAB file
# you may edit this file - you changes won't be overwritten!
#
# crontab format is:
# <Minute> <Hour> <Day> <Month> <Day of Week> <Command line>
# Position:     Values:
# Minute        0-59
# Hour          0-23
# Day           1-31
# Month         1-12 (1 = January, 12 = December)
# Day of week   0-7 (0=Sunday, 1=Monday, ..., 6=Saturday, 7=Sunday)
#
# Alternatively you may use mnemonics for diffent fields:
# Hour:  "1am", "2am", ..., "12am", "1pm", "2pm", ..., "12pm",
# Month: "Jan", "Feb", ..., "Nov", "Dec"
# Day of week: "Mon", "Tue", "Wed", ..., "Sat", "Sun"
#
# If you want to execute a job only one times daily just put an
# executable into cron.daily. Execution time is 18:00. Same goes
# for cron.weekly (every Monday, 18:00) and cron.monthly (first day
# of every month, 18:00).
#
# Examples:
#
# Every Friday at 13:00h
# 0 13 * * 5 c:\perl\bin\perl.exe c:\test.pl
# 0 13 * * Fri c:\perl\bin\perl.exe c:\test.pl
#
# Every 15 Minutes during daytime on Saturdays and Sundays
# */15 6-20 * * 6,7 c:\perl\bin\perl.exe c:\webcam.pl
# */15 6-20 * * Sat,Sun c:\perl\bin\perl.exe c:\webcam.pl
#
# <Minute> <Hour> <Day> <Month> <Day of Week> <Command line>

I change this file and now looks

Code: Select all

MAILTO="root@localhost"
20 0 * * 0  C:\perl\bin\perl.exe C:/inetpub/wwwroot/OTRS/OTRS/bin/otrs.DeleteCache.pl --expired 
30 0 * * 0  C:\perl\bin\perl.exe C:/inetpub/wwwroot/OTRS/OTRS/bin/otrs.LoaderCache.pl -o delete 
*/10 * * * *    C:\perl\bin\perl.exe C:/inetpub/wwwroot/OTRS/OTRS/bin/otrs.GenericAgent.pl -c db 
*/20 * * * *    C:\perl\bin\perl.exe C:/inetpub/wwwroot/OTRS/OTRS/bin/otrs.GenericAgent.pl 
45 */2 * * *    C:\perl\bin\perl.exe C:/inetpub/wwwroot/OTRS/OTRS/bin/otrs.PendingJobs.pl 
*/10 * * * *    C:\perl\bin\perl.exe C:/inetpub/wwwroot/OTRS/OTRS/bin/otrs.PostMasterMailbox.pl 
01 01 * * * C:\perl\bin\perl.exe C:/inetpub/wwwroot/OTRS/OTRS/bin/otrs.RebuildTicketIndex.pl 
55 */2 * * *    C:\perl\bin\perl.exe C:/inetpub/wwwroot/OTRS/OTRS/bin/otrs.DeleteSessionIDs.pl --expired 
35 * * * *  C:\perl\bin\perl.exe C:/inetpub/wwwroot/OTRS/OTRS/bin/otrs.UnlockTickets.pl --timeout 
But now I get emails every 10 minutes, not every one minute as I set. Where else can I check?
OTRS 3.2.8-MySQL- IIS (now in Windows 7- testing, In future- Windows Server 2008)
KlausNehrer
Znuny ninja
Posts: 1312
Joined: 25 May 2012, 08:51
Znuny Version: OTRS 4
Real Name: Klaus Nehrer

Re: Cron-1053

Post by KlausNehrer »

vim wrote:I change this file and now looks

Code: Select all

...
*/10 * * * *    C:\perl\bin\perl.exe C:/inetpub/wwwroot/OTRS/OTRS/bin/otrs.PostMasterMailbox.pl 
...
But now I get emails every 10 minutes, not every one minute as I set. Where else can I check?
Sure?
vim
Znuny newbie
Posts: 12
Joined: 04 Jul 2013, 16:27
Znuny Version: 3.2.8

Re: Cron-1053

Post by vim »

ok, I changed this file and it's ok, but in this instruction
http://lists.otrs.org/pipermail/otrs/20 ... 26893.html
is other file...., why?
OTRS 3.2.8-MySQL- IIS (now in Windows 7- testing, In future- Windows Server 2008)
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Cron-1053

Post by crythias »

vim wrote:is other file...., why?
Because that's the source file that is read when combining the cron.
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
michaelsteib
Znuny newbie
Posts: 25
Joined: 23 Oct 2013, 14:12
Znuny Version: 3.2.11
Real Name: Michael Steib

Re: [solved]Cron-1053

Post by michaelsteib »

Hi,

I also receive this error message
Windows could not start the Cron Service (CRONw) service on local Computer. error 1053: The service did not respond to the start or control request in a timely fashion.

What exactly have you done to make it work?

Thanks and best regards
Michael
Locked