home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
You can browse this item here: logflsts.tar
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| tar archive
| default
| |
99%
| file
| tar archive (V7), file logfile-stats/, mode 755 , uid 243 , gid 12 , size 0 , seconds 4404055032
| default
| |
98%
| file
| data
| default
| |
100%
| siegfried
| x-fmt/265 Tape Archive Format
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| Pre-POSIX tar archive
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 6c 6f 67 66 69 6c 65 2d | 73 74 61 74 73 2f 00 00 |logfile-|stats/..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 20 32 |.... 7|55 . 2|
|00000070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 34 30 34 30 35 35 | 0 | 4404055|
|00000090| 30 33 32 20 20 20 36 35 | 36 35 00 20 00 00 00 00 |032 65|65. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 6c 6f 67 66 69 6c 65 2d | 73 74 61 74 73 2f 53 68 |logfile-|stats/Sh|
|00000210| 61 72 46 69 6c 65 2e 48 | 65 61 64 65 72 73 00 00 |arFile.H|eaders..|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000280| 20 20 20 32 34 32 31 20 | 20 34 34 30 34 30 35 35 | 2421 | 4404055|
|00000290| 30 33 33 20 20 31 31 36 | 34 34 00 20 00 00 00 00 |033 116|44. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 3d 3d 3d 20 6c 6f 67 66 | 69 6c 65 2d 73 74 61 74 |=== logf|ile-stat|
|00000410| 73 2e 73 68 61 72 31 20 | 3d 3d 3d 3d 3d 3d 3d 3d |s.shar1 |========|
|00000420| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000430| 3d 0a 20 36 2d 4f 63 74 | 2d 38 35 20 30 32 3a 32 |=. 6-Oct|-85 02:2|
|00000440| 32 3a 30 31 2d 4d 44 54 | 2c 36 38 34 32 3b 30 30 |2:01-MDT|,6842;00|
|00000450| 30 30 30 30 30 30 30 30 | 30 31 0a 52 65 74 75 72 |00000000|01.Retur|
|00000460| 6e 2d 50 61 74 68 3a 20 | 3c 75 6e 69 78 2d 73 6f |n-Path: |<unix-so|
|00000470| 75 72 63 65 73 2d 72 65 | 71 75 65 73 74 40 42 52 |urces-re|quest@BR|
|00000480| 4c 2e 41 52 50 41 3e 0a | 52 65 63 65 69 76 65 64 |L.ARPA>.|Received|
|00000490| 3a 20 66 72 6f 6d 20 42 | 52 4c 2d 54 47 52 2e 41 |: from B|RL-TGR.A|
|000004a0| 52 50 41 20 62 79 20 53 | 49 4d 54 45 4c 32 30 2e |RPA by S|IMTEL20.|
|000004b0| 41 52 50 41 20 77 69 74 | 68 20 54 43 50 3b 20 53 |ARPA wit|h TCP; S|
|000004c0| 75 6e 20 36 20 4f 63 74 | 20 38 35 20 30 32 3a 32 |un 6 Oct| 85 02:2|
|000004d0| 31 3a 34 36 2d 4d 44 54 | 0a 52 65 63 65 69 76 65 |1:46-MDT|.Receive|
|000004e0| 64 3a 20 66 72 6f 6d 20 | 75 73 65 6e 65 74 20 62 |d: from |usenet b|
|000004f0| 79 20 54 47 52 2e 42 52 | 4c 2e 41 52 50 41 20 69 |y TGR.BR|L.ARPA i|
|00000500| 64 20 61 61 31 33 39 35 | 36 3b 20 36 20 4f 63 74 |d aa1395|6; 6 Oct|
|00000510| 20 38 35 20 32 3a 35 34 | 20 45 44 54 0a 46 72 6f | 85 2:54| EDT.Fro|
|00000520| 6d 3a 20 4d 69 6b 65 20 | 57 65 78 6c 65 72 20 3c |m: Mike |Wexler <|
|00000530| 6d 69 6b 65 40 70 65 72 | 65 67 72 69 6e 65 2e 75 |mike@per|egrine.u|
|00000540| 75 63 70 3e 0a 4e 65 77 | 73 67 72 6f 75 70 73 3a |ucp>.New|sgroups:|
|00000550| 20 6e 65 74 2e 73 6f 75 | 72 63 65 73 0a 53 75 62 | net.sou|rces.Sub|
|00000560| 6a 65 63 74 3a 20 55 55 | 43 50 20 4c 4f 47 46 49 |ject: UU|CP LOGFI|
|00000570| 4c 45 20 61 6e 61 6c 79 | 7a 65 72 0a 4d 65 73 73 |LE analy|zer.Mess|
|00000580| 61 67 65 2d 49 44 3a 20 | 3c 31 39 33 40 70 65 72 |age-ID: |<193@per|
|00000590| 65 67 72 69 6e 65 2e 55 | 55 43 50 3e 0a 44 61 74 |egrine.U|UCP>.Dat|
|000005a0| 65 3a 20 33 30 20 53 65 | 70 20 38 35 20 32 30 3a |e: 30 Se|p 85 20:|
|000005b0| 34 31 3a 35 31 20 47 4d | 54 0a 54 6f 3a 20 20 20 |41:51 GM|T.To: |
|000005c0| 20 20 20 20 75 6e 69 78 | 2d 73 6f 75 72 63 65 73 | unix|-sources|
|000005d0| 40 42 52 4c 2d 54 47 52 | 2e 41 52 50 41 0a 0a 48 |@BRL-TGR|.ARPA..H|
|000005e0| 65 72 65 20 69 73 20 61 | 20 6d 6f 64 69 66 69 63 |ere is a| modific|
|000005f0| 61 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 4c 4f 47 |ation of| the LOG|
|00000600| 46 49 4c 45 20 61 6e 61 | 6c 79 7a 65 72 20 74 68 |FILE ana|lyzer th|
|00000610| 61 74 0a 77 61 73 20 72 | 65 63 65 6e 74 6c 79 20 |at.was r|ecently |
|00000620| 70 6f 73 74 65 64 2e 20 | 49 74 20 77 6f 72 6b 73 |posted. |It works|
|00000630| 20 6f 6e 20 53 79 73 74 | 65 6d 20 56 20 6e 6f 77 | on Syst|em V now|
|00000640| 2e 20 20 49 20 61 6d 20 | 61 6c 73 6f 0a 69 6e 63 |. I am |also.inc|
|00000650| 6c 75 64 65 64 20 61 6e | 20 61 77 6b 20 20 73 63 |luded an| awk sc|
|00000660| 72 69 70 74 20 74 68 61 | 74 20 67 69 76 65 73 20 |ript tha|t gives |
|00000670| 73 6f 6d 65 20 75 73 65 | 66 75 6c 20 73 74 61 74 |some use|ful stat|
|00000680| 69 73 74 69 63 73 20 6f | 6e 20 74 68 65 20 53 59 |istics o|n the SY|
|00000690| 53 4c 4f 47 20 66 69 6c | 65 0a 61 6e 64 20 61 20 |SLOG fil|e.and a |
|000006a0| 73 68 65 6c 6c 20 73 63 | 72 69 70 74 20 74 68 61 |shell sc|ript tha|
|000006b0| 74 20 77 69 6c 6c 20 72 | 75 6e 20 62 6f 74 68 20 |t will r|un both |
|000006c0| 6f 66 20 74 68 65 6d 2e | 0a 2d 2d 2d 2d 2d 2d 2d |of them.|.-------|
|000006d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000006e0| 2d 2d 2d 2d 2d 2d 2d 43 | 75 74 20 68 65 72 65 2d |-------C|ut here-|
|000006f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000700| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000710| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 3d 3d 3d 20 6c 6f 67 |--------|.=== log|
|00000720| 66 69 6c 65 2d 73 74 61 | 74 73 2e 73 68 61 72 32 |file-sta|ts.shar2|
|00000730| 20 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d | =======|========|
|00000740| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0a 20 36 2d 4f 63 |========|==. 6-Oc|
|00000750| 74 2d 38 35 20 30 32 3a | 33 37 3a 35 32 2d 4d 44 |t-85 02:|37:52-MD|
|00000760| 54 2c 39 33 34 3b 30 30 | 30 30 30 30 30 30 30 30 |T,934;00|00000000|
|00000770| 30 31 0a 52 65 74 75 72 | 6e 2d 50 61 74 68 3a 20 |01.Retur|n-Path: |
|00000780| 3c 75 6e 69 78 2d 73 6f | 75 72 63 65 73 2d 72 65 |<unix-so|urces-re|
|00000790| 71 75 65 73 74 40 42 52 | 4c 2e 41 52 50 41 3e 0a |quest@BR|L.ARPA>.|
|000007a0| 52 65 63 65 69 76 65 64 | 3a 20 66 72 6f 6d 20 42 |Received|: from B|
|000007b0| 52 4c 2d 54 47 52 2e 41 | 52 50 41 20 62 79 20 53 |RL-TGR.A|RPA by S|
|000007c0| 49 4d 54 45 4c 32 30 2e | 41 52 50 41 20 77 69 74 |IMTEL20.|ARPA wit|
|000007d0| 68 20 54 43 50 3b 20 53 | 75 6e 20 36 20 4f 63 74 |h TCP; S|un 6 Oct|
|000007e0| 20 38 35 20 30 32 3a 33 | 37 3a 34 39 2d 4d 44 54 | 85 02:3|7:49-MDT|
|000007f0| 0a 52 65 63 65 69 76 65 | 64 3a 20 66 72 6f 6d 20 |.Receive|d: from |
|00000800| 75 73 65 6e 65 74 20 62 | 79 20 54 47 52 2e 42 52 |usenet b|y TGR.BR|
|00000810| 4c 2e 41 52 50 41 20 69 | 64 20 61 30 31 33 39 36 |L.ARPA i|d a01396|
|00000820| 35 3b 20 36 20 4f 63 74 | 20 38 35 20 32 3a 35 34 |5; 6 Oct| 85 2:54|
|00000830| 20 45 44 54 0a 46 72 6f | 6d 3a 20 4d 69 6b 65 20 | EDT.Fro|m: Mike |
|00000840| 57 65 78 6c 65 72 20 3c | 6d 69 6b 65 40 70 65 72 |Wexler <|mike@per|
|00000850| 65 67 72 69 6e 65 2e 75 | 75 63 70 3e 0a 4e 65 77 |egrine.u|ucp>.New|
|00000860| 73 67 72 6f 75 70 73 3a | 20 6e 65 74 2e 73 6f 75 |sgroups:| net.sou|
|00000870| 72 63 65 73 0a 53 75 62 | 6a 65 63 74 3a 20 52 65 |rces.Sub|ject: Re|
|00000880| 3a 20 55 55 43 50 20 4c | 4f 47 46 49 4c 45 20 61 |: UUCP L|OGFILE a|
|00000890| 6e 61 6c 79 7a 65 72 0a | 4d 65 73 73 61 67 65 2d |nalyzer.|Message-|
|000008a0| 49 44 3a 20 3c 31 39 39 | 40 70 65 72 65 67 72 69 |ID: <199|@peregri|
|000008b0| 6e 65 2e 55 55 43 50 3e | 0a 44 61 74 65 3a 20 31 |ne.UUCP>|.Date: 1|
|000008c0| 20 4f 63 74 20 38 35 20 | 30 31 3a 30 38 3a 32 32 | Oct 85 |01:08:22|
|000008d0| 20 47 4d 54 0a 4b 65 79 | 77 6f 72 64 73 3a 20 55 | GMT.Key|words: U|
|000008e0| 55 43 50 20 4c 4f 47 46 | 49 4c 45 0a 54 6f 3a 20 |UCP LOGF|ILE.To: |
|000008f0| 20 20 20 20 20 20 75 6e | 69 78 2d 73 6f 75 72 63 | un|ix-sourc|
|00000900| 65 73 40 42 52 4c 2d 54 | 47 52 2e 41 52 50 41 0a |es@BRL-T|GR.ARPA.|
|00000910| 0a 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 6c 6f 67 66 69 6c 65 2d | 73 74 61 74 73 2f 73 74 |logfile-|stats/st|
|00000a10| 61 74 73 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ats.....|........|
|00000a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a60| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 20 32 |.... 7|55 . 2|
|00000a70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000a80| 20 20 20 31 32 37 32 20 | 20 34 34 30 34 30 35 35 | 1272 | 4404055|
|00000a90| 30 32 37 20 20 20 37 37 | 34 34 00 20 00 00 00 00 |027 77|44. ....|
|00000aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 23 21 2f 62 69 6e 2f 73 | 68 0a 23 20 73 74 61 74 |#!/bin/s|h.# stat|
|00000c10| 73 20 2d 20 64 72 69 76 | 65 72 20 66 6f 72 20 6c |s - driv|er for l|
|00000c20| 6f 67 66 69 6c 65 2e 61 | 77 6b 20 61 6e 64 20 73 |ogfile.a|wk and s|
|00000c30| 79 73 6c 6f 67 2e 61 77 | 6b 0a 23 20 0a 23 20 55 |yslog.aw|k.# .# U|
|00000c40| 53 41 47 45 0a 23 09 73 | 74 61 74 73 0a 23 0a 23 |SAGE.#.s|tats.#.#|
|00000c50| 0a 23 20 53 6f 6d 65 68 | 6f 77 2c 20 63 6f 6d 70 |.# Someh|ow, comp|
|00000c60| 72 65 73 73 20 77 61 69 | 74 73 20 75 6e 74 69 6c |ress wai|ts until|
|00000c70| 20 6e 6f 62 6f 64 79 20 | 69 73 20 75 73 69 6e 67 | nobody |is using|
|00000c80| 20 74 68 65 20 66 69 6c | 65 20 62 65 66 6f 72 65 | the fil|e before|
|00000c90| 20 69 74 0a 23 20 63 6f | 6d 70 72 65 73 73 65 73 | it.# co|mpresses|
|00000ca0| 20 69 74 2e 20 20 54 68 | 69 73 20 69 73 20 6e 69 | it. Th|is is ni|
|00000cb0| 63 65 20 61 6e 64 20 63 | 6f 6e 76 65 6e 69 65 6e |ce and c|onvenien|
|00000cc0| 74 2e 0a 23 0a 23 0a 23 | 20 41 55 54 48 4f 52 0a |t..#.#.#| AUTHOR.|
|00000cd0| 23 09 44 61 76 69 64 20 | 48 65 72 72 6f 6e 20 28 |#.David |Herron (|
|00000ce0| 4e 50 52 20 6c 6f 76 65 | 72 29 0a 23 09 63 62 6f |NPR love|r).#.cbo|
|00000cf0| 73 67 64 21 75 6b 6d 61 | 21 64 61 76 69 64 0a 23 |sgd!ukma|!david.#|
|00000d00| 09 55 6e 69 76 65 72 73 | 69 74 79 20 6f 66 20 4b |.Univers|ity of K|
|00000d10| 65 6e 74 75 63 6b 79 2c | 20 43 6f 6d 70 75 74 65 |entucky,| Compute|
|00000d20| 72 20 53 63 69 65 6e 63 | 65 0a 23 0a 23 20 43 68 |r Scienc|e.#.# Ch|
|00000d30| 61 6e 67 65 73 3a 0a 23 | 09 31 2e 20 54 6f 6f 6b |anges:.#|.1. Took|
|00000d40| 20 6f 75 74 20 69 67 6e | 6f 72 65 20 63 61 70 61 | out ign|ore capa|
|00000d50| 62 69 6c 69 74 79 28 69 | 66 20 79 6f 75 20 77 61 |bility(i|f you wa|
|00000d60| 6e 74 20 69 74 20 70 75 | 74 20 69 74 20 62 61 63 |nt it pu|t it bac|
|00000d70| 6b 20 69 6e 29 0a 23 09 | 32 2e 20 4d 61 64 65 20 |k in).#.|2. Made |
|00000d80| 63 6f 6d 70 61 74 69 62 | 6c 65 20 77 69 74 68 20 |compatib|le with |
|00000d90| 53 79 73 74 65 6d 20 56 | 20 72 65 6c 65 61 73 65 |System V| release|
|00000da0| 20 49 0a 23 0a 23 20 45 | 44 49 54 4f 52 0a 23 09 | I.#.# E|DITOR.#.|
|00000db0| 4d 69 63 68 61 65 6c 20 | 57 65 78 6c 65 72 0a 23 |Michael |Wexler.#|
|00000dc0| 09 74 72 77 72 62 21 66 | 65 6c 69 78 21 70 65 72 |.trwrb!f|elix!per|
|00000dd0| 65 67 72 69 6e 65 21 6d | 69 6b 65 0a 23 09 50 65 |egrine!m|ike.#.Pe|
|00000de0| 72 65 67 72 69 6e 65 20 | 53 79 73 74 65 6d 73 2c |regrine |Systems,|
|00000df0| 20 49 6e 63 0a 23 0a 74 | 61 67 3d 24 24 0a 63 64 | Inc.#.t|ag=$$.cd|
|00000e00| 20 2f 75 73 72 2f 73 70 | 6f 6f 6c 2f 75 75 63 70 | /usr/sp|ool/uucp|
|00000e10| 0a 63 70 20 4c 4f 47 46 | 49 4c 45 20 2f 74 6d 70 |.cp LOGF|ILE /tmp|
|00000e20| 2f 4c 4f 47 46 49 4c 45 | 2e 24 74 61 67 0a 61 77 |/LOGFILE|.$tag.aw|
|00000e30| 6b 20 2d 66 20 6c 6f 67 | 66 69 6c 65 2e 61 77 6b |k -f log|file.awk|
|00000e40| 20 2f 74 6d 70 2f 4c 4f | 47 46 49 4c 45 2e 24 74 | /tmp/LO|GFILE.$t|
|00000e50| 61 67 0a 63 70 20 53 59 | 53 4c 4f 47 20 2f 74 6d |ag.cp SY|SLOG /tm|
|00000e60| 70 2f 53 59 53 4c 4f 47 | 2e 24 74 61 67 0a 61 77 |p/SYSLOG|.$tag.aw|
|00000e70| 6b 20 2d 66 20 73 79 73 | 6c 6f 67 2e 61 77 6b 20 |k -f sys|log.awk |
|00000e80| 2f 74 6d 70 2f 53 59 53 | 4c 4f 47 2e 24 74 61 67 |/tmp/SYS|LOG.$tag|
|00000e90| 0a 72 6d 20 2f 74 6d 70 | 2f 4c 4f 47 46 49 4c 45 |.rm /tmp|/LOGFILE|
|00000ea0| 2e 24 74 61 67 0a 72 6d | 20 2f 74 6d 70 2f 53 59 |.$tag.rm| /tmp/SY|
|00000eb0| 53 4c 4f 47 2e 24 74 61 | 67 0a 20 62 6f 74 68 20 |SLOG.$ta|g. both |
|00000ec0| 6f 66 20 74 68 65 6d 2e | 0a 2d 2d 2d 2d 2d 2d 2d |of them.|.-------|
|00000ed0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000ee0| 2d 2d 2d 2d 2d 2d 2d 43 | 75 74 20 68 65 72 65 2d |-------C|ut here-|
|00000ef0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000f00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000f10| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 3d 3d 3d 20 6c 6f 67 |--------|.=== log|
|00000f20| 66 69 6c 65 2d 73 74 61 | 74 73 2e 73 68 61 72 32 |file-sta|ts.shar2|
|00000f30| 20 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d | =======|========|
|00000f40| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0a 20 36 2d 4f 63 |========|==. 6-Oc|
|00000f50| 74 2d 38 35 20 30 32 3a | 33 37 3a 35 32 2d 4d 44 |t-85 02:|37:52-MD|
|00000f60| 54 2c 39 33 34 3b 30 30 | 30 30 30 30 30 30 30 30 |T,934;00|00000000|
|00000f70| 30 31 0a 52 65 74 75 72 | 6e 2d 50 61 74 68 3a 20 |01.Retur|n-Path: |
|00000f80| 3c 75 6e 69 78 2d 73 6f | 75 72 63 65 73 2d 72 65 |<unix-so|urces-re|
|00000f90| 71 75 65 73 74 40 42 52 | 4c 2e 41 52 50 41 3e 0a |quest@BR|L.ARPA>.|
|00000fa0| 52 65 63 65 69 76 65 64 | 3a 20 66 72 6f 6d 20 42 |Received|: from B|
|00000fb0| 52 4c 2d 54 47 52 2e 41 | 52 50 41 20 62 79 20 53 |RL-TGR.A|RPA by S|
|00000fc0| 49 4d 54 45 4c 32 30 2e | 41 52 50 41 20 77 69 74 |IMTEL20.|ARPA wit|
|00000fd0| 68 20 54 43 50 3b 20 53 | 75 6e 20 36 20 4f 63 74 |h TCP; S|un 6 Oct|
|00000fe0| 20 38 35 20 30 32 3a 33 | 37 3a 34 39 2d 4d 44 54 | 85 02:3|7:49-MDT|
|00000ff0| 0a 52 65 63 65 69 76 65 | 64 3a 20 66 72 6f 6d 20 |.Receive|d: from |
|00001000| 6c 6f 67 66 69 6c 65 2d | 73 74 61 74 73 2f 6c 6f |logfile-|stats/lo|
|00001010| 67 66 69 6c 65 2e 61 77 | 6b 00 00 00 00 00 00 00 |gfile.aw|k.......|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00001080| 20 20 20 37 30 31 30 20 | 20 34 34 30 34 30 35 35 | 7010 | 4404055|
|00001090| 30 33 31 20 20 31 30 37 | 37 34 00 20 00 00 00 00 |031 107|74. ....|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 23 20 6c 6f 67 66 69 6c | 65 2e 61 77 6b 20 2d 2d |# logfil|e.awk --|
|00001210| 20 72 65 61 64 20 61 20 | 75 75 63 70 20 4c 4f 47 | read a |uucp LOG|
|00001220| 46 49 4c 45 20 61 6e 64 | 20 66 69 6e 64 20 6f 75 |FILE and| find ou|
|00001230| 74 20 68 6f 77 20 6c 6f | 6e 67 0a 23 20 77 65 20 |t how lo|ng.# we |
|00001240| 73 70 65 6e 74 20 74 61 | 6c 6b 69 6e 67 20 74 6f |spent ta|lking to|
|00001250| 20 70 61 72 74 69 63 75 | 6c 61 72 20 70 6c 61 63 | particu|lar plac|
|00001260| 65 73 2e 20 20 28 41 6c | 73 6f 2c 20 72 65 6d 65 |es. (Al|so, reme|
|00001270| 6d 62 65 72 73 20 69 66 | 0a 23 20 74 68 65 20 74 |mbers if|.# the t|
|00001280| 69 6d 65 20 73 70 65 6e | 74 20 77 61 73 20 6f 75 |ime spen|t was ou|
|00001290| 72 20 63 61 6c 6c 20 6f | 72 20 74 68 65 69 72 20 |r call o|r their |
|000012a0| 63 61 6c 6c 29 2e 0a 23 | 0a 23 20 54 68 69 73 20 |call)..#|.# This |
|000012b0| 69 73 20 6e 69 63 65 20 | 66 6f 72 3a 20 31 29 20 |is nice |for: 1) |
|000012c0| 4b 6e 6f 77 69 6e 67 20 | 77 68 65 6e 20 79 6f 75 |Knowing |when you|
|000012d0| 20 6d 61 64 65 20 6c 6f | 6e 67 20 64 69 73 74 61 | made lo|ng dista|
|000012e0| 6e 63 65 0a 23 20 63 61 | 6c 6c 73 20 61 6e 64 20 |nce.# ca|lls and |
|000012f0| 77 68 65 72 65 20 74 6f | 2c 20 32 29 20 6b 6e 6f |where to|, 2) kno|
|00001300| 77 69 6e 67 20 68 6f 77 | 20 6d 75 63 68 20 6f 66 |wing how| much of|
|00001310| 20 74 68 65 20 6c 6f 61 | 64 20 62 65 74 77 65 65 | the loa|d betwee|
|00001320| 6e 0a 23 20 79 6f 75 20 | 61 6e 64 20 73 6f 6d 65 |n.# you |and some|
|00001330| 20 73 69 74 65 73 20 79 | 6f 75 27 72 65 20 63 61 | sites y|ou're ca|
|00001340| 72 72 79 69 6e 67 2e 0a | 23 0a 23 0a 23 20 54 68 |rrying..|#.#.# Th|
|00001350| 69 73 20 77 6f 72 6b 73 | 20 77 69 74 68 20 74 68 |is works| with th|
|00001360| 65 20 55 55 43 50 20 6c | 6f 67 20 66 69 6c 65 20 |e UUCP l|og file |
|00001370| 66 6f 72 6d 61 74 20 70 | 72 6f 64 75 63 65 64 20 |format p|roduced |
|00001380| 62 79 20 74 68 65 0a 23 | 20 75 75 63 70 20 64 65 |by the.#| uucp de|
|00001390| 6c 69 76 65 72 65 64 20 | 77 69 74 68 20 42 52 4c |livered |with BRL|
|000013a0| 20 52 65 6c 65 61 73 65 | 20 33 2e 20 20 28 69 2e | Release| 3. (i.|
|000013b0| 65 2e 20 34 2e 32 42 53 | 44 2c 20 69 2e 65 2e 20 |e. 4.2BS|D, i.e. |
|000013c0| 74 68 61 74 0a 23 20 2a | 65 78 74 72 65 6d 65 6c |that.# *|extremel|
|000013d0| 79 2a 20 68 61 63 6b 65 | 64 20 75 70 20 63 6f 6e |y* hacke|d up con|
|000013e0| 67 6c 6f 6d 65 72 61 74 | 69 6f 6e 20 6f 66 20 75 |glomerat|ion of u|
|000013f0| 75 63 70 27 73 20 74 68 | 61 74 20 70 72 6f 6d 70 |ucp's th|at promp|
|00001400| 74 65 64 0a 23 20 74 68 | 65 20 77 72 69 74 69 6e |ted.# th|e writin|
|00001410| 67 20 6f 66 20 68 6f 6e | 65 79 2d 64 61 6e 62 65 |g of hon|ey-danbe|
|00001420| 72 29 2e 20 0a 23 0a 23 | 0a 23 20 55 53 41 47 45 |r). .#.#|.# USAGE|
|00001430| 0a 23 09 61 77 6b 20 2d | 66 20 6c 6f 67 66 69 6c |.#.awk -|f logfil|
|00001440| 65 2e 61 77 6b 20 2f 75 | 73 72 2f 73 70 6f 6f 6c |e.awk /u|sr/spool|
|00001450| 2f 75 75 63 70 2f 4c 4f | 47 46 49 4c 45 0a 23 0a |/uucp/LO|GFILE.#.|
|00001460| 23 20 41 63 74 75 61 6c | 6c 79 20 2d 2d 20 49 20 |# Actual|ly -- I |
|00001470| 77 6f 75 6c 64 20 73 75 | 67 67 65 73 74 20 73 61 |would su|ggest sa|
|00001480| 76 69 6e 67 20 4c 4f 47 | 46 49 4c 45 20 73 6f 6d |ving LOG|FILE som|
|00001490| 65 77 68 65 72 65 20 61 | 6e 64 20 6d 61 6b 65 0a |ewhere a|nd make.|
|000014a0| 23 20 73 75 72 65 20 75 | 75 63 69 63 6f 20 69 73 |# sure u|ucico is|
|000014b0| 20 6e 6f 20 6c 6f 6e 67 | 65 72 20 77 72 69 74 69 | no long|er writi|
|000014c0| 6e 67 20 74 6f 20 69 74 | 2e 20 20 54 68 69 73 20 |ng to it|. This |
|000014d0| 77 61 79 20 79 6f 75 27 | 72 65 20 73 75 72 65 0a |way you'|re sure.|
|000014e0| 23 20 74 68 61 74 20 74 | 68 65 20 64 61 74 61 20 |# that t|he data |
|000014f0| 67 65 6e 65 72 61 74 65 | 64 20 69 73 20 76 61 6c |generate|d is val|
|00001500| 69 64 2e 20 20 57 68 61 | 74 20 49 20 64 6f 20 68 |id. Wha|t I do h|
|00001510| 65 72 65 20 69 73 3a 0a | 23 0a 23 09 73 65 74 20 |ere is:.|#.#.set |
|00001520| 60 64 61 74 65 60 0a 23 | 09 74 61 67 3d 24 32 2e |`date`.#|.tag=$2.|
|00001530| 24 37 0a 23 09 63 64 20 | 2f 75 73 72 2f 73 70 6f |$7.#.cd |/usr/spo|
|00001540| 6f 6c 2f 75 75 63 70 0a | 23 09 6d 76 20 4c 4f 47 |ol/uucp.|#.mv LOG|
|00001550| 46 49 4c 45 20 4f 4c 44 | 2f 4c 4f 47 46 49 4c 45 |FILE OLD|/LOGFILE|
|00001560| 2e 24 7b 74 61 67 7d 0a | 23 09 63 6f 6d 70 72 65 |.${tag}.|#.compre|
|00001570| 73 73 20 4f 4c 44 2f 4c | 4f 47 46 49 4c 45 2e 24 |ss OLD/L|OGFILE.$|
|00001580| 7b 74 61 67 7d 0a 23 09 | 75 6e 63 6f 6d 70 72 65 |{tag}.#.|uncompre|
|00001590| 73 73 20 4f 4c 44 2f 4c | 4f 47 46 49 4c 45 2e 24 |ss OLD/L|OGFILE.$|
|000015a0| 7b 74 61 67 7d 0a 23 09 | 61 77 6b 20 2d 66 20 2f |{tag}.#.|awk -f /|
|000015b0| 75 73 72 2f 6c 69 62 2f | 75 75 63 70 2f 6c 6f 67 |usr/lib/|uucp/log|
|000015c0| 66 69 6c 65 2e 61 77 6b | 20 4f 4c 44 2f 4c 4f 47 |file.awk| OLD/LOG|
|000015d0| 46 49 4c 45 2e 24 7b 74 | 61 67 7d 0a 23 0a 23 20 |FILE.${t|ag}.#.# |
|000015e0| 53 6f 6d 65 68 6f 77 2c | 20 63 6f 6d 70 72 65 73 |Somehow,| compres|
|000015f0| 73 20 77 61 69 74 73 20 | 75 6e 74 69 6c 20 6e 6f |s waits |until no|
|00001600| 62 6f 64 79 20 69 73 20 | 75 73 69 6e 67 20 74 68 |body is |using th|
|00001610| 65 20 66 69 6c 65 20 62 | 65 66 6f 72 65 20 69 74 |e file b|efore it|
|00001620| 0a 23 20 63 6f 6d 70 72 | 65 73 73 65 73 20 69 74 |.# compr|esses it|
|00001630| 2e 20 20 54 68 69 73 20 | 69 73 20 6e 69 63 65 20 |. This |is nice |
|00001640| 61 6e 64 20 63 6f 6e 76 | 65 6e 69 65 6e 74 2e 0a |and conv|enient..|
|00001650| 23 0a 23 0a 23 20 41 55 | 54 48 4f 52 0a 23 09 44 |#.#.# AU|THOR.#.D|
|00001660| 61 76 69 64 20 48 65 72 | 72 6f 6e 20 28 4e 50 52 |avid Her|ron (NPR|
|00001670| 20 6c 6f 76 65 72 29 0a | 23 09 63 62 6f 73 67 64 | lover).|#.cbosgd|
|00001680| 21 75 6b 6d 61 21 64 61 | 76 69 64 0a 23 09 55 6e |!ukma!da|vid.#.Un|
|00001690| 69 76 65 72 73 69 74 79 | 20 6f 66 20 4b 65 6e 74 |iversity| of Kent|
|000016a0| 75 63 6b 79 2c 20 43 6f | 6d 70 75 74 65 72 20 53 |ucky, Co|mputer S|
|000016b0| 63 69 65 6e 63 65 0a 23 | 0a 23 20 43 68 61 6e 67 |cience.#|.# Chang|
|000016c0| 65 73 3a 0a 23 09 31 2e | 20 54 6f 6f 6b 20 6f 75 |es:.#.1.| Took ou|
|000016d0| 74 20 69 67 6e 6f 72 65 | 20 63 61 70 61 62 69 6c |t ignore| capabil|
|000016e0| 69 74 79 28 69 66 20 79 | 6f 75 20 77 61 6e 74 20 |ity(if y|ou want |
|000016f0| 69 74 20 70 75 74 20 69 | 74 20 62 61 63 6b 20 69 |it put i|t back i|
|00001700| 6e 29 0a 23 09 32 2e 20 | 4d 61 64 65 20 63 6f 6d |n).#.2. |Made com|
|00001710| 70 61 74 69 62 6c 65 20 | 77 69 74 68 20 53 79 73 |patible |with Sys|
|00001720| 74 65 6d 20 56 20 72 65 | 6c 65 61 73 65 20 49 0a |tem V re|lease I.|
|00001730| 23 0a 23 20 45 44 49 54 | 4f 52 0a 23 09 4d 69 63 |#.# EDIT|OR.#.Mic|
|00001740| 68 61 65 6c 20 57 65 78 | 6c 65 72 0a 23 09 74 72 |hael Wex|ler.#.tr|
|00001750| 77 72 62 21 66 65 6c 69 | 78 21 70 65 72 65 67 72 |wrb!feli|x!peregr|
|00001760| 69 6e 65 21 6d 69 6b 65 | 0a 23 09 50 65 72 65 67 |ine!mike|.#.Pereg|
|00001770| 72 69 6e 65 20 53 79 73 | 74 65 6d 73 2c 20 49 6e |rine Sys|tems, In|
|00001780| 63 0a 23 0a 42 45 47 49 | 4e 09 7b 0a 09 23 20 73 |c.#.BEGI|N.{..# s|
|00001790| 74 61 74 65 73 0a 09 69 | 64 6c 65 20 3d 20 30 3b |tates..i|dle = 0;|
|000017a0| 20 63 61 6c 6c 69 6e 67 | 20 3d 20 31 3b 20 75 73 | calling| = 1; us|
|000017b0| 63 61 6c 6c 20 3d 20 32 | 3b 20 74 68 65 6d 63 61 |call = 2|; themca|
|000017c0| 6c 6c 20 3d 20 33 3b 0a | 09 74 72 75 65 20 3d 20 |ll = 3;.|.true = |
|000017d0| 31 3b 20 66 61 6c 73 65 | 20 3d 20 30 0a 09 7d 0a |1; false| = 0..}.|
|000017e0| 0a 23 20 57 65 27 72 65 | 20 63 61 6c 6c 69 6e 67 |.# We're| calling|
|000017f0| 20 73 6f 6d 65 20 70 6c | 61 63 65 2c 20 61 6e 64 | some pl|ace, and|
|00001800| 20 74 68 65 20 63 61 6c | 6c 20 70 61 72 74 20 68 | the cal|l part h|
|00001810| 61 73 20 61 63 74 75 61 | 6c 6c 79 20 77 6f 72 6b |as actua|lly work|
|00001820| 65 64 2e 0a 23 20 31 29 | 20 52 65 63 6f 72 64 20 |ed..# 1)| Record |
|00001830| 74 68 65 69 72 20 6e 61 | 6d 65 20 69 6e 20 74 68 |their na|me in th|
|00001840| 65 20 6d 61 73 74 65 72 | 20 6c 69 73 74 2e 0a 23 |e master| list..#|
|00001850| 20 32 29 20 52 65 6d 65 | 6d 62 65 72 20 74 68 61 | 2) Reme|mber tha|
|00001860| 74 20 77 65 27 72 65 20 | 70 6c 61 63 69 6e 67 20 |t we're |placing |
|00001870| 74 68 65 20 63 61 6c 6c | 2e 0a 0a 24 31 20 7e 20 |the call|...$1 ~ |
|00001880| 2f 2e 2a 21 2e 2a 2f 09 | 7b 0a 09 09 6e 20 3d 20 |/.*!.*/.|{...n = |
|00001890| 73 70 6c 69 74 28 24 31 | 2c 61 2c 22 21 22 29 3b |split($1|,a,"!");|
|000018a0| 0a 09 09 75 73 65 72 3d | 61 5b 32 5d 3b 0a 09 09 |...user=|a[2];...|
|000018b0| 73 79 73 3d 73 75 62 73 | 74 72 28 61 5b 31 5d 2c |sys=subs|tr(a[1],|
|000018c0| 31 2c 36 29 3b 0a 09 09 | 74 69 6d 65 3d 24 32 0a |1,6);...|time=$2.|
|000018d0| 09 09 73 74 61 74 75 73 | 3d 24 34 0a 09 09 65 76 |..status|=$4...ev|
|000018e0| 65 6e 74 3d 24 35 0a 09 | 7d 0a 24 31 20 21 7e 20 |ent=$5..|}.$1 !~ |
|000018f0| 2f 2e 2a 21 2e 2a 2f 09 | 7b 0a 09 75 73 65 72 3d |/.*!.*/.|{..user=|
|00001900| 24 31 0a 09 73 79 73 3d | 73 75 62 73 74 72 28 24 |$1..sys=|substr($|
|00001910| 32 2c 31 2c 36 29 0a 09 | 74 69 6d 65 3d 24 33 0a |2,1,6)..|time=$3.|
|00001920| 09 73 74 61 74 75 73 3d | 24 34 0a 09 65 76 65 6e |.status=|$4..even|
|00001930| 74 3d 24 35 0a 7d 0a 73 | 74 61 74 75 73 20 3d 3d |t=$5.}.s|tatus ==|
|00001940| 20 22 53 55 43 43 45 45 | 44 45 44 22 20 26 26 20 | "SUCCEE|DED" && |
|00001950| 65 76 65 6e 74 20 3d 3d | 20 22 28 63 61 6c 6c 22 |event ==| "(call"|
|00001960| 20 7b 0a 09 73 74 61 74 | 65 5b 73 79 73 5d 20 3d | {..stat|e[sys] =|
|00001970| 20 63 61 6c 6c 69 6e 67 | 0a 7d 0a 0a 23 20 41 20 | calling|.}..# A |
|00001980| 63 61 6c 6c 20 73 75 63 | 63 65 65 64 65 64 2e 20 |call suc|ceeded. |
|00001990| 20 45 69 74 68 65 72 20 | 74 68 65 79 20 63 61 6c | Either |they cal|
|000019a0| 6c 65 64 20 75 73 20 6f | 72 20 77 65 20 63 61 6c |led us o|r we cal|
|000019b0| 6c 65 64 20 74 68 65 6d | 2e 0a 23 20 73 74 61 74 |led them|..# stat|
|000019c0| 65 5b 73 79 73 5d 20 74 | 65 6c 6c 73 20 75 73 20 |e[sys] t|ells us |
|000019d0| 77 68 6f 20 69 73 20 64 | 6f 69 6e 67 20 74 68 65 |who is d|oing the|
|000019e0| 20 63 61 6c 6c 69 6e 67 | 2e 0a 23 20 48 61 76 65 | calling|..# Have|
|000019f0| 20 74 6f 20 72 65 6d 65 | 6d 62 65 72 20 74 68 65 | to reme|mber the|
|00001a00| 20 74 69 6d 65 2e 0a 0a | 73 74 61 74 75 73 20 3d | time...|status =|
|00001a10| 3d 20 22 4f 4b 22 20 26 | 26 20 65 76 65 6e 74 20 |= "OK" &|& event |
|00001a20| 3d 3d 20 22 28 73 74 61 | 72 74 75 70 29 22 20 7b |== "(sta|rtup)" {|
|00001a30| 0a 09 73 74 61 72 74 69 | 6d 65 5b 73 79 73 5d 20 |..starti|me[sys] |
|00001a40| 3d 20 74 69 6d 65 0a 09 | 69 66 20 28 73 74 61 74 |= time..|if (stat|
|00001a50| 65 5b 73 79 73 5d 20 3d | 3d 20 63 61 6c 6c 69 6e |e[sys] =|= callin|
|00001a60| 67 29 20 7b 0a 09 09 70 | 72 69 6e 74 66 28 22 63 |g) {...p|rintf("c|
|00001a70| 61 6c 6c 5c 74 6f 75 74 | 5c 74 25 73 5c 74 25 73 |all\tout|\t%s\t%s|
|00001a80| 5c 6e 22 2c 20 73 79 73 | 2c 20 74 69 6d 65 29 0a |\n", sys|, time).|
|00001a90| 09 09 73 74 61 74 65 5b | 73 79 73 5d 20 3d 20 75 |..state[|sys] = u|
|00001aa0| 73 63 61 6c 6c 0a 09 7d | 0a 09 65 6c 73 65 20 7b |scall..}|..else {|
|00001ab0| 0a 09 09 70 72 69 6e 74 | 66 28 22 63 61 6c 6c 5c |...print|f("call\|
|00001ac0| 74 69 6e 5c 74 25 73 5c | 74 25 73 5c 6e 22 2c 20 |tin\t%s\|t%s\n", |
|00001ad0| 73 79 73 2c 20 74 69 6d | 65 29 0a 09 09 73 74 61 |sys, tim|e)...sta|
|00001ae0| 74 65 5b 73 79 73 5d 20 | 3d 20 74 68 65 6d 63 61 |te[sys] |= themca|
|00001af0| 6c 6c 0a 09 7d 0a 7d 0a | 0a 0a 23 20 4f 75 72 20 |ll..}.}.|..# Our |
|00001b00| 6f 75 74 67 6f 69 6e 67 | 20 63 61 6c 6c 20 66 61 |outgoing| call fa|
|00001b10| 69 6c 65 64 2e 20 20 54 | 68 72 6f 77 20 61 77 61 |iled. T|hrow awa|
|00001b20| 79 20 6f 75 72 20 69 6e | 66 6f 72 6d 61 74 69 6f |y our in|formatio|
|00001b30| 6e 20 61 62 6f 75 74 20 | 74 68 65 20 63 61 6c 6c |n about |the call|
|00001b40| 2e 0a 0a 73 74 61 74 75 | 73 20 3d 3d 20 22 54 49 |...statu|s == "TI|
|00001b50| 4d 45 4f 55 54 22 20 7b | 0a 09 73 74 61 74 65 5b |MEOUT" {|..state[|
|00001b60| 73 79 73 5d 20 3d 20 69 | 64 6c 65 0a 09 7d 0a 0a |sys] = i|dle..}..|
|00001b70| 23 20 41 20 63 61 6c 6c | 20 66 69 6e 69 73 68 65 |# A call| finishe|
|00001b80| 64 20 65 69 74 68 65 72 | 20 73 75 63 63 65 73 73 |d either| success|
|00001b90| 66 75 6c 6c 79 20 6f 72 | 20 75 6e 73 75 63 63 65 |fully or| unsucce|
|00001ba0| 73 73 66 75 6c 6c 79 2e | 0a 23 20 48 61 76 65 20 |ssfully.|.# Have |
|00001bb0| 74 6f 20 61 64 64 20 69 | 6e 20 74 68 65 20 74 69 |to add i|n the ti|
|00001bc0| 6d 65 20 74 6f 20 74 68 | 65 20 61 70 70 72 6f 70 |me to th|e approp|
|00001bd0| 72 69 61 74 65 20 73 75 | 6d 2e 0a 23 0a 23 20 49 |riate su|m..#.# I|
|00001be0| 74 20 77 6f 75 6c 64 20 | 62 65 20 22 68 61 72 64 |t would |be "hard|
|00001bf0| 22 20 74 6f 20 63 61 6c | 63 75 6c 61 74 65 20 74 |" to cal|culate t|
|00001c00| 68 65 20 74 69 6d 65 20 | 63 6f 72 72 65 63 74 6c |he time |correctl|
|00001c10| 79 2e 20 20 53 6f 2c 20 | 49 27 6d 20 75 73 69 6e |y. So, |I'm usin|
|00001c20| 67 0a 23 20 61 20 68 65 | 75 72 69 73 74 69 63 20 |g.# a he|uristic |
|00001c30| 68 65 72 65 20 74 6f 20 | 6d 61 6b 65 20 69 74 20 |here to |make it |
|00001c40| 65 61 73 79 2e 20 20 49 | 20 61 73 73 75 6d 65 20 |easy. I| assume |
|00001c50| 74 68 61 74 20 6e 6f 20 | 70 68 6f 6e 65 20 63 61 |that no |phone ca|
|00001c60| 6c 6c 20 69 73 0a 23 20 | 67 6f 69 6e 67 20 74 6f |ll is.# |going to|
|00001c70| 20 6c 61 73 74 20 66 6f | 72 20 6c 6f 6e 67 65 72 | last fo|r longer|
|00001c80| 20 74 68 61 6e 20 31 20 | 64 61 79 2e 20 20 49 20 | than 1 |day. I |
|00001c90| 63 61 6c 63 75 6c 61 74 | 65 20 74 68 65 20 74 69 |calculat|e the ti|
|00001ca0| 6d 65 0a 23 20 66 6f 72 | 20 74 68 65 20 65 6e 64 |me.# for| the end|
|00001cb0| 69 6e 67 20 61 6e 64 20 | 62 65 67 69 6e 6e 69 6e |ing and |beginnin|
|00001cc0| 67 20 6f 66 20 74 68 65 | 20 63 61 6c 6c 2c 20 61 |g of the| call, a|
|00001cd0| 6e 64 20 69 66 20 69 74 | 27 73 20 6e 65 67 61 74 |nd if it|'s negat|
|00001ce0| 69 76 65 0a 23 20 49 20 | 61 64 64 20 32 34 20 68 |ive.# I |add 24 h|
|00001cf0| 6f 75 72 73 20 74 6f 20 | 69 74 2e 0a 23 0a 23 20 |ours to |it..#.# |
|00001d00| 49 20 6b 6e 6f 77 20 2e | 2e 2e 20 67 72 6f 61 64 |I know .|.. groad|
|00001d10| 79 20 74 6f 20 74 68 65 | 20 6d 61 78 2c 20 62 75 |y to the| max, bu|
|00001d20| 75 75 74 2e 2e 2e 0a 0a | 28 73 74 61 74 75 73 20 |uut.....|(status |
|00001d30| 3d 3d 20 22 4f 4b 22 20 | 7c 7c 20 73 74 61 74 75 |== "OK" ||| statu|
|00001d40| 73 20 3d 3d 20 22 46 41 | 49 4c 45 44 22 29 20 26 |s == "FA|ILED") &|
|00001d50| 26 20 65 76 65 6e 74 20 | 3d 3d 20 22 28 63 6f 6e |& event |== "(con|
|00001d60| 76 65 72 73 61 74 69 6f | 6e 22 20 7b 0a 09 70 72 |versatio|n" {..pr|
|00001d70| 69 6e 74 66 28 22 64 6f | 6e 65 5c 74 28 25 73 29 |intf("do|ne\t(%s)|
|00001d80| 5c 74 25 73 5c 74 25 73 | 5c 6e 22 2c 20 73 74 61 |\t%s\t%s|\n", sta|
|00001d90| 74 75 73 2c 20 73 79 73 | 2c 20 74 69 6d 65 29 0a |tus, sys|, time).|
|00001da0| 09 69 6e 74 65 72 76 61 | 6c 20 3d 20 30 0a 09 23 |.interva|l = 0..#|
|00001db0| 20 67 65 74 20 74 69 6d | 65 20 73 70 65 6e 74 20 | get tim|e spent |
|00001dc0| 69 6e 74 6f 20 22 69 6e | 74 65 72 76 61 6c 22 0a |into "in|terval".|
|00001dd0| 09 23 20 54 69 6d 65 20 | 66 6f 72 6d 61 74 20 69 |.# Time |format i|
|00001de0| 73 3a 20 22 28 6d 6f 6e | 2f 64 61 79 2d 68 72 3a |s: "(mon|/day-hr:|
|00001df0| 6d 69 6e 2d 70 69 64 29 | 22 0a 09 6e 20 3d 20 73 |min-pid)|"..n = s|
|00001e00| 70 6c 69 74 28 74 69 6d | 65 2c 20 6e 6e 2c 20 22 |plit(tim|e, nn, "|
|00001e10| 2d 22 29 0a 09 6e 20 3d | 20 73 70 6c 69 74 28 6e |-")..n =| split(n|
|00001e20| 6e 5b 32 5d 2c 20 68 72 | 6d 69 6e 2c 20 22 3a 22 |n[2], hr|min, ":"|
|00001e30| 29 0a 09 74 65 6e 64 20 | 3d 20 28 68 72 6d 69 6e |)..tend |= (hrmin|
|00001e40| 5b 31 5d 2a 36 30 29 20 | 2b 20 68 72 6d 69 6e 5b |[1]*60) |+ hrmin[|
|00001e50| 32 5d 0a 09 6e 20 3d 20 | 73 70 6c 69 74 28 73 74 |2]..n = |split(st|
|00001e60| 61 72 74 69 6d 65 5b 73 | 79 73 5d 2c 20 6e 6e 2c |artime[s|ys], nn,|
|00001e70| 20 22 2d 22 29 0a 09 6e | 20 3d 20 73 70 6c 69 74 | "-")..n| = split|
|00001e80| 28 6e 6e 5b 32 5d 2c 20 | 68 72 6d 69 6e 2c 20 22 |(nn[2], |hrmin, "|
|00001e90| 3a 22 29 0a 09 74 62 65 | 67 20 3d 20 28 68 72 6d |:")..tbe|g = (hrm|
|00001ea0| 69 6e 5b 31 5d 2a 36 30 | 29 20 2b 20 68 72 6d 69 |in[1]*60|) + hrmi|
|00001eb0| 6e 5b 32 5d 0a 0a 09 69 | 6e 74 65 72 76 61 6c 20 |n[2]...i|nterval |
|00001ec0| 3d 20 74 65 6e 64 20 2d | 20 74 62 65 67 0a 09 69 |= tend -| tbeg..i|
|00001ed0| 66 20 28 69 6e 74 65 72 | 76 61 6c 20 3c 20 30 29 |f (inter|val < 0)|
|00001ee0| 0a 09 09 69 6e 74 65 72 | 76 61 6c 20 2b 3d 20 28 |...inter|val += (|
|00001ef0| 32 34 2a 36 30 29 0a 0a | 09 69 66 20 28 73 74 61 |24*60)..|.if (sta|
|00001f00| 74 65 5b 73 79 73 5d 20 | 3d 3d 20 75 73 63 61 6c |te[sys] |== uscal|
|00001f10| 6c 29 0a 09 09 6f 75 72 | 74 69 6d 65 5b 73 79 73 |l)...our|time[sys|
|00001f20| 5d 20 2b 3d 20 69 6e 74 | 65 72 76 61 6c 0a 09 65 |] += int|erval..e|
|00001f30| 6c 73 65 0a 09 09 74 68 | 65 69 72 74 69 6d 65 5b |lse...th|eirtime[|
|00001f40| 73 79 73 5d 20 2b 3d 20 | 69 6e 74 65 72 76 61 6c |sys] += |interval|
|00001f50| 0a 09 7d 0a 0a 23 20 41 | 6c 6c 20 74 68 61 74 27 |..}..# A|ll that'|
|00001f60| 73 20 6c 65 66 74 20 74 | 6f 20 64 6f 20 6e 6f 77 |s left t|o do now|
|00001f70| 20 69 73 20 74 6f 20 66 | 65 65 64 20 74 68 65 20 | is to f|eed the |
|00001f80| 63 68 69 63 6b 65 6e 73 | 20 61 6e 64 20 67 6f 20 |chickens| and go |
|00001f90| 68 6f 6d 65 0a 0a 45 4e | 44 09 7b 0a 09 66 6f 72 |home..EN|D.{..for|
|00001fa0| 20 28 69 20 69 6e 20 6f | 75 72 74 69 6d 65 29 0a | (i in o|urtime).|
|00001fb0| 09 09 70 72 69 6e 74 66 | 28 22 25 73 20 2d 2d 20 |..printf|("%s -- |
|00001fc0| 6f 75 72 74 69 6d 65 20 | 3d 20 25 64 5c 74 74 68 |ourtime |= %d\tth|
|00001fd0| 65 69 72 74 69 6d 65 20 | 3d 20 25 64 5c 6e 22 2c |eirtime |= %d\n",|
|00001fe0| 20 5c 0a 09 09 09 69 2c | 20 6f 75 72 74 69 6d 65 | \....i,| ourtime|
|00001ff0| 5b 69 5d 2c 20 74 68 65 | 69 72 74 69 6d 65 5b 69 |[i], the|irtime[i|
|00002000| 5d 29 0a 09 7d 0a 0a 0a | 65 2e 61 77 6b 20 2d 2d |])..}...|e.awk --|
|00002010| 20 72 65 61 64 20 61 20 | 75 75 63 70 20 4c 4f 47 | read a |uucp LOG|
|00002020| 46 49 4c 45 20 61 6e 64 | 20 66 69 6e 64 20 6f 75 |FILE and| find ou|
|00002030| 74 20 68 6f 77 20 6c 6f | 6e 67 0a 23 20 77 65 20 |t how lo|ng.# we |
|00002040| 73 70 65 6e 74 20 74 61 | 6c 6b 69 6e 67 20 74 6f |spent ta|lking to|
|00002050| 20 70 61 72 74 69 63 75 | 6c 61 72 20 70 6c 61 63 | particu|lar plac|
|00002060| 65 73 2e 20 20 28 41 6c | 73 6f 2c 20 72 65 6d 65 |es. (Al|so, reme|
|00002070| 6d 62 65 72 73 20 69 66 | 0a 23 20 74 68 65 20 74 |mbers if|.# the t|
|00002080| 69 6d 65 20 73 70 65 6e | 74 20 77 61 73 20 6f 75 |ime spen|t was ou|
|00002090| 72 20 63 61 6c 6c 20 6f | 72 20 74 68 65 69 72 20 |r call o|r their |
|000020a0| 63 61 6c 6c 29 2e 0a 23 | 0a 23 20 54 68 69 73 20 |call)..#|.# This |
|000020b0| 69 73 20 6e 69 63 65 20 | 66 6f 72 3a 20 31 29 20 |is nice |for: 1) |
|000020c0| 4b 6e 6f 77 69 6e 67 20 | 77 68 65 6e 20 79 6f 75 |Knowing |when you|
|000020d0| 20 6d 61 64 65 20 6c 6f | 6e 67 20 64 69 73 74 61 | made lo|ng dista|
|000020e0| 6e 63 65 0a 23 20 63 61 | 6c 6c 73 20 61 6e 64 20 |nce.# ca|lls and |
|000020f0| 77 68 65 72 65 20 74 6f | 2c 20 32 29 20 6b 6e 6f |where to|, 2) kno|
|00002100| 77 69 6e 67 20 68 6f 77 | 20 6d 75 63 68 20 6f 66 |wing how| much of|
|00002110| 20 74 68 65 20 6c 6f 61 | 64 20 62 65 74 77 65 65 | the loa|d betwee|
|00002120| 6e 0a 23 20 79 6f 75 20 | 61 6e 64 20 73 6f 6d 65 |n.# you |and some|
|00002130| 20 73 69 74 65 73 20 79 | 6f 75 27 72 65 20 63 61 | sites y|ou're ca|
|00002140| 72 72 79 69 6e 67 2e 0a | 23 0a 23 0a 23 20 54 68 |rrying..|#.#.# Th|
|00002150| 69 73 20 77 6f 72 6b 73 | 20 77 69 74 68 20 74 68 |is works| with th|
|00002160| 65 20 55 55 43 50 20 6c | 6f 67 20 66 69 6c 65 20 |e UUCP l|og file |
|00002170| 66 6f 72 6d 61 74 20 70 | 72 6f 64 75 63 65 64 20 |format p|roduced |
|00002180| 62 79 20 74 68 65 0a 23 | 20 75 75 63 70 20 64 65 |by the.#| uucp de|
|00002190| 6c 69 76 65 72 65 64 20 | 77 69 74 68 20 42 52 4c |livered |with BRL|
|000021a0| 20 52 65 6c 65 61 73 65 | 20 33 2e 20 20 28 69 2e | Release| 3. (i.|
|000021b0| 65 2e 20 34 2e 32 42 53 | 44 2c 20 69 2e 65 2e 20 |e. 4.2BS|D, i.e. |
|000021c0| 74 68 61 74 0a 23 20 2a | 65 78 74 72 65 6d 65 6c |that.# *|extremel|
|000021d0| 79 2a 20 68 61 63 6b 65 | 64 20 75 70 20 63 6f 6e |y* hacke|d up con|
|000021e0| 67 6c 6f 6d 65 72 61 74 | 69 6f 6e 20 6f 66 20 75 |glomerat|ion of u|
|000021f0| 75 63 70 27 73 20 74 68 | 61 74 20 70 72 6f 6d 70 |ucp's th|at promp|
|00002200| 6c 6f 67 66 69 6c 65 2d | 73 74 61 74 73 2f 73 79 |logfile-|stats/sy|
|00002210| 73 6c 6f 67 2e 61 77 6b | 00 00 00 00 00 00 00 00 |slog.awk|........|
|00002220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00002270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00002280| 20 20 20 31 31 33 34 20 | 20 34 34 30 34 30 35 35 | 1134 | 4404055|
|00002290| 30 33 31 20 20 31 30 36 | 37 34 00 20 00 00 00 00 |031 106|74. ....|
|000022a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002400| 23 20 73 79 73 6c 6f 67 | 2e 61 77 6b 20 2d 2d 20 |# syslog|.awk -- |
|00002410| 72 65 61 64 20 61 20 75 | 75 63 70 20 53 59 53 4c |read a u|ucp SYSL|
|00002420| 4f 47 20 61 6e 64 20 66 | 69 6e 64 20 6f 75 74 20 |OG and f|ind out |
|00002430| 68 6f 77 20 6d 75 63 68 | 0a 23 20 73 74 75 66 66 |how much|.# stuff|
|00002440| 20 69 73 20 74 72 61 6e | 73 66 65 72 72 65 64 20 | is tran|sferred |
|00002450| 61 6e 64 20 68 6f 77 20 | 6c 6f 6e 67 20 69 74 20 |and how |long it |
|00002460| 74 6f 6f 6b 0a 23 0a 23 | 20 54 68 69 73 20 77 6f |took.#.#| This wo|
|00002470| 72 6b 73 20 57 69 74 68 | 20 53 79 73 74 65 6d 20 |rks With| System |
|00002480| 56 20 72 65 6c 65 61 73 | 65 20 49 20 61 6e 64 20 |V releas|e I and |
|00002490| 34 2e 32 42 53 44 0a 23 | 0a 23 20 55 53 41 47 45 |4.2BSD.#|.# USAGE|
|000024a0| 0a 23 09 61 77 6b 20 2d | 66 20 73 79 73 6c 6f 67 |.#.awk -|f syslog|
|000024b0| 2e 61 77 6b 20 2f 75 73 | 72 2f 73 70 6f 6f 6c 2f |.awk /us|r/spool/|
|000024c0| 75 75 63 70 2f 4c 4f 47 | 46 49 4c 45 0a 23 0a 23 |uucp/LOG|FILE.#.#|
|000024d0| 20 41 55 54 48 4f 52 0a | 23 09 4d 69 63 68 61 65 | AUTHOR.|#.Michae|
|000024e0| 6c 20 57 65 78 6c 65 72 | 0a 23 09 74 72 77 72 62 |l Wexler|.#.trwrb|
|000024f0| 21 66 65 6c 69 78 21 70 | 65 72 65 67 72 69 6e 65 |!felix!p|eregrine|
|00002500| 21 6d 69 6b 65 0a 23 09 | 50 65 72 65 67 72 69 6e |!mike.#.|Peregrin|
|00002510| 65 20 53 79 73 74 65 6d | 73 2c 20 49 6e 63 0a 23 |e System|s, Inc.#|
|00002520| 0a 24 31 20 7e 20 2f 2e | 2a 21 2e 2a 2f 09 7b 0a |.$1 ~ /.|*!.*/.{.|
|00002530| 09 6e 3d 73 70 6c 69 74 | 28 24 31 2c 61 2c 22 21 |.n=split|($1,a,"!|
|00002540| 22 29 3b 0a 09 73 79 73 | 3d 61 5b 31 5d 0a 7d 0a |");..sys|=a[1].}.|
|00002550| 24 31 20 21 7e 20 2f 2e | 2a 21 2e 2a 2f 09 7b 0a |$1 !~ /.|*!.*/.{.|
|00002560| 09 73 79 73 3d 24 32 0a | 7d 0a 7b 0a 09 62 79 74 |.sys=$2.|}.{..byt|
|00002570| 65 73 5b 73 75 62 73 74 | 72 28 73 79 73 2c 31 2c |es[subst|r(sys,1,|
|00002580| 36 29 5d 20 2b 3d 20 24 | 37 3b 20 0a 09 74 69 6d |6)] += $|7; ..tim|
|00002590| 65 5b 73 75 62 73 74 72 | 28 73 79 73 2c 31 2c 36 |e[substr|(sys,1,6|
|000025a0| 29 5d 20 2b 3d 20 24 39 | 3b 0a 7d 0a 45 4e 44 09 |)] += $9|;.}.END.|
|000025b0| 7b 0a 09 66 6f 72 20 28 | 73 79 73 20 69 6e 20 62 |{..for (|sys in b|
|000025c0| 79 74 65 73 29 0a 09 7b | 0a 09 70 72 69 6e 74 20 |ytes)..{|..print |
|000025d0| 73 79 73 2c 20 22 09 54 | 72 61 6e 73 66 65 72 72 |sys, ".T|ransferr|
|000025e0| 65 64 20 22 2c 62 79 74 | 65 73 5b 73 79 73 5d 2c |ed ",byt|es[sys],|
|000025f0| 22 20 62 79 74 65 73 20 | 69 6e 20 22 2c 74 69 6d |" bytes |in ",tim|
|00002600| 65 5b 73 79 73 5d 2c 22 | 20 73 65 63 6f 6e 64 73 |e[sys],"| seconds|
|00002610| 22 0a 09 70 72 69 6e 74 | 20 22 09 46 6f 72 20 61 |"..print| ".For a|
|00002620| 6e 20 61 76 65 72 61 67 | 65 20 73 70 65 65 64 20 |n averag|e speed |
|00002630| 6f 66 20 22 2c 62 79 74 | 65 73 5b 73 79 73 5d 2f |of ",byt|es[sys]/|
|00002640| 74 69 6d 65 5b 73 79 73 | 5d 2c 22 20 62 79 74 65 |time[sys|]," byte|
|00002650| 73 2f 73 65 63 22 0a 09 | 7d 0a 7d 0a 45 0a 23 0a |s/sec"..|}.}.E.#.|
|00002660| 23 20 41 63 74 75 61 6c | 6c 79 20 2d 2d 20 49 20 |# Actual|ly -- I |
|00002670| 77 6f 75 6c 64 20 73 75 | 67 67 65 73 74 20 73 61 |would su|ggest sa|
|00002680| 76 69 6e 67 20 4c 4f 47 | 46 49 4c 45 20 73 6f 6d |ving LOG|FILE som|
|00002690| 65 77 68 65 72 65 20 61 | 6e 64 20 6d 61 6b 65 0a |ewhere a|nd make.|
|000026a0| 23 20 73 75 72 65 20 75 | 75 63 69 63 6f 20 69 73 |# sure u|ucico is|
|000026b0| 20 6e 6f 20 6c 6f 6e 67 | 65 72 20 77 72 69 74 69 | no long|er writi|
|000026c0| 6e 67 20 74 6f 20 69 74 | 2e 20 20 54 68 69 73 20 |ng to it|. This |
|000026d0| 77 61 79 20 79 6f 75 27 | 72 65 20 73 75 72 65 0a |way you'|re sure.|
|000026e0| 23 20 74 68 61 74 20 74 | 68 65 20 64 61 74 61 20 |# that t|he data |
|000026f0| 67 65 6e 65 72 61 74 65 | 64 20 69 73 20 76 61 6c |generate|d is val|
|00002700| 69 64 2e 20 20 57 68 61 | 74 20 49 20 64 6f 20 68 |id. Wha|t I do h|
|00002710| 65 72 65 20 69 73 3a 0a | 23 0a 23 09 73 65 74 20 |ere is:.|#.#.set |
|00002720| 60 64 61 74 65 60 0a 23 | 09 74 61 67 3d 24 32 2e |`date`.#|.tag=$2.|
|00002730| 24 37 0a 23 09 63 64 20 | 2f 75 73 72 2f 73 70 6f |$7.#.cd |/usr/spo|
|00002740| 6f 6c 2f 75 75 63 70 0a | 23 09 6d 76 20 4c 4f 47 |ol/uucp.|#.mv LOG|
|00002750| 46 49 4c 45 20 4f 4c 44 | 2f 4c 4f 47 46 49 4c 45 |FILE OLD|/LOGFILE|
|00002760| 2e 24 7b 74 61 67 7d 0a | 23 09 63 6f 6d 70 72 65 |.${tag}.|#.compre|
|00002770| 73 73 20 4f 4c 44 2f 4c | 4f 47 46 49 4c 45 2e 24 |ss OLD/L|OGFILE.$|
|00002780| 7b 74 61 67 7d 0a 23 09 | 75 6e 63 6f 6d 70 72 65 |{tag}.#.|uncompre|
|00002790| 73 73 20 4f 4c 44 2f 4c | 4f 47 46 49 4c 45 2e 24 |ss OLD/L|OGFILE.$|
|000027a0| 7b 74 61 67 7d 0a 23 09 | 61 77 6b 20 2d 66 20 2f |{tag}.#.|awk -f /|
|000027b0| 75 73 72 2f 6c 69 62 2f | 75 75 63 70 2f 6c 6f 67 |usr/lib/|uucp/log|
|000027c0| 66 69 6c 65 2e 61 77 6b | 20 4f 4c 44 2f 4c 4f 47 |file.awk| OLD/LOG|
|000027d0| 46 49 4c 45 2e 24 7b 74 | 61 67 7d 0a 23 0a 23 20 |FILE.${t|ag}.#.# |
|000027e0| 53 6f 6d 65 68 6f 77 2c | 20 63 6f 6d 70 72 65 73 |Somehow,| compres|
|000027f0| 73 20 77 61 69 74 73 20 | 75 6e 74 69 6c 20 6e 6f |s waits |until no|
|00002800| 6c 6f 67 66 69 6c 65 2d | 73 74 61 74 73 2f 50 61 |logfile-|stats/Pa|
|00002810| 74 63 68 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |tch.....|........|
|00002820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00002870| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00002880| 20 20 20 20 37 35 36 20 | 20 34 34 30 34 30 35 35 | 756 | 4404055|
|00002890| 30 33 33 20 20 20 37 36 | 32 35 00 20 00 00 00 00 |033 76|25. ....|
|000028a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000028f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a00| 54 68 65 20 6c 6f 67 66 | 69 6c 65 20 61 6e 61 6c |The logf|ile anal|
|00002a10| 79 7a 65 72 20 74 68 61 | 74 20 49 20 70 6f 73 74 |yzer tha|t I post|
|00002a20| 65 64 28 61 6e 64 20 74 | 68 65 20 6f 72 69 67 69 |ed(and t|he origi|
|00002a30| 6e 61 6c 20 74 68 61 74 | 20 49 20 6d 6f 64 69 66 |nal that| I modif|
|00002a40| 69 65 64 29 0a 68 61 76 | 65 20 61 20 73 6c 69 67 |ied).hav|e a slig|
|00002a50| 68 74 20 62 75 67 2e 20 | 20 54 68 65 79 20 64 6f |ht bug. | They do|
|00002a60| 6e 27 74 20 6c 69 73 74 | 20 74 68 65 20 61 6d 6f |n't list| the amo|
|00002a70| 75 6e 74 20 6f 66 20 74 | 69 6d 65 20 75 73 65 64 |unt of t|ime used|
|00002a80| 20 62 79 20 73 79 73 74 | 65 6d 73 0a 74 68 61 74 | by syst|ems.that|
|00002a90| 20 79 6f 75 20 64 69 64 | 6e 27 74 20 63 61 6c 6c | you did|n't call|
|00002aa0| 2e 20 20 49 66 20 79 6f | 75 20 77 61 6e 74 20 74 |. If yo|u want t|
|00002ab0| 6f 20 6c 69 73 74 20 74 | 68 65 20 74 6f 74 61 6c |o list t|he total|
|00002ac0| 73 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 0a 66 6f |s inform|ation.fo|
|00002ad0| 72 20 61 6c 6c 20 73 79 | 73 74 65 6d 73 20 74 68 |r all sy|stems th|
|00002ae0| 61 74 20 65 69 74 68 65 | 72 20 79 6f 75 20 63 61 |at eithe|r you ca|
|00002af0| 6c 6c 65 64 20 6f 72 20 | 74 68 61 74 20 63 61 6c |lled or |that cal|
|00002b00| 6c 65 64 20 79 6f 75 20 | 63 68 61 6e 67 65 0a 74 |led you |change.t|
|00002b10| 68 65 20 6c 69 6e 65 20 | 61 74 20 74 68 65 20 65 |he line |at the e|
|00002b20| 6e 64 20 74 68 61 74 20 | 6c 6f 6f 6b 73 20 6c 69 |nd that |looks li|
|00002b30| 6b 65 0a 09 66 6f 72 20 | 28 69 20 69 6e 20 6f 75 |ke..for |(i in ou|
|00002b40| 72 74 69 6d 65 29 0a 74 | 6f 20 6c 6f 6f 6b 20 6c |rtime).t|o look l|
|00002b50| 69 6b 65 20 74 68 69 73 | 0a 09 66 6f 72 20 28 69 |ike this|..for (i|
|00002b60| 20 69 6e 20 73 74 61 74 | 65 29 0a 0a 2d 2d 20 0a | in stat|e)..-- .|
|00002b70| 4d 69 6b 65 28 61 6c 77 | 61 79 73 20 61 20 64 72 |Mike(alw|ays a dr|
|00002b80| 65 61 6d 65 72 29 20 57 | 65 78 6c 65 72 0a 31 35 |eamer) W|exler.15|
|00002b90| 35 33 30 20 52 6f 63 6b | 66 69 65 6c 64 2c 20 42 |530 Rock|field, B|
|00002ba0| 75 69 6c 64 69 6e 67 20 | 43 0a 49 72 76 69 6e 65 |uilding |C.Irvine|
|00002bb0| 2c 20 43 61 20 39 32 37 | 31 38 0a 28 37 31 34 29 |, Ca 927|18.(714)|
|00002bc0| 38 35 35 2d 33 39 32 33 | 0a 28 74 72 77 72 62 7c |855-3923|.(trwrb||
|00002bd0| 73 63 67 76 61 78 64 29 | 21 66 65 6c 69 78 21 70 |scgvaxd)|!felix!p|
|00002be0| 65 72 65 67 72 69 6e 65 | 21 6d 69 6b 65 0a 00 00 |eregrine|!mike...|
|00002bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003000| 6c 6f 67 66 69 6c 65 2d | 73 74 61 74 73 2f 6c 6f |logfile-|stats/lo|
|00003010| 67 66 69 6c 65 2e 61 77 | 6b 00 00 00 00 00 00 00 |gfile.aw|k.......|
|00003020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00003080| 20 20 20 37 30 31 30 20 | 20 34 34 30 34 30 35 35 | 7010 | 4404055|
|00003090| 30 33 31 20 20 31 30 37 | 37 34 00 20 00 00 00 00 |031 107|74. ....|
|000030a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003200| 23 20 6c 6f 67 66 69 6c | 65 2e 61 77 6b 20 2d 2d |# logfil|e.awk --|
|00003210| 20 72 65 61 64 20 61 20 | 75 75 63 70 20 4c 4f 47 | read a |uucp LOG|
|00003220| 46 49 4c 45 20 61 6e 64 | 20 66 69 6e 64 20 6f 75 |FILE and| find ou|
|00003230| 74 20 68 6f 77 20 6c 6f | 6e 67 0a 23 20 77 65 20 |t how lo|ng.# we |
|00003240| 73 70 65 6e 74 20 74 61 | 6c 6b 69 6e 67 20 74 6f |spent ta|lking to|
|00003250| 20 70 61 72 74 69 63 75 | 6c 61 72 20 70 6c 61 63 | particu|lar plac|
|00003260| 65 73 2e 20 20 28 41 6c | 73 6f 2c 20 72 65 6d 65 |es. (Al|so, reme|
|00003270| 6d 62 65 72 73 20 69 66 | 0a 23 20 74 68 65 20 74 |mbers if|.# the t|
|00003280| 69 6d 65 20 73 70 65 6e | 74 20 77 61 73 20 6f 75 |ime spen|t was ou|
|00003290| 72 20 63 61 6c 6c 20 6f | 72 20 74 68 65 69 72 20 |r call o|r their |
|000032a0| 63 61 6c 6c 29 2e 0a 23 | 0a 23 20 54 68 69 73 20 |call)..#|.# This |
|000032b0| 69 73 20 6e 69 63 65 20 | 66 6f 72 3a 20 31 29 20 |is nice |for: 1) |
|000032c0| 4b 6e 6f 77 69 6e 67 20 | 77 68 65 6e 20 79 6f 75 |Knowing |when you|
|000032d0| 20 6d 61 64 65 20 6c 6f | 6e 67 20 64 69 73 74 61 | made lo|ng dista|
|000032e0| 6e 63 65 0a 23 20 63 61 | 6c 6c 73 20 61 6e 64 20 |nce.# ca|lls and |
|000032f0| 77 68 65 72 65 20 74 6f | 2c 20 32 29 20 6b 6e 6f |where to|, 2) kno|
|00003300| 77 69 6e 67 20 68 6f 77 | 20 6d 75 63 68 20 6f 66 |wing how| much of|
|00003310| 20 74 68 65 20 6c 6f 61 | 64 20 62 65 74 77 65 65 | the loa|d betwee|
|00003320| 6e 0a 23 20 79 6f 75 20 | 61 6e 64 20 73 6f 6d 65 |n.# you |and some|
|00003330| 20 73 69 74 65 73 20 79 | 6f 75 27 72 65 20 63 61 | sites y|ou're ca|
|00003340| 72 72 79 69 6e 67 2e 0a | 23 0a 23 0a 23 20 54 68 |rrying..|#.#.# Th|
|00003350| 69 73 20 77 6f 72 6b 73 | 20 77 69 74 68 20 74 68 |is works| with th|
|00003360| 65 20 55 55 43 50 20 6c | 6f 67 20 66 69 6c 65 20 |e UUCP l|og file |
|00003370| 66 6f 72 6d 61 74 20 70 | 72 6f 64 75 63 65 64 20 |format p|roduced |
|00003380| 62 79 20 74 68 65 0a 23 | 20 75 75 63 70 20 64 65 |by the.#| uucp de|
|00003390| 6c 69 76 65 72 65 64 20 | 77 69 74 68 20 42 52 4c |livered |with BRL|
|000033a0| 20 52 65 6c 65 61 73 65 | 20 33 2e 20 20 28 69 2e | Release| 3. (i.|
|000033b0| 65 2e 20 34 2e 32 42 53 | 44 2c 20 69 2e 65 2e 20 |e. 4.2BS|D, i.e. |
|000033c0| 74 68 61 74 0a 23 20 2a | 65 78 74 72 65 6d 65 6c |that.# *|extremel|
|000033d0| 79 2a 20 68 61 63 6b 65 | 64 20 75 70 20 63 6f 6e |y* hacke|d up con|
|000033e0| 67 6c 6f 6d 65 72 61 74 | 69 6f 6e 20 6f 66 20 75 |glomerat|ion of u|
|000033f0| 75 63 70 27 73 20 74 68 | 61 74 20 70 72 6f 6d 70 |ucp's th|at promp|
|00003400| 74 65 64 0a 23 20 74 68 | 65 20 77 72 69 74 69 6e |ted.# th|e writin|
|00003410| 67 20 6f 66 20 68 6f 6e | 65 79 2d 64 61 6e 62 65 |g of hon|ey-danbe|
|00003420| 72 29 2e 20 0a 23 0a 23 | 0a 23 20 55 53 41 47 45 |r). .#.#|.# USAGE|
|00003430| 0a 23 09 61 77 6b 20 2d | 66 20 6c 6f 67 66 69 6c |.#.awk -|f logfil|
|00003440| 65 2e 61 77 6b 20 2f 75 | 73 72 2f 73 70 6f 6f 6c |e.awk /u|sr/spool|
|00003450| 2f 75 75 63 70 2f 4c 4f | 47 46 49 4c 45 0a 23 0a |/uucp/LO|GFILE.#.|
|00003460| 23 20 41 63 74 75 61 6c | 6c 79 20 2d 2d 20 49 20 |# Actual|ly -- I |
|00003470| 77 6f 75 6c 64 20 73 75 | 67 67 65 73 74 20 73 61 |would su|ggest sa|
|00003480| 76 69 6e 67 20 4c 4f 47 | 46 49 4c 45 20 73 6f 6d |ving LOG|FILE som|
|00003490| 65 77 68 65 72 65 20 61 | 6e 64 20 6d 61 6b 65 0a |ewhere a|nd make.|
|000034a0| 23 20 73 75 72 65 20 75 | 75 63 69 63 6f 20 69 73 |# sure u|ucico is|
|000034b0| 20 6e 6f 20 6c 6f 6e 67 | 65 72 20 77 72 69 74 69 | no long|er writi|
|000034c0| 6e 67 20 74 6f 20 69 74 | 2e 20 20 54 68 69 73 20 |ng to it|. This |
|000034d0| 77 61 79 20 79 6f 75 27 | 72 65 20 73 75 72 65 0a |way you'|re sure.|
|000034e0| 23 20 74 68 61 74 20 74 | 68 65 20 64 61 74 61 20 |# that t|he data |
|000034f0| 67 65 6e 65 72 61 74 65 | 64 20 69 73 20 76 61 6c |generate|d is val|
|00003500| 69 64 2e 20 20 57 68 61 | 74 20 49 20 64 6f 20 68 |id. Wha|t I do h|
|00003510| 65 72 65 20 69 73 3a 0a | 23 0a 23 09 73 65 74 20 |ere is:.|#.#.set |
|00003520| 60 64 61 74 65 60 0a 23 | 09 74 61 67 3d 24 32 2e |`date`.#|.tag=$2.|
|00003530| 24 37 0a 23 09 63 64 20 | 2f 75 73 72 2f 73 70 6f |$7.#.cd |/usr/spo|
|00003540| 6f 6c 2f 75 75 63 70 0a | 23 09 6d 76 20 4c 4f 47 |ol/uucp.|#.mv LOG|
|00003550| 46 49 4c 45 20 4f 4c 44 | 2f 4c 4f 47 46 49 4c 45 |FILE OLD|/LOGFILE|
|00003560| 2e 24 7b 74 61 67 7d 0a | 23 09 63 6f 6d 70 72 65 |.${tag}.|#.compre|
|00003570| 73 73 20 4f 4c 44 2f 4c | 4f 47 46 49 4c 45 2e 24 |ss OLD/L|OGFILE.$|
|00003580| 7b 74 61 67 7d 0a 23 09 | 75 6e 63 6f 6d 70 72 65 |{tag}.#.|uncompre|
|00003590| 73 73 20 4f 4c 44 2f 4c | 4f 47 46 49 4c 45 2e 24 |ss OLD/L|OGFILE.$|
|000035a0| 7b 74 61 67 7d 0a 23 09 | 61 77 6b 20 2d 66 20 2f |{tag}.#.|awk -f /|
|000035b0| 75 73 72 2f 6c 69 62 2f | 75 75 63 70 2f 6c 6f 67 |usr/lib/|uucp/log|
|000035c0| 66 69 6c 65 2e 61 77 6b | 20 4f 4c 44 2f 4c 4f 47 |file.awk| OLD/LOG|
|000035d0| 46 49 4c 45 2e 24 7b 74 | 61 67 7d 0a 23 0a 23 20 |FILE.${t|ag}.#.# |
|000035e0| 53 6f 6d 65 68 6f 77 2c | 20 63 6f 6d 70 72 65 73 |Somehow,| compres|
|000035f0| 73 20 77 61 69 74 73 20 | 75 6e 74 69 6c 20 6e 6f |s waits |until no|
|00003600| 62 6f 64 79 20 69 73 20 | 75 73 69 6e 67 20 74 68 |body is |using th|
|00003610| 65 20 66 69 6c 65 20 62 | 65 66 6f 72 65 20 69 74 |e file b|efore it|
|00003620| 0a 23 20 63 6f 6d 70 72 | 65 73 73 65 73 20 69 74 |.# compr|esses it|
|00003630| 2e 20 20 54 68 69 73 20 | 69 73 20 6e 69 63 65 20 |. This |is nice |
|00003640| 61 6e 64 20 63 6f 6e 76 | 65 6e 69 65 6e 74 2e 0a |and conv|enient..|
|00003650| 23 0a 23 0a 23 20 41 55 | 54 48 4f 52 0a 23 09 44 |#.#.# AU|THOR.#.D|
|00003660| 61 76 69 64 20 48 65 72 | 72 6f 6e 20 28 4e 50 52 |avid Her|ron (NPR|
|00003670| 20 6c 6f 76 65 72 29 0a | 23 09 63 62 6f 73 67 64 | lover).|#.cbosgd|
|00003680| 21 75 6b 6d 61 21 64 61 | 76 69 64 0a 23 09 55 6e |!ukma!da|vid.#.Un|
|00003690| 69 76 65 72 73 69 74 79 | 20 6f 66 20 4b 65 6e 74 |iversity| of Kent|
|000036a0| 75 63 6b 79 2c 20 43 6f | 6d 70 75 74 65 72 20 53 |ucky, Co|mputer S|
|000036b0| 63 69 65 6e 63 65 0a 23 | 0a 23 20 43 68 61 6e 67 |cience.#|.# Chang|
|000036c0| 65 73 3a 0a 23 09 31 2e | 20 54 6f 6f 6b 20 6f 75 |es:.#.1.| Took ou|
|000036d0| 74 20 69 67 6e 6f 72 65 | 20 63 61 70 61 62 69 6c |t ignore| capabil|
|000036e0| 69 74 79 28 69 66 20 79 | 6f 75 20 77 61 6e 74 20 |ity(if y|ou want |
|000036f0| 69 74 20 70 75 74 20 69 | 74 20 62 61 63 6b 20 69 |it put i|t back i|
|00003700| 6e 29 0a 23 09 32 2e 20 | 4d 61 64 65 20 63 6f 6d |n).#.2. |Made com|
|00003710| 70 61 74 69 62 6c 65 20 | 77 69 74 68 20 53 79 73 |patible |with Sys|
|00003720| 74 65 6d 20 56 20 72 65 | 6c 65 61 73 65 20 49 0a |tem V re|lease I.|
|00003730| 23 0a 23 20 45 44 49 54 | 4f 52 0a 23 09 4d 69 63 |#.# EDIT|OR.#.Mic|
|00003740| 68 61 65 6c 20 57 65 78 | 6c 65 72 0a 23 09 74 72 |hael Wex|ler.#.tr|
|00003750| 77 72 62 21 66 65 6c 69 | 78 21 70 65 72 65 67 72 |wrb!feli|x!peregr|
|00003760| 69 6e 65 21 6d 69 6b 65 | 0a 23 09 50 65 72 65 67 |ine!mike|.#.Pereg|
|00003770| 72 69 6e 65 20 53 79 73 | 74 65 6d 73 2c 20 49 6e |rine Sys|tems, In|
|00003780| 63 0a 23 0a 42 45 47 49 | 4e 09 7b 0a 09 23 20 73 |c.#.BEGI|N.{..# s|
|00003790| 74 61 74 65 73 0a 09 69 | 64 6c 65 20 3d 20 30 3b |tates..i|dle = 0;|
|000037a0| 20 63 61 6c 6c 69 6e 67 | 20 3d 20 31 3b 20 75 73 | calling| = 1; us|
|000037b0| 63 61 6c 6c 20 3d 20 32 | 3b 20 74 68 65 6d 63 61 |call = 2|; themca|
|000037c0| 6c 6c 20 3d 20 33 3b 0a | 09 74 72 75 65 20 3d 20 |ll = 3;.|.true = |
|000037d0| 31 3b 20 66 61 6c 73 65 | 20 3d 20 30 0a 09 7d 0a |1; false| = 0..}.|
|000037e0| 0a 23 20 57 65 27 72 65 | 20 63 61 6c 6c 69 6e 67 |.# We're| calling|
|000037f0| 20 73 6f 6d 65 20 70 6c | 61 63 65 2c 20 61 6e 64 | some pl|ace, and|
|00003800| 20 74 68 65 20 63 61 6c | 6c 20 70 61 72 74 20 68 | the cal|l part h|
|00003810| 61 73 20 61 63 74 75 61 | 6c 6c 79 20 77 6f 72 6b |as actua|lly work|
|00003820| 65 64 2e 0a 23 20 31 29 | 20 52 65 63 6f 72 64 20 |ed..# 1)| Record |
|00003830| 74 68 65 69 72 20 6e 61 | 6d 65 20 69 6e 20 74 68 |their na|me in th|
|00003840| 65 20 6d 61 73 74 65 72 | 20 6c 69 73 74 2e 0a 23 |e master| list..#|
|00003850| 20 32 29 20 52 65 6d 65 | 6d 62 65 72 20 74 68 61 | 2) Reme|mber tha|
|00003860| 74 20 77 65 27 72 65 20 | 70 6c 61 63 69 6e 67 20 |t we're |placing |
|00003870| 74 68 65 20 63 61 6c 6c | 2e 0a 0a 24 31 20 7e 20 |the call|...$1 ~ |
|00003880| 2f 2e 2a 21 2e 2a 2f 09 | 7b 0a 09 09 6e 20 3d 20 |/.*!.*/.|{...n = |
|00003890| 73 70 6c 69 74 28 24 31 | 2c 61 2c 22 21 22 29 3b |split($1|,a,"!");|
|000038a0| 0a 09 09 75 73 65 72 3d | 61 5b 32 5d 3b 0a 09 09 |...user=|a[2];...|
|000038b0| 73 79 73 3d 73 75 62 73 | 74 72 28 61 5b 31 5d 2c |sys=subs|tr(a[1],|
|000038c0| 31 2c 36 29 3b 0a 09 09 | 74 69 6d 65 3d 24 32 0a |1,6);...|time=$2.|
|000038d0| 09 09 73 74 61 74 75 73 | 3d 24 34 0a 09 09 65 76 |..status|=$4...ev|
|000038e0| 65 6e 74 3d 24 35 0a 09 | 7d 0a 24 31 20 21 7e 20 |ent=$5..|}.$1 !~ |
|000038f0| 2f 2e 2a 21 2e 2a 2f 09 | 7b 0a 09 75 73 65 72 3d |/.*!.*/.|{..user=|
|00003900| 24 31 0a 09 73 79 73 3d | 73 75 62 73 74 72 28 24 |$1..sys=|substr($|
|00003910| 32 2c 31 2c 36 29 0a 09 | 74 69 6d 65 3d 24 33 0a |2,1,6)..|time=$3.|
|00003920| 09 73 74 61 74 75 73 3d | 24 34 0a 09 65 76 65 6e |.status=|$4..even|
|00003930| 74 3d 24 35 0a 7d 0a 73 | 74 61 74 75 73 20 3d 3d |t=$5.}.s|tatus ==|
|00003940| 20 22 53 55 43 43 45 45 | 44 45 44 22 20 26 26 20 | "SUCCEE|DED" && |
|00003950| 65 76 65 6e 74 20 3d 3d | 20 22 28 63 61 6c 6c 22 |event ==| "(call"|
|00003960| 20 7b 0a 09 73 74 61 74 | 65 5b 73 79 73 5d 20 3d | {..stat|e[sys] =|
|00003970| 20 63 61 6c 6c 69 6e 67 | 0a 7d 0a 0a 23 20 41 20 | calling|.}..# A |
|00003980| 63 61 6c 6c 20 73 75 63 | 63 65 65 64 65 64 2e 20 |call suc|ceeded. |
|00003990| 20 45 69 74 68 65 72 20 | 74 68 65 79 20 63 61 6c | Either |they cal|
|000039a0| 6c 65 64 20 75 73 20 6f | 72 20 77 65 20 63 61 6c |led us o|r we cal|
|000039b0| 6c 65 64 20 74 68 65 6d | 2e 0a 23 20 73 74 61 74 |led them|..# stat|
|000039c0| 65 5b 73 79 73 5d 20 74 | 65 6c 6c 73 20 75 73 20 |e[sys] t|ells us |
|000039d0| 77 68 6f 20 69 73 20 64 | 6f 69 6e 67 20 74 68 65 |who is d|oing the|
|000039e0| 20 63 61 6c 6c 69 6e 67 | 2e 0a 23 20 48 61 76 65 | calling|..# Have|
|000039f0| 20 74 6f 20 72 65 6d 65 | 6d 62 65 72 20 74 68 65 | to reme|mber the|
|00003a00| 20 74 69 6d 65 2e 0a 0a | 73 74 61 74 75 73 20 3d | time...|status =|
|00003a10| 3d 20 22 4f 4b 22 20 26 | 26 20 65 76 65 6e 74 20 |= "OK" &|& event |
|00003a20| 3d 3d 20 22 28 73 74 61 | 72 74 75 70 29 22 20 7b |== "(sta|rtup)" {|
|00003a30| 0a 09 73 74 61 72 74 69 | 6d 65 5b 73 79 73 5d 20 |..starti|me[sys] |
|00003a40| 3d 20 74 69 6d 65 0a 09 | 69 66 20 28 73 74 61 74 |= time..|if (stat|
|00003a50| 65 5b 73 79 73 5d 20 3d | 3d 20 63 61 6c 6c 69 6e |e[sys] =|= callin|
|00003a60| 67 29 20 7b 0a 09 09 70 | 72 69 6e 74 66 28 22 63 |g) {...p|rintf("c|
|00003a70| 61 6c 6c 5c 74 6f 75 74 | 5c 74 25 73 5c 74 25 73 |all\tout|\t%s\t%s|
|00003a80| 5c 6e 22 2c 20 73 79 73 | 2c 20 74 69 6d 65 29 0a |\n", sys|, time).|
|00003a90| 09 09 73 74 61 74 65 5b | 73 79 73 5d 20 3d 20 75 |..state[|sys] = u|
|00003aa0| 73 63 61 6c 6c 0a 09 7d | 0a 09 65 6c 73 65 20 7b |scall..}|..else {|
|00003ab0| 0a 09 09 70 72 69 6e 74 | 66 28 22 63 61 6c 6c 5c |...print|f("call\|
|00003ac0| 74 69 6e 5c 74 25 73 5c | 74 25 73 5c 6e 22 2c 20 |tin\t%s\|t%s\n", |
|00003ad0| 73 79 73 2c 20 74 69 6d | 65 29 0a 09 09 73 74 61 |sys, tim|e)...sta|
|00003ae0| 74 65 5b 73 79 73 5d 20 | 3d 20 74 68 65 6d 63 61 |te[sys] |= themca|
|00003af0| 6c 6c 0a 09 7d 0a 7d 0a | 0a 0a 23 20 4f 75 72 20 |ll..}.}.|..# Our |
|00003b00| 6f 75 74 67 6f 69 6e 67 | 20 63 61 6c 6c 20 66 61 |outgoing| call fa|
|00003b10| 69 6c 65 64 2e 20 20 54 | 68 72 6f 77 20 61 77 61 |iled. T|hrow awa|
|00003b20| 79 20 6f 75 72 20 69 6e | 66 6f 72 6d 61 74 69 6f |y our in|formatio|
|00003b30| 6e 20 61 62 6f 75 74 20 | 74 68 65 20 63 61 6c 6c |n about |the call|
|00003b40| 2e 0a 0a 73 74 61 74 75 | 73 20 3d 3d 20 22 54 49 |...statu|s == "TI|
|00003b50| 4d 45 4f 55 54 22 20 7b | 0a 09 73 74 61 74 65 5b |MEOUT" {|..state[|
|00003b60| 73 79 73 5d 20 3d 20 69 | 64 6c 65 0a 09 7d 0a 0a |sys] = i|dle..}..|
|00003b70| 23 20 41 20 63 61 6c 6c | 20 66 69 6e 69 73 68 65 |# A call| finishe|
|00003b80| 64 20 65 69 74 68 65 72 | 20 73 75 63 63 65 73 73 |d either| success|
|00003b90| 66 75 6c 6c 79 20 6f 72 | 20 75 6e 73 75 63 63 65 |fully or| unsucce|
|00003ba0| 73 73 66 75 6c 6c 79 2e | 0a 23 20 48 61 76 65 20 |ssfully.|.# Have |
|00003bb0| 74 6f 20 61 64 64 20 69 | 6e 20 74 68 65 20 74 69 |to add i|n the ti|
|00003bc0| 6d 65 20 74 6f 20 74 68 | 65 20 61 70 70 72 6f 70 |me to th|e approp|
|00003bd0| 72 69 61 74 65 20 73 75 | 6d 2e 0a 23 0a 23 20 49 |riate su|m..#.# I|
|00003be0| 74 20 77 6f 75 6c 64 20 | 62 65 20 22 68 61 72 64 |t would |be "hard|
|00003bf0| 22 20 74 6f 20 63 61 6c | 63 75 6c 61 74 65 20 74 |" to cal|culate t|
|00003c00| 68 65 20 74 69 6d 65 20 | 63 6f 72 72 65 63 74 6c |he time |correctl|
|00003c10| 79 2e 20 20 53 6f 2c 20 | 49 27 6d 20 75 73 69 6e |y. So, |I'm usin|
|00003c20| 67 0a 23 20 61 20 68 65 | 75 72 69 73 74 69 63 20 |g.# a he|uristic |
|00003c30| 68 65 72 65 20 74 6f 20 | 6d 61 6b 65 20 69 74 20 |here to |make it |
|00003c40| 65 61 73 79 2e 20 20 49 | 20 61 73 73 75 6d 65 20 |easy. I| assume |
|00003c50| 74 68 61 74 20 6e 6f 20 | 70 68 6f 6e 65 20 63 61 |that no |phone ca|
|00003c60| 6c 6c 20 69 73 0a 23 20 | 67 6f 69 6e 67 20 74 6f |ll is.# |going to|
|00003c70| 20 6c 61 73 74 20 66 6f | 72 20 6c 6f 6e 67 65 72 | last fo|r longer|
|00003c80| 20 74 68 61 6e 20 31 20 | 64 61 79 2e 20 20 49 20 | than 1 |day. I |
|00003c90| 63 61 6c 63 75 6c 61 74 | 65 20 74 68 65 20 74 69 |calculat|e the ti|
|00003ca0| 6d 65 0a 23 20 66 6f 72 | 20 74 68 65 20 65 6e 64 |me.# for| the end|
|00003cb0| 69 6e 67 20 61 6e 64 20 | 62 65 67 69 6e 6e 69 6e |ing and |beginnin|
|00003cc0| 67 20 6f 66 20 74 68 65 | 20 63 61 6c 6c 2c 20 61 |g of the| call, a|
|00003cd0| 6e 64 20 69 66 20 69 74 | 27 73 20 6e 65 67 61 74 |nd if it|'s negat|
|00003ce0| 69 76 65 0a 23 20 49 20 | 61 64 64 20 32 34 20 68 |ive.# I |add 24 h|
|00003cf0| 6f 75 72 73 20 74 6f 20 | 69 74 2e 0a 23 0a 23 20 |ours to |it..#.# |
|00003d00| 49 20 6b 6e 6f 77 20 2e | 2e 2e 20 67 72 6f 61 64 |I know .|.. groad|
|00003d10| 79 20 74 6f 20 74 68 65 | 20 6d 61 78 2c 20 62 75 |y to the| max, bu|
|00003d20| 75 75 74 2e 2e 2e 0a 0a | 28 73 74 61 74 75 73 20 |uut.....|(status |
|00003d30| 3d 3d 20 22 4f 4b 22 20 | 7c 7c 20 73 74 61 74 75 |== "OK" ||| statu|
|00003d40| 73 20 3d 3d 20 22 46 41 | 49 4c 45 44 22 29 20 26 |s == "FA|ILED") &|
|00003d50| 26 20 65 76 65 6e 74 20 | 3d 3d 20 22 28 63 6f 6e |& event |== "(con|
|00003d60| 76 65 72 73 61 74 69 6f | 6e 22 20 7b 0a 09 70 72 |versatio|n" {..pr|
|00003d70| 69 6e 74 66 28 22 64 6f | 6e 65 5c 74 28 25 73 29 |intf("do|ne\t(%s)|
|00003d80| 5c 74 25 73 5c 74 25 73 | 5c 6e 22 2c 20 73 74 61 |\t%s\t%s|\n", sta|
|00003d90| 74 75 73 2c 20 73 79 73 | 2c 20 74 69 6d 65 29 0a |tus, sys|, time).|
|00003da0| 09 69 6e 74 65 72 76 61 | 6c 20 3d 20 30 0a 09 23 |.interva|l = 0..#|
|00003db0| 20 67 65 74 20 74 69 6d | 65 20 73 70 65 6e 74 20 | get tim|e spent |
|00003dc0| 69 6e 74 6f 20 22 69 6e | 74 65 72 76 61 6c 22 0a |into "in|terval".|
|00003dd0| 09 23 20 54 69 6d 65 20 | 66 6f 72 6d 61 74 20 69 |.# Time |format i|
|00003de0| 73 3a 20 22 28 6d 6f 6e | 2f 64 61 79 2d 68 72 3a |s: "(mon|/day-hr:|
|00003df0| 6d 69 6e 2d 70 69 64 29 | 22 0a 09 6e 20 3d 20 73 |min-pid)|"..n = s|
|00003e00| 70 6c 69 74 28 74 69 6d | 65 2c 20 6e 6e 2c 20 22 |plit(tim|e, nn, "|
|00003e10| 2d 22 29 0a 09 6e 20 3d | 20 73 70 6c 69 74 28 6e |-")..n =| split(n|
|00003e20| 6e 5b 32 5d 2c 20 68 72 | 6d 69 6e 2c 20 22 3a 22 |n[2], hr|min, ":"|
|00003e30| 29 0a 09 74 65 6e 64 20 | 3d 20 28 68 72 6d 69 6e |)..tend |= (hrmin|
|00003e40| 5b 31 5d 2a 36 30 29 20 | 2b 20 68 72 6d 69 6e 5b |[1]*60) |+ hrmin[|
|00003e50| 32 5d 0a 09 6e 20 3d 20 | 73 70 6c 69 74 28 73 74 |2]..n = |split(st|
|00003e60| 61 72 74 69 6d 65 5b 73 | 79 73 5d 2c 20 6e 6e 2c |artime[s|ys], nn,|
|00003e70| 20 22 2d 22 29 0a 09 6e | 20 3d 20 73 70 6c 69 74 | "-")..n| = split|
|00003e80| 28 6e 6e 5b 32 5d 2c 20 | 68 72 6d 69 6e 2c 20 22 |(nn[2], |hrmin, "|
|00003e90| 3a 22 29 0a 09 74 62 65 | 67 20 3d 20 28 68 72 6d |:")..tbe|g = (hrm|
|00003ea0| 69 6e 5b 31 5d 2a 36 30 | 29 20 2b 20 68 72 6d 69 |in[1]*60|) + hrmi|
|00003eb0| 6e 5b 32 5d 0a 0a 09 69 | 6e 74 65 72 76 61 6c 20 |n[2]...i|nterval |
|00003ec0| 3d 20 74 65 6e 64 20 2d | 20 74 62 65 67 0a 09 69 |= tend -| tbeg..i|
|00003ed0| 66 20 28 69 6e 74 65 72 | 76 61 6c 20 3c 20 30 29 |f (inter|val < 0)|
|00003ee0| 0a 09 09 69 6e 74 65 72 | 76 61 6c 20 2b 3d 20 28 |...inter|val += (|
|00003ef0| 32 34 2a 36 30 29 0a 0a | 09 69 66 20 28 73 74 61 |24*60)..|.if (sta|
|00003f00| 74 65 5b 73 79 73 5d 20 | 3d 3d 20 75 73 63 61 6c |te[sys] |== uscal|
|00003f10| 6c 29 0a 09 09 6f 75 72 | 74 69 6d 65 5b 73 79 73 |l)...our|time[sys|
|00003f20| 5d 20 2b 3d 20 69 6e 74 | 65 72 76 61 6c 0a 09 65 |] += int|erval..e|
|00003f30| 6c 73 65 0a 09 09 74 68 | 65 69 72 74 69 6d 65 5b |lse...th|eirtime[|
|00003f40| 73 79 73 5d 20 2b 3d 20 | 69 6e 74 65 72 76 61 6c |sys] += |interval|
|00003f50| 0a 09 7d 0a 0a 23 20 41 | 6c 6c 20 74 68 61 74 27 |..}..# A|ll that'|
|00003f60| 73 20 6c 65 66 74 20 74 | 6f 20 64 6f 20 6e 6f 77 |s left t|o do now|
|00003f70| 20 69 73 20 74 6f 20 66 | 65 65 64 20 74 68 65 20 | is to f|eed the |
|00003f80| 63 68 69 63 6b 65 6e 73 | 20 61 6e 64 20 67 6f 20 |chickens| and go |
|00003f90| 68 6f 6d 65 0a 0a 45 4e | 44 09 7b 0a 09 66 6f 72 |home..EN|D.{..for|
|00003fa0| 20 28 69 20 69 6e 20 6f | 75 72 74 69 6d 65 29 0a | (i in o|urtime).|
|00003fb0| 09 09 70 72 69 6e 74 66 | 28 22 25 73 20 2d 2d 20 |..printf|("%s -- |
|00003fc0| 6f 75 72 74 69 6d 65 20 | 3d 20 25 64 5c 74 74 68 |ourtime |= %d\tth|
|00003fd0| 65 69 72 74 69 6d 65 20 | 3d 20 25 64 5c 6e 22 2c |eirtime |= %d\n",|
|00003fe0| 20 5c 0a 09 09 09 69 2c | 20 6f 75 72 74 69 6d 65 | \....i,| ourtime|
|00003ff0| 5b 69 5d 2c 20 74 68 65 | 69 72 74 69 6d 65 5b 69 |[i], the|irtime[i|
+--------+-------------------------+-------------------------+--------+--------+