Hi,
Using storable module I was able to save the context on windows
system. I generated a synthetic event when a context is created/deleted and
wrote a rule to save the context as action for this synthetic event.
Given below are the rules I used to achieve this.
type=Single
ptype=RegExp
pattern=….
desc=…
action= create MY_CONTEXT;event SAVE_CONTEXT
type=Single
ptype=SubStr
pattern=SAVE_CONTEXT
continue=TakeNext
desc=Save all SEC contexts into SEC_CONTEXTS on shutdown
action=lcall %ret -> ( sub { \
Storable::store(\%main::context_list, "SEC_CONTEXTS"); } )
Regards,
Viji
From: Risto Vaarandi [mailto:risto.vaara...@gmail.com]
Sent: Monday, July 14, 2014 8:05 PM
To: Ravindran, Viji Kakkattu (HP Software)
Cc: simple-evcorr-users@lists.sourceforge.net
Subject: Re: [Simple-evcorr-users] Saving context on Disk in Windows
hi,
you probably mean the following entry from the SEC FAQ:
http://simple-evcorr.sourceforge.net/FAQ.html#15
This entry describes two possible ways for addressing the problem. While the
first solution is indeed UNIX specific (it uses the 'spawn' action which is not
implemented on Windows), the second approach which relies on the Storable
module should be quite universal. The only thing which needs to be changed in
this example is the name of the file which is used for storing SEC contexts.
Have you tried this approach?
kind regards,
risto
2014-07-13 8:19 GMT+03:00 Ravindran, Viji Kakkattu (HP Software)
<viji...@hp.com<mailto:viji...@hp.com>>:
Hi,
I have seen the steps to save contexts in SEC FAQ
(http://simple-evcorr.sourceforge.net/FAQ.html). But these steps do not work on
windows. Can someone provide me instructions to save context on windows
periodically and also while SEC shuts down?
Regards,
Viji.
------------------------------------------------------------------------------
_______________________________________________
Simple-evcorr-users mailing list
Simple-evcorr-users@lists.sourceforge.net<mailto:Simple-evcorr-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Simple-evcorr-users mailing list
Simple-evcorr-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users