> -----Original Message----- > From: Mark D. Nagel [mailto:mna...@willingminds.com] > Sent: Monday, January 12, 2015 3:02 AM > To: simple-evcorr-users@lists.sourceforge.net > Subject: Re: [Simple-evcorr-users] finding dead/unused rules in a config file > > > > To adjust the solution for your problem, you might rewrite it like this: > > > > type=single > > ptype=substr > > pattern=SEC_SHUTDOWN > > context=SEC_INTERNAL_EVENT > > desc=produce the dumpfile > > action=lcall %o -> ( sub { main::dump_data(); } ) > > My version of this to ensure the process happens (it will fail if > /tmp/sec.dump already exists): > > type=Single > ptype=SubStr > continue=TakeNext > pattern=SEC_SHUTDOWN > desc=Dump State On SEC Shutdown > context=SEC_INTERNAL_EVENT > action=logonly "attempting to dump state"; \ > lcall %ret -> ( sub { my $now = time; unlink("/tmp/sec.dump"); > main::dump_data(); rename("/tmp/sec.dump", "/tmp/sec.dump.$now"); } ) >
That solution is even better :) Risto > Regards, > Mark > > -- > Mark D. Nagel, CCIE #3177 Emeritus <mna...@willingminds.com> Principal > Consultant, Willing Minds LLC (http://www.willingminds.com) > cell: 949-279-5817, desk: 714-495-4001, fax: 714-646-8277 > > ** For faster support response time, please > ** email supp...@willingminds.com or call 714-495-4000 > > > ------------------------------------------------------------------------------ > New Year. New Location. New Benefits. New Data Center in Ashburn, VA. > GigeNET is offering a free month of service with a new server in Ashburn. > Choose from 2 high performing configs, both with 100TB of bandwidth. > Higher redundancy.Lower latency.Increased capacity.Completely compliant. > vanity: www.gigenet.com > _______________________________________________ > Simple-evcorr-users mailing list > Simple-evcorr-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. vanity: www.gigenet.com _______________________________________________ Simple-evcorr-users mailing list Simple-evcorr-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users