From bogus@does.not.exist.com Mon May 28 02:02:21 2007 From: bogus@does.not.exist.com () Date: Mon, 28 May 2007 02:02:21 -0000 Subject: No subject Message-ID: time. Write an API which provides you these logs one line at a time (if its not previously available). Discard the timestamp from the lines you are interested in with strchr The separate the sender-->receiver part . The remaining data in the line is the statements spoken. I am not really recommending RegEx as the strings provided here as the data to be parsed seems quite simple and "meant" to be parsed :-) Though you can always use them or even Python as suggested by David. Hope this helps. Arjun On 7/21/07, Zach wrote: > On 7/20/07, Arjun satish wrote: > > > > Can you give an example of the text file and the messages you are looking > > for? Then probably we can you more core info. > > Sure. There is 2 different log formats. I will show each (each > corresponds to a different type of game server): > > Type 1: > > Server sending PING packets at 2 second intervals 21:51:59 > Welcome aboard Ensign! 21:52:00 > Sending short packet request 21:52:00 > RSA v2.0 CLIENT 21:52:01 > You have very important messages, Captain! 21:52:01 > 21:52:01: F5->ALL Ensign Yoda is now F5 ( Yoda at pitts-69-72-109-139.dynamic-dial > ) > 21:52:01: GOD->F5 ************* READ THIS ** READ THIS ** READ THIS ********** > ******** > 21:52:01: GOD->F5 This is a clue server, you MUST read messages on the game > 21:52:01: GOD->F5 To verify, send the answer of the following question to your > self. > 21:52:01: GOD->F5 How many core planets does each team start with? > 21:52:01: GOD->F5 1, 5, 10 > 21:52:01: GOD->F5 ************************************************************ > ******** > Sending variable and short packets. 21:52:01 -- And it's whispered that soon, if we all call the tune, Then the piper will lead us to reason And a new day will dawn for those who stand long And the forest will echo with laughter http://freeshells.ch/~phoenix ------=_Part_112402_29133559.1185029176019 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Well,

From the looks of it, you may get these logs from a server one line at a time. Write an API which provides you these logs one line at a time (if its not previously available). Discard the timestamp from the lines you are interested in with strchr

The separate the sender-->receiver part . The remaining data in the line is the statements spoken.

I am not really recommending RegEx as the strings provided here as the data to be parsed seems quite simple and "meant" to be parsed :-) Though you can always use them or even Python as suggested by David.

Hope this helps.

Arjun

On 7/21/07, Zach <netrek at gmail.com> wrote:
> On 7/20/07, Arjun satish <arjun.satish at gmail.com > wrote:
> >
> > Can you give an example of the text file and the messages you are looking
> > for? Then probably we can you more core info.
>
> Sure. There is 2 different log formats. I will show each (each
> corresponds to a different type of game server):
>
> Type 1:
>
> Server sending PING packets at 2 second intervals 21:51:59
> Welcome aboard Ensign! 21:52:00
> Sending short packet request 21:52:00
> RSA v2.0 CLIENT 21:52:01
> You have very important messages, Captain! 21:52:01
> 21:52:01:  F5->ALL  Ensign Yoda is now F5 (Yoda at pitts-69-72-109-139.dynamic-dial
> )
> 21:52:01: GOD->F5   ************* READ THIS ** READ THIS ** READ THIS **********
> ********
> 21:52:01: GOD->F5   This is a clue server, you MUST read messages on the game
> 21:52:01: GOD->F5   To verify, send the answer of the following question to your
> self.
> 21:52:01: GOD->F5   How many core planets does each team start with?
> 21:52:01: GOD->F5   1, 5, 10
> 21:52:01: GOD->F5   ************************************************************
> ********
> Sending variable and short packets.  21:52:01

--
And it's whispered that soon, if we all call the tune,
Then the piper will lead us to reason
And a new day will dawn for those who stand long
And the forest will echo with laughter

http://freeshells.ch/~phoenix
------=_Part_112402_29133559.1185029176019--