In message <[email protected]>,
Alberto Losada writes:
>I am trying to trigger an event every time a context, previously
>created, is deleted. In my terminal I can see the following lines:
>
>Creating context 'context_FW-002_FWSM-DGA_195.55.130.246_8081_tcp'
>Deleting stale context 'context_FW-002_FWSM-DGA_195.55.130.246_8081_tcp'
>Stale context 'context_FW-002_FWSM-DGA_195.55.130.246_8081_tcp' delete
>
>Can I extract data from these lines? I tried the -intevent option, however,
>I was not able to make it work.
You would need to log the sec output lines to a file and use that file
as an input source. The log outout isn't availble to SEC rules in any
other way.
>#Stale context 'context_FW-002_FWSM-DGA_195.55.130.246_8081_tcp' deleted
>
>type=Single
>ptype=RegExp
>desc=sending_sumup
>pattern=Stale context \'(.+)\' deleted
>action=write - SENDING A RESUME $1
What you can do is associate a terminate action (list) with a
context. The terminate action fires when the context's lifetime
expires or when the context is obsoleted (not deleted) by another
action. From the man page:
create [<name> [<time> [<action list>] ] ]
Context with the name <name>, with the lifetime of <time> sec-
set <name> <time> [<action list>]
Settings for the context with the name <name> will be changed
will both allow you to set an action that is run when the context
expires.
--
-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users