i ahve an issue with mailfetching...OTRS 3.2.11 installed on windows server 2008 with IIS7 webserver.
the otrs/bin/otrs.cron4win32.pl works fine and updates the crontab.txt properly.
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
excuting the module " perl cronService.pl " on cmd prompt says no crontab defined
Code: Select all
c:\otrs\CRONw>perl cronService.pl
no crontab defined! at cronService.pl line 410.
Code: Select all
my $cronfile = $config{'crontab'};
$log->info('starting service');
$log->debug('programdir: '.$programdir);
$log->debug('logfile: '.$logfile);
if (not defined $config{'crontab'}) {
$log->error("no crontab defined!\n");
die "no crontab defined!";
# fixme: crontab detection?
}
$log->debug('crontab: '.$config{'crontab'});
checkCronDirs(dirname($config{'crontab'}));
if ($config{'unknownParameter'}) { $log->warn('unknown command line parameters: '.join(', ', @ARGV)); }
eval ("use lib('".$programdir."'); use Crontab;");
if ($@) { $log->error($@); return; }
eval { $crontab = Crontab->new($config{'crontab'}, {'enableExceptions' => $true}); };
if ($@) { $log->error($@); return; }
the Cronw log says the following:
Code: Select all
[2013/11/11 08:26:35] starting service
[2013/11/11 08:26:35] no crontab defined!
[2013/11/11 09:37:24] starting service
[2013/11/11 09:37:24] no crontab defined!
[2013/11/11 09:37:39] starting service
[2013/11/11 09:37:39] no crontab defined!
[2013/11/11 09:41:17] starting service
[2013/11/11 09:41:17] no crontab defined!
[2013/11/11 11:43:58] starting service
[2013/11/11 11:43:58] no crontab defined!
[2013/11/12 11:30:04] starting service
[2013/11/12 11:30:04] no crontab defined!
[2013/11/12 11:30:26] starting service
[2013/11/12 11:30:26] no crontab defined!
[2013/11/12 12:27:58] starting service
[2013/11/12 12:27:58] no crontab defined!
[2013/11/12 12:28:25] starting service
[2013/11/12 12:28:25] no crontab defined!
[2013/11/12 12:39:21] starting service
[2013/11/12 12:39:21] no crontab defined!
[2013/11/12 13:19:28] starting service
[2013/11/12 13:19:28] no crontab defined!
[2013/11/12 13:39:47] starting service
[2013/11/12 13:39:47] no crontab defined!
[2013/11/12 14:38:39] starting service
[2013/11/12 14:38:39] no crontab defined!
[2013/11/12 14:40:51] starting service
[2013/11/12 14:40:51] no crontab defined!
Please any help or suggestions!!!