diff options
author | cvs2git <cvs2git> | 2000-02-02 20:22:20 +0000 |
---|---|---|
committer | cvs2git <cvs2git> | 2000-02-02 20:22:20 +0000 |
commit | 982d8d614ddcd9c5746f0bc7aa697f2337cc1adb (patch) | |
tree | 230b4abb5c02c10c965d2c6613aae8aaec90bde0 /fs_radlog | |
parent | 3bfec7cf75a1a4eb4da1cdf8c64003bd6babcd81 (diff) | |
parent | 80ba0c074354875c288c143721af08a0a5d02e42 (diff) |
This commit was manufactured by cvs2svn to create branchfreeside_1_2_3_pci_mods
'freeside_1_2_3_pci_mods'.
Diffstat (limited to 'fs_radlog')
-rwxr-xr-x | fs_radlog/fs_radlogd | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/fs_radlog/fs_radlogd b/fs_radlog/fs_radlogd deleted file mode 100755 index 74c2af361..000000000 --- a/fs_radlog/fs_radlogd +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/perl -Tw -# -# ivan@sisd.com 98-mar-23 - -use strict; -use Date::Parse; #but hopefully not - -$|=1; - -my($file,$pos)=@_; -open(FILE,"<$file") or die "Can't open $file: $!"; -seek(FILE,$pos,0) or die "Can't seek: $!"; - -my($datestr); -my(%param); - -$SIG{'HUP'} = sub { print "EOF\n"; exit; }; - -while (1) { - - while (<FILE>) { - next if /^$/; - if ( /^\S/ ) { - chop($datestr=$_); - undef %param; - } else { - warn "Unexpected line: $_"; - } - while (<FILE>) { - if ( /^$/ ) { - #if ( $param{'Acct-Status-Type'} eq 'Stop' ) { - print join("\t", - tell FILE, - %param, - ),"\n"; - #} - last; - } elsif ( /^\s+([\w\-]+)\s\=\s\"?([\w\.\-]+)\"?\s*$/ ) { - $param{$1}=$2; - } else { - warn "Unexpected line: $_"; - } - - } - - } - sleep 1; - seek(FILE,0,1); -} - - |