[erlang-questions] parsing radius detail file with time stamp
Wed Jun 13 10:58:49 CEST 2007
I'm attempting to parse a radius detail file using yecc. It seems that
leex is not widely available leading to manually writing a scanner.
Having not done much with parse at this level before I would like to
avoid manually writing anything to do with parsing a little longer. Does
anyone have any suggestions on how to parse a file, using yecc or any
other method, which looks like this?
Fri Dec 5 18:32:09 2000
Acct-Session-Id = "2193976896017"
User-Name = "e2"
Acct-Status-Type = Stop
Acct-Authentic = RADIUS
Acct-Output-Octets = 5382
Acct-Input-Octets = 7761
Service-Type = Framed-User
Framed-Protocol = PPP
Framed-IP-Address = 184.108.40.206
Acct-Session-Time = 1905
NAS-IP-Address = 220.127.116.11
NAS-Port-Id = 8
Acct-Delay-Time = 0
Timestamp = 976897929
Request-Authenticator = Unverified
thanks in advance,
More information about the erlang-questions