Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!clyde!cbosgd!mandrill!hal!ncoast!allbery From: jv@mh.nl.UUCP (Johan Vromans) Newsgroups: comp.sources.misc Subject: submission for comp.sources.misc Message-ID: <5642@ncoast.UUCP> Date: Sat, 14-Nov-87 15:34:49 EST Article-I.D.: ncoast.5642 Posted: Sat Nov 14 15:34:49 1987 Date-Received: Mon, 16-Nov-87 04:27:31 EST Sender: allbery@ncoast.UUCP Lines: 425 Approved: allbery@ncoast.UUCP X-Archive: comp.sources.misc/8711/9 Some time ago, someone posted somewhere a shell script to generate UUCP reports from UUCP files. I don't know who, when and where, but I made the script running on our systems. The script took too long to complete, so I rewrote the script in C. This program has not been adapted to SVR3 (not having such a system). It is not perfect either. I added some code to generate weekly reports (using SYSLOG.WEEK). Take it for what it is worth -- it generates fine reports on our systems. Whoever wrote the shell script deserves the honour - I only converted it. Remarks and fixes are welcome. -- Real-Name: Johan Vromans | jv@mh.nl via European backbone Multihouse N.V., Gouda, The Netherlands | uucp: ..{uunet!}mcvax!mh.nl!jv "Its better to light a candle than to curse the darkness" ---------------- CUT HERE ---------------- /* uucpstat.c - to print the UUCP transaction statistics (aap 7/9/87) * for System V Release 2 or 3 formatted UUCP transaction files * Version 1.0 * * This program will process the uucp transactions for each node and report * total transaction statistics. Processing is performed on the file $UUCP_LOG * which defaults to: * /usr/spool/uucp/SYSLOG (Rlse 2) or /usr/spool/uucp/.Admin/xferstats (Rlse 3). * Processing defaults to statistics for the current day. Options allow * processing of all transactions found (usually the current week's * transactions are maintained) or a specific day's transactions. * Output is directed to standard output. * * INSTALLATION NOTES - * * uucp.stat is non-intrusive and should be installed with 755 permissions. * Set the variable: $RLSE_LVL to the System V major release level that * you are running prior to installation. * * syntax: uucp.stat [