Windows Cron Jobs

Moderator: crythias

Locked
michaelsteib
Znuny newbie
Posts: 25
Joined: 23 Oct 2013, 14:12
Znuny Version: 3.2.11
Real Name: Michael Steib

Windows Cron Jobs

Post by michaelsteib »

Dear all

I have the same problem as here with Win 7, 64 bit.

running this perl script manually the emails are being sent and received:
/OTRS/OTRS/bin/PostMasterMailbox.pl

C:\otrs\CRONw\Crontab.txt:

Code: Select all

MAILTO="root@localhost"
20 0 * * 0  C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.DeleteCache.pl --expired 
30 0 * * 0  C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.LoaderCache.pl -o delete 
*/10 * * * *    C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.GenericAgent.pl -c db 
*/20 * * * *    C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.GenericAgent.pl 
45 */2 * * *    C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.PendingJobs.pl 
*/1 * * * *    C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.PostMasterMailbox.pl 
01 01 * * * C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.RebuildTicketIndex.pl 
55 */2 * * *    C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.DeleteSessionIDs.pl --expired 
35 * * * *  C:\Perl\bin\perl.exe C:/otrs/OTRS/bin/otrs.UnlockTickets.pl --timeout 
C:\otrs\OTRS\bin\otrs.Cron4Win32.pl creates a new Crontab.txt file

C:\Windows\system32>perl C:\otrs\OTRS\bin\otrs.Scheduler4winInstaller.pl -a install
Failed to add 'OTRS Scheduler' service
Error:The specified service already exists.

Basically what I think: This cronW job is not running in the background. "net start CRON" provides me this error message: The service name is invalid. How can this be started / installed?
I appreciate any help!

Thanks and best regards
Michael

Mod note: Please do not resurrect ancient threads. Please create new topics for your situation.
michaelsteib
Znuny newbie
Posts: 25
Joined: 23 Oct 2013, 14:12
Znuny Version: 3.2.11
Real Name: Michael Steib

Re: Windows Cron Jobs

Post by michaelsteib »

hello again,

I would appreciate any kind of help to this topic. My questions: Where can I see the whether the cronW is installed correctly or not or if it is running or not? Does anyone has any information to this?

Thanks a lot!

Best regards
Michael
adeluna2005
Znuny newbie
Posts: 7
Joined: 08 Nov 2013, 01:12
Znuny Version: 3.2.11
Real Name: Alejandro De Luna
Company: CEMM MEX

Re: Windows Cron Jobs

Post by adeluna2005 »

I'm using W7 too , you can check at the services and you should see the Cron Service running.
Locked