Re: [Simple-evcorr-users] How to force SEC not to process a file from start when it is being edited.

2011-10-19 Thread Justin J. Novack
File-system wise, on save, the file is created from 0 bytes and repopulated, so SEC might not know that it was a user-edit. This could happen with nano (pico), try a more powerful editor like vim (or emacs). -- Justin J. Novack Official Disturber of the Peace On Wed, Oct 19, 2011 at 6:55 AM,

Re: [Simple-evcorr-users] How to force SEC not to process a file from start when it is being edited.

2011-10-19 Thread Supratik Goswami
Yes it is happening with vim. Is there any way to tell SEC not to repopulate? On Wed, Oct 19, 2011 at 5:01 PM, Justin J. Novack jnov...@gmail.com wrote: File-system wise, on save, the file is created from 0 bytes and repopulated, so SEC might not know that it was a user-edit. This could

Re: [Simple-evcorr-users] How to force SEC not to process a file from start when it is being edited.

2011-10-19 Thread Eric V. Smith
Even if it were possible to delete say 100 bytes from the front of the file, how would SEC know that it needed to skip back 100 bytes to keep it's concept of the current location in the file? Imagine a scenario with multiple write to the end of the file, some of which SEC has processed, but some

Re: [Simple-evcorr-users] Defining a Map for Data

2011-10-19 Thread Justin J. Novack
Excellent points, all. I've decided to combine the two approaches. However, I'm stuck. As you can see below, I'm loading the hashes on startup, and the second rule doesn't run. :( If I remove the context from the second rule, it runs fine. I don't think context =($perl_hash{$2}) is a valid

Re: [Simple-evcorr-users] Defining a Map for Data

2011-10-19 Thread Justin J. Novack
Sorry for the double post, I wanted to post an intermediate solution: The correct context line for the second rule would be: context= =(if (exists $hash{GigabitEthernet1/37}) { return 1;} ) This should be the last stumbling block... -- Justin J. Novack Official Disturber of the Peace On

Re: [Simple-evcorr-users] Defining a Map for Data

2011-10-19 Thread John P. Rouillard
In message cab3_bpoyf-ppbhwvfulf2g88crcfma4q2e1fdkxxsu7moz2...@mail.gmail.com , Justin J. Novack writes: Excellent points, all. I've decided to combine the two approaches. However, I'm stuck. As you can see below, I'm loading the hashes on startup, and the second rule doesn't run. :( If I

Re: [Simple-evcorr-users] Defining a Map for Data - SOLVED

2011-10-19 Thread Justin J. Novack
Again, thank you John, David, et. al. My full solution is posted for reference. Please feel free to include in documentation. /etc/sec/friendlynames.txt GigabitEthernet1/37=TEST SERVER GigabitEthernet3/39=IMPORTANT SERVER /etc/sec/testing.sec === type=Single

Re: [Simple-evcorr-users] Defining a Map for Data - SOLVED

2011-10-19 Thread david
On Wed, 19 Oct 2011, Justin J. Novack wrote: Again, thank you John, David, et. al. My full solution is posted for reference. Please feel free to include in documentation. /etc/sec/friendlynames.txt GigabitEthernet1/37=TEST SERVER GigabitEthernet3/39=IMPORTANT SERVER