/usr/share/doc/HOWTO/de-html/DE-UUCP-HOWTO-13.html is in doc-linux-de 2003.10-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.65">
<TITLE>Linux UUCP HOWTO: Nützliche Hilfsprogramme </TITLE>
<LINK HREF="DE-UUCP-HOWTO-14.html" REL=next>
<LINK HREF="DE-UUCP-HOWTO-12.html" REL=previous>
<LINK HREF="DE-UUCP-HOWTO.html#toc13" REL=contents>
</HEAD>
<BODY>
<A HREF="DE-UUCP-HOWTO-14.html"><IMG SRC="next.png" ALT="Weiter"></A>
<A HREF="DE-UUCP-HOWTO-12.html"><IMG SRC="prev.png" ALT="Zurück"></A>
<A HREF="DE-UUCP-HOWTO.html#toc13"><IMG SRC="toc.png" ALT="Inhalt"></A>
<HR>
<H2><A NAME="s13">13.</A> <A HREF="DE-UUCP-HOWTO.html#toc13">Nützliche Hilfsprogramme </A><!--UUCP!Tools--></H2>
<H2><A NAME="ss13.1">13.1</A> <A HREF="DE-UUCP-HOWTO.html#toc13.1">Was ist heute schon passiert (Shellprogramm)?</A>
</H2>
<P>Ich habe mir ein kleines Programm geschrieben, daß mir anzeigt, was
heute schon im Zusammenhang mit UUCP passiert ist.
Das Programm durchsucht die Datei <CODE>/var/spool/uucp/Log</CODE>
und »grept« alles raus, was heute passiert ist ;-).</P>
<P><B>uucpstatus.sh:</B></P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
#!/bin/sh
/bin/cat /var/spool/uucp/Log | \
/usr/bin/grep `date '+%Y-%m-%d'` | \
grep -e "Call complete" -e "Receiving rmail" \
-e "Login successful" -e "Queuing" \
-e "Handshake" -e "Error" -e "ERROR" -e "Protocol"
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P><B>Beispielausgabe:</B></P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
uux tpki root (1998-06-17 10:06:29.49 360) Queuing rnews (D.00IK)
uucico tpki - (1998-06-17 10:06:35.68 362) ERROR: Chat script failed: Got "BUSY"
uucico tpki - (1998-06-17 10:06:52.05 363) Login successful
uucico tpki - (1998-06-17 10:06:52.71 363) Handshake successful (protocol 'i' sending packet/window 1024/16 receiving 2048/7)
uucico tpki mail (1998-06-17 10:06:54.41 363) Receiving rmail newsadmin (552 bytes)
uucico tpki news (1998-06-17 10:06:54.86 363) Receiving rmail news (3395 bytes)
uucico tpki mail (1998-06-17 10:06:55.30 363) Receiving rmail newsadmin (3512 bytes)
uucico tpki uucp (1998-06-17 10:06:55.59 363) Receiving rmail ttt (1085 bytes)
uucico tpki uucp (1998-06-17 10:06:56.04 363) Receiving rmail newsadmin (1459 bytes)
uucico tpki uucp (1998-06-17 10:06:56.24 363) Receiving rmail newsadmin (1390 bytes)
uucico tpki uucp (1998-06-17 10:06:56.66 363) Receiving rmail newsadmin (2431 bytes)
uucico tpki uucp (1998-06-17 10:06:57.25 363) Receiving rmail ttt (1676 bytes)
uucico tpki uucp (1998-06-17 10:06:57.38 363) Receiving rmail ttt (1318 bytes)
uucico tpki mail (1998-06-17 10:06:57.72 363) Receiving rmail newsadmin (661 bytes)
uucico tpki mail (1998-06-17 10:06:57.76 363) Receiving rmail newsadmin (552 bytes)
uucico tpki mail (1998-06-17 10:06:58.31 363) Receiving rmail newsadmin (19672 bytes)
uucico tpki mail (1998-06-17 10:07:00.60 363) Receiving rmail newsadmin (683 bytes)
uucico tpki mail (1998-06-17 10:08:31.13 363) Receiving rmail newsadmin (1084 bytes)
uucico tpki - (1998-06-17 10:08:31.32 363) Protocol 'i' packets: sent 91, resent 0, received 452
uucico tpki - (1998-06-17 10:08:31.46 363) Call complete (101 seconds 720823 bytes 7136 bps)
uux tpki hscholz (1998-06-17 10:08:56.93 433) Queuing rmail zoc@toppoint.de (D.00IL)
uux tpki news (1998-06-17 11:00:06.93 665) Queuing rnews (D.00IM)
uux tpki hscholz (1998-06-17 11:47:22.71 1142) Queuing rmail lars.fruehsorge@ploe.comcity.de (D.00IN)
uux tpki news (1998-06-17 13:00:03.44 8136) Queuing rnews (D.00IO)
</PRE>
</CODE></BLOCKQUOTE>
</P>
<H2><A NAME="ss13.2">13.2</A> <A HREF="DE-UUCP-HOWTO.html#toc13.2">Was ist heute schon passiert (CGI-Skript für WWW-Server)?</A>
</H2>
<P>Das gleiche, was per Shell möglich ist, kann man natürlich auch
als HTML-Seite auf dem eigenen WWW-Server anzeigen lassen.
Es müssen dafür nur die Standard-HTML-Header um die Seite
herumgebaut werden.</P>
<P><B>uucpstatus.cgi:</B>
<BLOCKQUOTE><CODE>
<PRE>
#!/bin/sh
echo "Content-type: text/html"
echo
echo
echo "<html><head><title>UUCP-Statistik</title></head>"
echo "<body bgcolor=\"#FFFFFF\"><pre>"
/bin/cat /var/spool/uucp/Log | \
/usr/bin/grep `date '+%Y-%m-%d'` | \
grep -e "Call complete" -e "Receiving rmail" \
-e "Login successful" -e "Queuing" -e "Handshake" \
-e "Error" -e "ERROR" -e "Protocol"
echo "</pre></body></html>"
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>Die Ausgabe sieht aus wie im Shell, mit dem Unterschied,
daß es eine HTML-Datei ist.</P>
<HR>
<A HREF="DE-UUCP-HOWTO-14.html"><IMG SRC="next.png" ALT="Weiter"></A>
<A HREF="DE-UUCP-HOWTO-12.html"><IMG SRC="prev.png" ALT="Zurück"></A>
<A HREF="DE-UUCP-HOWTO.html#toc13"><IMG SRC="toc.png" ALT="Inhalt"></A>
</BODY>
</HTML>
|