hi,
as I understand, the problem is the following -- the RELOAD event that you
have generated does not reach the second rule in resetRules.conf? If you
are using a hierarchical ruleset with Jump rules, please make sure that the
RELOAD event is directed to resetRules.conf.

Also, your ruleset has one subtle caveat. Your first rule has the following
action list:

action= shellcmd C:\launchBat.bat;event RELOAD;

Please note that command lines triggered by 'shellcmd' action are always
executed asynchronously and sec will *not* wait for the completion of
command lines, but would rather continue processing input events (the
status of the command line is checked by sec after short time intervals,
until the command line has completed). Therefore, the following actions in
your rule will essentially run in parallel:

shellcmd C:\launchBat.bat
event RELOAD

It is quite likely that the RELOAD event is generated *before*
C:\launchBat.bat has completed its work, and therefore rules are reloaded
before the command line has accomplished its task.

If the order of the above two actions is important for you and the first
action needs to finish before the second action is started, some
synchronization mechanism needs to be developed between these two actions.
For example, you could produce an event from the end of C:\launchBat.bat
which is written into SEC input, and which will trigger the rule reloading
procedure.

kind regards,
risto


2016-06-27 11:15 GMT+03:00 Jaren Peich <burkol...@gmail.com>:

> Hi Risto,
>
> I have a SEC running doubt referring sec restart rules. I have the
> following graph attached to the email.
>
> Scene:
> I start reading logs and launching rules as normal, while i´m doing the
> process i want to restart sec to download a list and load the list
> generated in iniLib in the hash table. Batch file is working properly. The
> problem is the system doesn´t stop and refresh the rules when the time have
> been spent the time. Have i assign reset rule each file?Can i do globally?
>
>
> resetRules.conf
> _____________________________________________________________________
> type=Calendar
> time= 58 * * * *
> desc=Download_Rule_List
> action= shellcmd C:\launchBat.bat;event RELOAD;
>
> type=single
> ptype=regexp
> pattern=.*
> desc=reload_hash
> action=lcall %o -> (sub{$main::refresh = 1;})
>
> Thank you Risto. Regards.
>
>
>
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Simple-evcorr-users mailing list
Simple-evcorr-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to