Re: radius parsing

2002-08-15 Thread Hernan
radius log and also get the telephone number,disconnect time connect time and a i can' nt get the regexp to work properly ,after extracting the lines that containts the mentioned parameters i need to print them out to stdout or to a file, Thanks again Hernan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

radius parsing

2002-08-15 Thread Hernan
*/, $log_entry) { # grab the name/value pairs and save to a hash /^(\w+)\s*(.*)/ and $data{$1} = $2 and next; } # grab what you need from the hash print "DATE: $data{Date}\n"; print "NAS-IP-Address : $data{NAS-IP-Address }\n"; # etc... Any ideas on how to adecuate the regexp? Thanks in advance,sorry for the long mail Hernan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

cisco regexp

2002-07-30 Thread Hernan Marcelo Salvarezza
tgT]+) ..* /xo; Sorry for the long mail,any ideas?,thanks in advance Hernan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

cisco log parsing

2002-05-30 Thread Hernan Marcelo Salvarezza
;; } else { print "YESYESYES!"; print "not Found. $_\n" ; } And it gives out the same ouput,so it seems that it always goes directly into the else.. it does "print Not Found $_" and prints the following output: It gives the same output with or without the

RE: cisco log parsing

2002-05-30 Thread Hernan Marcelo Salvarezza
;; } else { print "YESYESYES!"; print "not Found. $_\n" ; } And it gives out the same ouput,so it seems that it always goes directly into the else.. it does "print Not Found $_" and prints the following output: It gives the same output with or without the

Re: reading a file line by line

2002-03-04 Thread Hernan Freschi
and it's the filehandle for standard input (be it keyboard, pipe or file). Hernan Freschi "Jon Serra" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED].; > Greetings, I am trying to read a text file into a scalar variable line by line > until EOF or a sea

Re: Re[2]: Sockets and NNTP

2002-03-04 Thread Hernan Freschi
well... just because I wanted to do it myself :) (laziness?... i'm not a good programer then ;). never mind, i'm now using NNTPClient.pm, thanks anyway. "Daniel Gardner" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED].; > Monday, March 04, 2002

Re: Sockets and NNTP

2002-03-03 Thread Hernan Freschi
I already did, but I dont understand it,... it uses objects and I don't know them. "Daniel Gardner" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED].; > > Sunday, March 03, 2002, 1:11:39 AM, Hernan Freschi wrote: > > I wrote a little script

Sockets and NNTP

2002-03-03 Thread Hernan Freschi
or input (looks like). For example, it works on nntp.perl.org, but not on news.microsoft.com. I tried \r\f instead of \n but it doesn't work either. News:NNTPClient is NOT an option (or any other module for the matter). Can anyone help me? Thank you. Hernan Freschi -- To unsubscribe, e-ma

convert hexa to text

2001-09-24 Thread Hernan
Folks I need to know how can get to convert a hexadecimal string to text, there are some function or something, thanks!! sorry by my english hernan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]