my ZZZAAuto.pm:
Code: Select all
$Self->{'Daemon::SchedulerCronTaskManager::Task'}->{'Custom1'} = {
'Function' => 'Execute',
'MaximumParallelInstances' => '1',
'Module' => 'Kernel::System::Console::Command::Maint::Stats::Generate',
'Params' => [
'--number 10014',
'--format Print',
'--mail-sender \'my@domain.com>\'',
'--mail-recipient my@domain.com',
'--mail-body \'Mail Body\''
],
'Schedule' => '18 00 * * *',
'TaskName' => 'Raport'
};
There was an error executing Execute() in Kernel::System::Console::Command::Maint::Stats::Generate: Error: please provide option '--number'.
What am I doing wrong? Any ideas?