summaryrefslogtreecommitdiff
path: root/fs_radlog/fs_radlogd
diff options
context:
space:
mode:
authorcvs2git <cvs2git>1998-11-07 10:24:26 +0000
committercvs2git <cvs2git>1998-11-07 10:24:26 +0000
commit48e7e549a27a76c357d50dd637e7ad5a29b9d43f (patch)
treee61ddacc0b1d6248ccfc61346f7f36fbb6723e56 /fs_radlog/fs_radlogd
parent47806ec845818ba69604e0452e7c7b25d62f0772 (diff)
parent4c9347994ca4e1aefdb622d9f51ac8687e6a177b (diff)
This commit was manufactured by cvs2svn to create tag 'freeside_stable'.freeside_stable
Diffstat (limited to 'fs_radlog/fs_radlogd')
-rwxr-xr-xfs_radlog/fs_radlogd51
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);
-}
-
-