It worked with this not-to-save method - which should be in real application.
Thanks to Jeff, Risto, and Patrick, Alicia -----Original Message----- From: Jeff Schroeder [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2008 1:50 PM To: Cao, Lixia Cc: [email protected] Subject: Re: [Simple-evcorr-users] -tail option when file is modified On Fri, Jun 13, 2008 at 8:40 AM, Cao, Lixia <[EMAIL PROTECTED]> wrote: > Hello, > > I have a question on the -tail option when using sec.pl. > > If I have the log file open, now run the sec.pl script, the script will > wait for input. Modify the log file, say, append a line at the end of > file, then run sec.pl again, the output will show the following: > > Input file /apollo/staging/router/scripts/automation/test.log has been > recreated > Shuffled /apollo/staging/router/scripts/automation/test.log, reopening > and processing from the start > > Then it will write all matches of the entire file. How are you appending text? Try something like this: echo "a line that will match your rules" >> logfile Sec shouldn't re-read the entire file from my experience with it. > > Question: > > Shouldn't the script only output what's been added? Meaning, why it > thinks the file has been recreated? -- Jeff Schroeder Don't drink and derive, alcohol and analysis don't mix. http://www.digitalprognosis.com ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Simple-evcorr-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users
