scripts::test::sample::GenericAgent::TestSystemCallModule - Generic Agent test module
This test modules calls the console command Maint::PostMaster::SpoolMailsReproces that internally do a system call to Maint::PostMaster::Read.
use Kernel::System::ObjectManager; local $Kernel::OM = Kernel::System::ObjectManager->new(); my $GenericAgentModuleObject = $Kernel::OM-Get('scripts::test::sample::GenericAgent::TestSystemCallModule');
Performs a call to Maint::PostMaster::SpoolMailsReproces.
my $Success = $GenericAgentModuleObject->Run()
This software is part of the OTRS project (https://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.