2
responses

Hi, I tried schedule 2 jobs for blocking log-messages, as is described in documentation:
Example 4.6. Two scheduled jobs in the context of the im_tcp module
But I need change blocking mode every minute. For example: every even minut block messages, and every odd minutes pass all messages.
I tried to use default syntax from cron:

<Processor blocker>
Module pm_blocker
<Schedule>
When 0-59/2 * * * *
Exec blocker->block(TRUE);
Exec log_info("Block: True");
</Schedule>
<Schedule>
When 1-59/2 * * * *
Exec blocker->block(FALSE);
Exec log_info("Block: False");
</Schedule>
</Processor>

But all this schedules was run simultaneously. How I can schedule this jobs?

AskedNovember 27, 2017 - 10:58am

Answer (1)