Re: [Wtr-general] [OT] - array nightmare

2007-04-17 Thread Chris McMahon
> I'm not comfortable with truncating the original file either. What I > would like to do is get the latest data, see what's not in the main > file, and append it. I'm reading this sentence as a set of requirements. Assuming that the arrays are small enough to not blow out the RAM on the machine,

Re: [Wtr-general] [OT] - array nightmare

2007-04-17 Thread Bret Pettichord
Walter Kruse wrote: > Anyway, as I said, off topic so don't worry too much - this solves a > sort-term problem. > Just to be clear. I don't consider this line of questions to be off topic. Yes technically they are Ruby questions rather than Watir questions, but the are welcome on this forum.

Re: [Wtr-general] [OT] - array nightmare

2007-04-16 Thread Walter Kruse
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris McMahon Sent: 16 April 2007 06:11 PM To: wtr-general@rubyforge.org Subject: Re: [Wtr-general] [OT] - array nightmare > The new array replaces all the data previously in the master log file. I get &g

Re: [Wtr-general] [OT] - array nightmare

2007-04-16 Thread Chris McMahon
> The new array replaces all the data previously in the master log file. I get > a lot of redundant whitespace for some reason. It really is a hack – there > must be a better way to do it… > I'm not sure what the expected result here should be. Seems like a reasonable approach. What part is the

[Wtr-general] [OT] - array nightmare

2007-04-16 Thread Walter Kruse
Hi list Off topic, but I am sure there is a better way to do what I'm doing. As my test script runs, I have a script which reads the windows event log every 5 minutes and produces three flat files with the output according to different criteria. The way I read the logs is with Microsoft's dump