From 7ceec60a3fa7023ef6780b758c52c2fe956e83a2 Mon Sep 17 00:00:00 2001 From: danw Date: Fri, 29 Jan 1999 18:38:35 +0000 Subject: [PATCH] update for printers table instead of printcap --- backup/report.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backup/report.sh b/backup/report.sh index 36984eb0..e13f227b 100644 --- a/backup/report.sh +++ b/backup/report.sh @@ -42,17 +42,17 @@ delete $TYPES{"NONE"}; printf("%5d Clusters\n\n", $total); -open(PRINTCAP, "printcap") || die "Cannot open printcap file for input.\n"; +open(PRINTERS, "printers") || die "Cannot open printers file for input.\n"; $total = 0; -while () { - split(/\|/, $_, 7); - if ($_[5]) { $auth++; } +while () { + split(/\|/, $_, 11); + if ($_[9]) { $auth++; } $total++; } -close(PRINTCAP); +close(PRINTERS); printf("%5d Printers, %d with authentication (%d%%).\n\n", $total, $auth, (100 * $auth + $total/2)/$total); -- 2.45.2