Hi All,
I'm using the RegExp to parse some IMail Logs so that I can upload it to a
database and manage it to create special reports.
I did everything OK. The 20 logs worked fine, but in one o another, where
normally a process take just 2 minutos to do the Execute, do not stop...
took the regular CPU usage and do not stop for more than 16 hours, when I
stopped it at Task Manager.
The average of log files was about 8MB... but it worked fine with 20MB
too... took, about 0 minutos to execute.
Follow the sample code that I'm using.
Set regEx = New RegExp
REM
=======================================================================
REM Processa Leitura de Mensagens pelo IMAP4 e POP3
REM 07:21 00:02 IMAP4 (00000A34) logon success for zevallos
zevallos.com.br from 200.217.215.158
REM 07:21 00:03 IMAP4 (00000A34) logoff for zevallos R:100, D:100, P:0
REM
REM 07:21 00:03 POP3D (00000E48) logon success for autodestaque
diariodopara.com.br from 10.10.1.31
REM 07:21 00:03 POP3D (00000e48) logoff for autodestaque R:0, D:0, P:0
WScript.Echo "Processando Leitura de Mensagens pelo IMAP4 e POP3"
WScript.Echo
regEx.Pattern = "(.*:.*) (.*:.*) (POP3D|IMAP4) \((.*)\) logon success for
(.*) (.*) from (.*)\n"
regEx.IgnoreCase = True
regEx.Global = True
WScript.Echo "Search: " & Now()
Set Matches = regEx.Execute(strLogFile)
WScript.Echo " - " & Now() & " - Ítens encontrados: " & Matches.Count
Abraços,
Ruben Zevallos Jr. [ruben@zevallos.com]
+55 91 8116-7668
-------------------------------------------
Instant Messengers
Yahoo: Zevallos
AIM: RubenZevallosJr
ICQ: 2402977
MSN: RubenZevallos@hotmail.com
-------------------------------------------
HiperTools® 3.0 Developer > http://www.hipertools.com.br/
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 8/20/2003