home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/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 perl_archie/, mode 755 , uid 27 , gid 27 , size 0 , seconds 5057221016
| default
| |
98%
| file
| data
| default
| |
100%
| dearkID
| deark: tar
| default
| |
100%
| siegfried
| x-fmt/265 Tape Archive Format
| default
| |
100%
| lsar
| Tar
| default (weak)
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| Pre-POSIX tar archive
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 70 65 72 6c 5f 61 72 63 | 68 69 65 2f 00 00 00 00 |perl_arc|hie/....|
|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 20 |.... 7|55 . |
|00000070| 32 37 20 00 20 20 20 20 | 32 37 20 00 20 20 20 20 |27 . |27 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 35 30 35 37 32 32 31 | 0 | 5057221|
|00000090| 30 31 36 20 20 20 36 32 | 35 35 00 20 00 00 00 00 |016 62|55. ....|
|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| 70 65 72 6c 5f 61 72 63 | 68 69 65 2f 52 45 41 44 |perl_arc|hie/READ|
|00000210| 4d 45 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ME......|........|
|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 20 |.... 6|44 . |
|00000270| 32 37 20 00 20 20 20 20 | 32 37 20 00 20 20 20 20 |27 . |27 . |
|00000280| 20 20 31 33 31 33 36 20 | 20 35 30 35 37 32 32 31 | 13136 | 5057221|
|00000290| 30 31 32 20 20 20 37 32 | 34 32 00 20 00 00 00 00 |012 72|42. ....|
|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| 23 20 43 6f 70 79 72 69 | 67 68 74 20 28 43 29 20 |# Copyri|ght (C) |
|00000410| 4b 68 75 6e 20 59 65 65 | 20 46 75 6e 67 20 63 6c |Khun Yee| Fung cl|
|00000420| 69 70 70 65 72 40 63 73 | 64 2e 75 77 6f 2e 63 61 |ipper@cs|d.uwo.ca|
|00000430| 20 31 39 39 31 0a 23 20 | 59 6f 75 20 63 61 6e 20 | 1991.# |You can |
|00000440| 64 6f 20 61 6e 79 74 68 | 69 6e 67 20 74 6f 20 74 |do anyth|ing to t|
|00000450| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 65 78 63 65 |his prog|ram exce|
|00000460| 70 74 20 73 65 6c 6c 69 | 6e 67 20 69 74 20 66 6f |pt selli|ng it fo|
|00000470| 72 20 70 72 6f 66 69 74 | 20 6f 72 0a 23 20 70 72 |r profit| or.# pr|
|00000480| 65 74 65 6e 64 69 6e 67 | 20 79 6f 75 20 77 72 6f |etending| you wro|
|00000490| 74 65 20 69 74 2e 0a 23 | 20 24 49 64 3a 20 52 45 |te it..#| $Id: RE|
|000004a0| 41 44 4d 45 2c 76 20 33 | 2e 36 20 31 39 39 31 2f |ADME,v 3|.6 1991/|
|000004b0| 30 38 2f 30 33 20 30 30 | 3a 31 35 3a 32 32 20 63 |08/03 00|:15:22 c|
|000004c0| 6c 69 70 70 65 72 20 45 | 78 70 20 63 6c 69 70 70 |lipper E|xp clipp|
|000004d0| 65 72 20 24 0a 0a 54 68 | 69 73 20 52 45 41 44 4d |er $..Th|is READM|
|000004e0| 45 20 66 69 6c 65 20 69 | 73 20 66 6f 72 20 76 65 |E file i|s for ve|
|000004f0| 72 73 69 6f 6e 20 33 2e | 78 20 6f 66 20 74 68 65 |rsion 3.|x of the|
|00000500| 20 61 72 63 68 69 65 20 | 70 72 6f 67 72 61 6d 2e | archie |program.|
|00000510| 0a 0a 4e 65 77 0a 2d 2d | 2d 0a 0a 49 20 66 6f 72 |..New.--|-..I for|
|00000520| 67 6f 74 20 74 6f 20 69 | 6e 63 6c 75 64 65 20 66 |got to i|nclude f|
|00000530| 69 78 70 61 74 68 20 61 | 6e 64 20 4d 61 6b 65 66 |ixpath a|nd Makef|
|00000540| 69 6c 65 20 69 6e 20 74 | 68 65 20 6c 61 73 74 20 |ile in t|he last |
|00000550| 64 69 73 74 72 69 62 75 | 74 69 6f 6e 2e 0a 53 6f |distribu|tion..So|
|00000560| 72 72 79 2e 20 54 68 65 | 79 20 61 72 65 20 6e 6f |rry. The|y are no|
|00000570| 77 20 69 6e 63 6c 75 64 | 65 64 2e 0a 0a 43 68 61 |w includ|ed...Cha|
|00000580| 6e 67 65 73 20 66 6f 72 | 20 56 65 72 73 69 6f 6e |nges for| Version|
|00000590| 20 33 2e 36 0a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | 3.6.---|--------|
|000005a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 0a 31 2e |--------|----..1.|
|000005b0| 20 54 68 65 20 2d 61 6c | 6f 6e 67 20 6f 70 74 69 | The -al|ong opti|
|000005c0| 6f 6e 20 69 73 20 6f 6e | 20 61 67 61 69 6e 2e 20 |on is on| again. |
|000005d0| 54 68 69 73 20 6f 70 74 | 69 6f 6e 20 69 73 20 75 |This opt|ion is u|
|000005e0| 73 65 66 75 6c 20 66 6f | 72 20 61 74 20 6c 65 61 |seful fo|r at lea|
|000005f0| 73 74 0a 6f 6e 65 20 70 | 65 72 73 6f 6e 20 61 6e |st.one p|erson an|
|00000600| 64 20 49 20 74 68 69 6e | 6b 20 69 73 20 75 73 65 |d I thin|k is use|
|00000610| 66 75 6c 20 69 66 20 74 | 68 65 20 71 75 65 72 79 |ful if t|he query|
|00000620| 20 64 69 65 73 20 69 6e | 20 6d 69 64 77 61 79 2e | dies in| midway.|
|00000630| 20 41 74 20 6c 65 61 73 | 74 0a 61 20 70 61 72 74 | At leas|t.a part|
|00000640| 69 61 6c 20 72 65 73 75 | 6c 74 20 69 73 20 62 65 |ial resu|lt is be|
|00000650| 74 74 65 72 20 74 68 61 | 6e 20 6e 6f 74 68 69 6e |tter tha|n nothin|
|00000660| 67 2e 0a 0a 32 2e 20 53 | 6f 6d 65 20 6f 74 68 65 |g...2. S|ome othe|
|00000670| 72 20 73 6d 61 6c 6c 20 | 63 68 61 6e 67 65 73 20 |r small |changes |
|00000680| 61 72 65 20 64 6f 6e 65 | 2e 0a 0a 33 2e 20 53 6f |are done|...3. So|
|00000690| 6d 65 20 64 65 74 61 69 | 6c 73 20 69 6e 20 74 68 |me detai|ls in th|
|000006a0| 65 20 6d 61 6e 20 70 61 | 67 65 20 61 72 65 20 63 |e man pa|ge are c|
|000006b0| 68 61 6e 67 65 64 2e 0a | 0a 34 2e 20 43 6f 6e 73 |hanged..|.4. Cons|
|000006c0| 69 64 65 72 20 74 68 69 | 73 20 61 20 67 61 6d 6d |ider thi|s a gamm|
|000006d0| 61 20 72 65 6c 65 61 73 | 65 2e 0a 0a 43 68 61 6e |a releas|e...Chan|
|000006e0| 67 65 73 20 73 69 6e 63 | 65 20 76 65 72 73 69 6f |ges sinc|e versio|
|000006f0| 6e 20 32 2e 78 78 0a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |n 2.xx.-|--------|
|00000700| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000710| 2d 0a 0a 20 20 31 2e 20 | 41 20 73 6f 72 74 20 6f |-.. 1. |A sort o|
|00000720| 70 74 69 6f 6e 20 69 73 | 20 61 64 64 65 64 2e 20 |ption is| added. |
|00000730| 54 68 65 20 6c 69 73 74 | 73 20 63 61 6e 20 62 65 |The list|s can be|
|00000740| 20 73 6f 72 74 65 64 20 | 62 79 20 74 68 65 20 64 | sorted |by the d|
|00000750| 6f 6d 61 69 6e 20 6f 66 | 0a 20 20 74 68 65 20 68 |omain of|. the h|
|00000760| 6f 73 74 20 6f 72 20 62 | 79 20 74 68 65 20 64 61 |ost or b|y the da|
|00000770| 74 65 2e 20 52 65 76 65 | 72 73 65 20 6f 72 64 65 |te. Reve|rse orde|
|00000780| 72 69 6e 67 20 69 73 20 | 73 75 70 70 6f 72 74 65 |ring is |supporte|
|00000790| 64 20 74 6f 6f 2e 20 54 | 68 65 20 68 6f 73 74 0a |d too. T|he host.|
|000007a0| 20 20 6f 72 64 65 72 69 | 6e 67 20 69 73 20 62 79 | orderi|ng is by|
|000007b0| 20 61 20 75 73 65 72 20 | 64 65 66 69 6e 61 62 6c | a user |definabl|
|000007c0| 65 20 61 72 72 61 79 2e | 20 54 68 69 73 20 69 73 |e array.| This is|
|000007d0| 20 75 73 65 66 75 6c 20 | 69 66 20 74 68 65 20 6c | useful |if the l|
|000007e0| 69 73 74 0a 20 20 68 61 | 73 20 74 68 65 20 64 6f |ist. ha|s the do|
|000007f0| 6d 61 69 6e 73 20 69 6e | 20 6f 72 64 65 72 20 6f |mains in| order o|
|00000800| 66 20 6e 65 61 72 65 73 | 74 20 74 6f 20 66 61 72 |f neares|t to far|
|00000810| 74 68 65 73 74 20 66 72 | 6f 6d 20 74 68 65 20 73 |thest fr|om the s|
|00000820| 79 73 74 65 6d 20 74 68 | 65 0a 20 20 75 73 65 72 |ystem th|e. user|
|00000830| 20 69 73 20 75 73 69 6e | 67 2e 20 43 68 65 63 6b | is usin|g. Check|
|00000840| 20 20 73 79 73 74 65 6d | 2e 61 72 63 68 69 65 72 | system|.archier|
|00000850| 63 20 74 6f 20 73 65 74 | 20 74 68 65 20 73 79 73 |c to set| the sys|
|00000860| 74 65 6d 20 64 65 66 61 | 75 6c 74 20 6f 72 64 65 |tem defa|ult orde|
|00000870| 72 69 6e 67 2e 0a 0a 20 | 20 32 2e 20 56 65 72 73 |ring... | 2. Vers|
|00000880| 69 6f 6e 20 6f 70 74 69 | 6f 6e 20 69 73 20 73 75 |ion opti|on is su|
|00000890| 70 70 6f 72 74 65 64 2e | 20 57 68 65 6e 20 74 68 |pported.| When th|
|000008a0| 69 73 20 6f 70 74 69 6f | 6e 20 69 73 20 73 70 65 |is optio|n is spe|
|000008b0| 63 69 66 69 65 64 2c 20 | 74 68 65 0a 20 20 76 65 |cified, |the. ve|
|000008c0| 72 73 69 6f 6e 20 6e 75 | 6d 62 65 72 20 6f 66 20 |rsion nu|mber of |
|000008d0| 74 68 65 20 70 72 6f 67 | 72 61 6d 20 77 69 6c 6c |the prog|ram will|
|000008e0| 20 62 65 20 70 72 69 6e | 74 65 64 2e 0a 0a 20 20 | be prin|ted... |
|000008f0| 33 2e 20 41 20 64 69 66 | 66 65 72 65 6e 74 20 73 |3. A dif|ferent s|
|00000900| 74 61 72 74 75 70 20 66 | 69 6c 65 20 63 61 6e 20 |tartup f|ile can |
|00000910| 62 65 20 73 70 65 63 69 | 66 69 65 64 2e 0a 0a 20 |be speci|fied... |
|00000920| 20 34 2e 20 49 20 68 61 | 76 65 20 64 65 63 69 64 | 4. I ha|ve decid|
|00000930| 65 64 20 6e 6f 74 20 74 | 6f 20 64 6f 20 70 61 63 |ed not t|o do pac|
|00000940| 6b 65 74 20 6f 72 64 65 | 72 69 6e 67 20 6d 79 73 |ket orde|ring mys|
|00000950| 65 6c 66 2e 20 53 6f 20 | 74 68 65 20 2d 61 6c 6f |elf. So |the -alo|
|00000960| 6e 67 0a 20 20 6f 70 74 | 69 6f 6e 20 69 73 20 67 |ng. opt|ion is g|
|00000970| 6f 6e 65 2e 0a 0a 20 20 | 35 2e 20 54 68 65 20 70 |one... |5. The p|
|00000980| 61 72 74 20 6f 6e 20 6e | 65 74 77 6f 72 6b 69 6e |art on n|etworkin|
|00000990| 67 20 68 61 73 20 62 65 | 65 6e 20 63 6f 6d 70 6c |g has be|en compl|
|000009a0| 65 74 65 6c 79 20 72 65 | 77 72 69 74 74 65 6e 2e |etely re|written.|
|000009b0| 20 49 20 68 6f 70 65 20 | 69 74 0a 20 20 69 73 20 | I hope |it. is |
|000009c0| 6d 6f 72 65 20 63 6f 72 | 72 65 63 74 20 74 68 61 |more cor|rect tha|
|000009d0| 6e 20 74 68 65 20 6c 61 | 73 74 20 74 77 6f 20 72 |n the la|st two r|
|000009e0| 65 6c 65 61 73 65 73 2e | 0a 0a 20 20 36 2e 20 54 |eleases.|.. 6. T|
|000009f0| 68 65 72 65 20 61 72 65 | 20 6f 74 68 65 72 20 73 |here are| other s|
|00000a00| 6d 61 6c 6c 20 63 68 61 | 6e 67 65 73 2e 20 49 20 |mall cha|nges. I |
|00000a10| 63 61 6e 27 74 20 6c 69 | 73 74 20 74 68 65 6d 20 |can't li|st them |
|00000a20| 61 6c 6c 2e 0a 0a 49 20 | 77 69 6c 6c 20 6e 6f 74 |all...I |will not|
|00000a30| 20 61 64 64 20 61 6e 79 | 20 6d 6f 72 65 20 66 65 | add any| more fe|
|00000a40| 61 74 75 72 65 73 20 69 | 6e 20 74 68 65 20 70 72 |atures i|n the pr|
|00000a50| 6f 67 72 61 6d 2e 20 49 | 74 20 69 73 20 74 6f 6f |ogram. I|t is too|
|00000a60| 20 62 69 67 20 65 76 65 | 6e 20 6e 6f 77 2e 0a 0a | big eve|n now...|
|00000a70| 46 65 61 74 75 72 65 20 | 6e 6f 74 20 69 6d 70 6c |Feature |not impl|
|00000a80| 65 6d 65 6e 74 65 64 0a | 2d 2d 2d 2d 2d 2d 2d 2d |emented.|--------|
|00000a90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00000aa0| 0a 20 20 49 20 68 61 76 | 65 20 74 68 6f 75 67 68 |. I hav|e though|
|00000ab0| 74 20 61 62 6f 75 74 20 | 69 6d 70 6c 65 6d 65 6e |t about |implemen|
|00000ac0| 74 69 6e 67 20 61 20 61 | 75 74 6f 2d 66 74 70 20 |ting a a|uto-ftp |
|00000ad0| 6f 70 74 69 6f 6e 20 69 | 6e 20 74 68 65 20 70 72 |option i|n the pr|
|00000ae0| 6f 67 72 61 6d 0a 20 20 | 73 6f 20 74 68 61 74 20 |ogram. |so that |
|00000af0| 74 68 65 20 70 72 6f 67 | 72 61 6d 20 77 69 6c 6c |the prog|ram will|
|00000b00| 20 61 73 6b 20 74 68 65 | 20 75 73 65 72 20 69 66 | ask the| user if|
|00000b10| 20 61 20 66 69 6c 65 20 | 73 68 6f 75 6c 64 20 62 | a file |should b|
|00000b20| 65 20 74 72 61 6e 73 66 | 65 72 72 65 64 0a 20 20 |e transf|erred. |
|00000b30| 66 72 6f 6d 20 74 68 65 | 20 68 6f 73 74 20 62 79 |from the| host by|
|00000b40| 20 61 6e 6f 6e 79 6d 6f | 75 73 20 66 74 70 2e 20 | anonymo|us ftp. |
|00000b50| 49 20 68 61 76 65 20 61 | 6c 6c 20 74 68 65 20 63 |I have a|ll the c|
|00000b60| 6f 64 65 20 66 6f 72 20 | 61 20 66 74 70 20 63 6c |ode for |a ftp cl|
|00000b70| 69 65 6e 74 0a 20 20 69 | 6e 20 70 65 72 6c 20 28 |ient. i|n perl (|
|00000b80| 49 20 68 61 76 65 20 61 | 6c 77 61 79 73 20 75 73 |I have a|lways us|
|00000b90| 65 64 20 74 68 69 73 20 | 70 65 72 6c 20 66 74 70 |ed this |perl ftp|
|00000ba0| 20 74 68 61 6e 20 74 68 | 65 20 73 74 61 6e 64 61 | than th|e standa|
|00000bb0| 72 64 20 66 74 70 29 2e | 20 49 0a 20 20 68 61 76 |rd ftp).| I. hav|
|00000bc0| 65 20 74 68 6f 75 67 68 | 74 20 6f 75 74 20 68 6f |e though|t out ho|
|00000bd0| 77 20 69 74 20 73 68 6f | 75 6c 64 20 62 65 20 69 |w it sho|uld be i|
|00000be0| 6d 70 6c 65 6d 65 6e 74 | 65 64 2e 20 54 68 65 20 |mplement|ed. The |
|00000bf0| 68 6f 73 74 20 73 6f 72 | 74 69 6e 67 0a 20 20 6d |host sor|ting. m|
|00000c00| 65 74 68 6f 64 20 77 61 | 73 20 74 68 6f 75 67 68 |ethod wa|s though|
|00000c10| 74 20 6f 75 74 20 69 6e | 69 74 69 61 6c 6c 79 20 |t out in|itially |
|00000c20| 74 6f 20 73 75 70 70 6f | 72 74 20 74 68 69 73 20 |to suppo|rt this |
|00000c30| 6f 70 74 69 6f 6e 20 73 | 6f 20 74 68 61 74 20 74 |option s|o that t|
|00000c40| 68 65 0a 20 20 6e 65 61 | 72 65 73 74 20 68 6f 73 |he. nea|rest hos|
|00000c50| 74 73 20 61 72 65 20 61 | 6c 77 61 79 73 20 61 73 |ts are a|lways as|
|00000c60| 6b 65 64 20 66 69 72 73 | 74 2e 20 42 75 74 20 74 |ked firs|t. But t|
|00000c70| 68 65 20 6f 70 74 69 6f | 6e 20 77 69 6c 6c 20 61 |he optio|n will a|
|00000c80| 64 64 0a 20 20 61 6e 6f | 74 68 65 72 20 31 30 6b |dd. ano|ther 10k|
|00000c90| 20 62 79 74 65 73 20 74 | 6f 20 74 68 65 20 70 72 | bytes t|o the pr|
|00000ca0| 6f 67 72 61 6d 2e 20 49 | 20 61 6d 20 6e 6f 74 20 |ogram. I| am not |
|00000cb0| 68 61 70 70 79 20 61 62 | 6f 75 74 20 74 68 65 20 |happy ab|out the |
|00000cc0| 73 69 7a 65 20 6f 66 0a | 20 20 74 68 65 20 70 72 |size of.| the pr|
|00000cd0| 6f 67 72 61 6d 20 65 76 | 65 6e 20 6e 6f 77 2e 20 |ogram ev|en now. |
|00000ce0| 41 73 20 77 65 20 63 61 | 6e 20 61 6c 77 61 79 73 |As we ca|n always|
|00000cf0| 20 73 65 74 20 74 68 65 | 20 66 6f 72 6d 61 74 20 | set the| format |
|00000d00| 6f 66 20 74 68 65 20 6f | 75 74 70 75 74 0a 20 20 |of the o|utput. |
|00000d10| 74 6f 20 61 20 70 61 72 | 74 69 63 75 6c 61 72 20 |to a par|ticular |
|00000d20| 66 6f 72 6d 61 74 20 61 | 6e 64 20 70 69 70 65 20 |format a|nd pipe |
|00000d30| 74 68 65 20 6f 75 74 70 | 75 74 20 74 6f 20 61 6e |the outp|ut to an|
|00000d40| 6f 74 68 65 72 20 70 72 | 6f 67 72 61 6d 20 66 6f |other pr|ogram fo|
|00000d50| 72 0a 20 20 61 6e 6f 6e | 79 6d 6f 75 73 20 66 74 |r. anon|ymous ft|
|00000d60| 70 2c 20 49 20 68 61 76 | 65 20 64 65 63 69 64 65 |p, I hav|e decide|
|00000d70| 64 20 61 67 61 69 6e 73 | 74 20 69 6d 70 6c 65 6d |d agains|t implem|
|00000d80| 65 6e 74 69 6e 67 20 74 | 68 69 73 20 66 65 61 74 |enting t|his feat|
|00000d90| 75 72 65 2e 20 49 66 0a | 20 20 79 6f 75 20 77 61 |ure. If.| you wa|
|00000da0| 6e 74 20 74 6f 20 69 6d | 70 6c 65 6d 65 6e 74 20 |nt to im|plement |
|00000db0| 69 74 2c 20 49 20 63 61 | 6e 20 73 75 70 70 6c 79 |it, I ca|n supply|
|00000dc0| 20 79 6f 75 20 74 68 65 | 20 70 65 72 6c 20 66 74 | you the| perl ft|
|00000dd0| 70 20 63 6c 69 65 6e 74 | 20 63 6f 64 65 2e 0a 0a |p client| code...|
|00000de0| 42 72 69 65 66 20 49 6e | 74 72 6f 64 75 63 74 69 |Brief In|troducti|
|00000df0| 6f 6e 0a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |on.-----|--------|
|00000e00| 2d 2d 2d 2d 2d 0a 0a 54 | 68 69 73 20 69 73 20 61 |-----..T|his is a|
|00000e10| 20 61 72 63 68 69 65 20 | 63 6c 69 65 6e 74 20 77 | archie |client w|
|00000e20| 72 69 74 74 65 6e 20 69 | 6e 20 50 65 72 6c 20 75 |ritten i|n Perl u|
|00000e30| 73 69 6e 67 20 74 68 65 | 20 70 72 6f 73 70 65 72 |sing the| prosper|
|00000e40| 6f 20 70 72 6f 74 6f 63 | 6f 6c 2e 0a 49 74 20 69 |o protoc|ol..It i|
|00000e50| 73 20 73 74 61 6e 64 61 | 6c 6f 6e 65 20 77 69 74 |s standa|lone wit|
|00000e60| 68 20 6e 6f 20 64 65 70 | 65 6e 64 61 6e 63 65 20 |h no dep|endance |
|00000e70| 6f 6e 20 74 68 65 20 70 | 72 6f 73 70 65 72 6f 20 |on the p|rospero |
|00000e80| 63 6f 64 65 20 69 6e 0a | 70 72 6f 73 70 65 72 6f |code in.|prospero|
|00000e90| 2e 74 61 72 2e 5a 20 6f | 6e 20 6a 75 6e 65 2e 63 |.tar.Z o|n june.c|
|00000ea0| 73 2e 77 61 73 68 69 6e | 67 74 6f 6e 2e 65 64 75 |s.washin|gton.edu|
|00000eb0| 2e 20 49 20 61 6d 20 6e | 6f 74 20 73 75 72 65 20 |. I am n|ot sure |
|00000ec0| 74 68 69 73 20 70 72 6f | 67 72 61 6d 0a 69 73 20 |this pro|gram.is |
|00000ed0| 75 73 65 66 75 6c 20 61 | 73 20 74 68 65 72 65 20 |useful a|s there |
|00000ee0| 69 73 20 61 6c 73 6f 20 | 61 20 73 74 61 6e 64 61 |is also |a standa|
|00000ef0| 6c 6f 6e 65 20 61 72 63 | 68 69 65 20 70 72 6f 67 |lone arc|hie prog|
|00000f00| 72 61 6d 20 69 6e 20 74 | 68 61 74 20 66 69 6c 65 |ram in t|hat file|
|00000f10| 0a 61 72 63 68 69 76 65 | 2c 20 65 78 63 65 70 74 |.archive|, except|
|00000f20| 20 74 68 61 74 20 79 6f | 75 20 68 61 76 65 20 74 | that yo|u have t|
|00000f30| 6f 20 63 6f 6d 70 69 6c | 65 20 74 68 65 20 70 72 |o compil|e the pr|
|00000f40| 6f 73 70 65 72 6f 20 66 | 69 6c 65 20 73 79 73 74 |ospero f|ile syst|
|00000f50| 65 6d 20 74 6f 6f 2e 0a | 53 6f 2c 20 69 66 20 79 |em too..|So, if y|
|00000f60| 6f 75 20 74 68 69 6e 6b | 20 79 6f 75 20 61 72 65 |ou think| you are|
|00000f70| 20 6d 6f 72 65 20 69 6e | 74 65 72 65 73 74 65 64 | more in|terested|
|00000f80| 20 69 6e 20 61 20 43 20 | 61 72 63 68 69 65 20 63 | in a C |archie c|
|00000f90| 6c 69 65 6e 74 2c 20 64 | 6f 20 67 72 61 62 0a 74 |lient, d|o grab.t|
|00000fa0| 68 61 74 20 66 69 6c 65 | 20 61 72 63 68 69 76 65 |hat file| archive|
|00000fb0| 20 61 6e 64 20 69 6e 73 | 74 61 6c 6c 20 74 68 65 | and ins|tall the|
|00000fc0| 20 61 72 63 68 69 65 20 | 63 6c 69 65 6e 74 20 74 | archie |client t|
|00000fd0| 68 61 74 20 63 6f 6d 65 | 73 20 77 69 74 68 20 69 |hat come|s with i|
|00000fe0| 74 2e 0a 0a 54 6f 20 67 | 65 74 20 6d 6f 72 65 20 |t...To g|et more |
|00000ff0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 61 62 6f 75 |informat|ion abou|
|00001000| 74 20 70 72 6f 73 70 65 | 72 6f 2c 20 79 6f 75 20 |t prospe|ro, you |
|00001010| 63 61 6e 20 73 65 6e 64 | 20 61 20 6d 65 73 73 61 |can send| a messa|
|00001020| 67 65 20 74 6f 0a 69 6e | 66 6f 2d 70 72 6f 73 70 |ge to.in|fo-prosp|
|00001030| 65 72 6f 40 69 73 69 2e | 65 64 75 2e 0a 0a 41 62 |ero@isi.|edu...Ab|
|00001040| 6f 75 74 20 50 72 6f 73 | 70 65 72 6f 0a 2d 2d 2d |out Pros|pero.---|
|00001050| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0a 0a 57 69 74 |--------|---..Wit|
|00001060| 68 20 70 72 6f 73 70 65 | 72 6f 2c 20 6d 61 6e 79 |h prospe|ro, many|
|00001070| 20 74 68 69 6e 67 73 20 | 74 68 61 74 20 61 72 65 | things |that are|
|00001080| 20 74 65 64 69 6f 75 73 | 20 74 6f 20 64 6f 20 62 | tedious| to do b|
|00001090| 79 20 6c 6f 67 69 6e 0a | 69 6e 74 65 72 61 63 74 |y login.|interact|
|000010a0| 69 76 65 6c 79 20 74 6f | 20 61 6e 20 61 72 63 68 |ively to| an arch|
|000010b0| 69 65 20 73 65 72 76 65 | 72 20 61 72 65 20 73 69 |ie serve|r are si|
|000010c0| 6d 70 6c 65 2e 20 46 6f | 72 20 65 78 61 6d 70 6c |mple. Fo|r exampl|
|000010d0| 65 2c 20 74 68 65 20 6f | 75 74 70 75 74 0a 66 72 |e, the o|utput.fr|
|000010e0| 6f 6d 20 61 6e 20 61 72 | 63 68 69 65 20 63 6c 69 |om an ar|chie cli|
|000010f0| 65 6e 74 20 75 73 69 6e | 67 20 74 68 65 20 70 72 |ent usin|g the pr|
|00001100| 6f 73 70 65 72 6f 20 70 | 72 6f 74 6f 63 6f 6c 20 |ospero p|rotocol |
|00001110| 63 61 6e 20 62 65 20 70 | 61 72 73 65 64 20 61 6e |can be p|arsed an|
|00001120| 64 0a 66 75 72 74 68 65 | 72 20 70 72 6f 63 65 73 |d.furthe|r proces|
|00001130| 73 65 64 20 77 69 74 68 | 6f 75 74 20 67 6f 69 6e |sed with|out goin|
|00001140| 67 20 74 68 72 6f 75 67 | 68 20 74 68 65 20 6d 61 |g throug|h the ma|
|00001150| 69 6c 20 73 79 73 74 65 | 6d 2e 20 54 68 65 20 73 |il syste|m. The s|
|00001160| 79 73 74 65 6d 0a 6c 6f | 61 64 20 6f 6e 20 74 68 |ystem.lo|ad on th|
|00001170| 65 20 61 72 63 68 69 65 | 20 73 65 72 76 65 72 20 |e archie| server |
|00001180| 77 69 6c 6c 20 73 75 72 | 65 6c 79 20 6c 6f 77 65 |will sur|ely lowe|
|00001190| 72 20 62 65 63 61 75 73 | 65 20 6f 66 20 74 68 65 |r becaus|e of the|
|000011a0| 20 61 62 73 65 6e 63 65 | 20 6f 66 0a 69 6e 74 65 | absence| of.inte|
|000011b0| 72 61 63 74 69 76 65 20 | 70 72 6f 63 65 73 73 65 |ractive |processe|
|000011c0| 73 2e 20 54 68 65 20 61 | 74 74 72 69 62 75 74 65 |s. The a|ttribute|
|000011d0| 73 20 6f 66 20 61 20 64 | 69 72 65 63 74 6f 72 79 |s of a d|irectory|
|000011e0| 20 6f 72 20 61 20 66 69 | 6c 65 20 61 6c 73 6f 0a | or a fi|le also.|
|000011f0| 6d 61 6b 65 73 20 74 68 | 65 20 6f 75 74 70 75 74 |makes th|e output|
|00001200| 20 6c 6f 6f 6b 20 6c 69 | 6b 65 20 61 20 70 61 72 | look li|ke a par|
|00001210| 74 20 6f 66 20 61 20 66 | 69 6c 65 20 73 79 73 74 |t of a f|ile syst|
|00001220| 65 6d 2e 0a 0a 53 79 73 | 74 65 6d 20 52 65 71 75 |em...Sys|tem Requ|
|00001230| 69 72 65 6d 65 6e 74 73 | 0a 2d 2d 2d 2d 2d 2d 2d |irements|.-------|
|00001240| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 0a 20 20 |--------|----.. |
|00001250| 31 2e 20 54 68 65 20 70 | 72 6f 67 72 61 6d 20 70 |1. The p|rogram p|
|00001260| 72 6f 62 61 62 6c 79 20 | 6e 65 65 64 73 20 50 65 |robably |needs Pe|
|00001270| 72 6c 20 34 2e 30 31 30 | 2e 20 50 65 72 6c 20 33 |rl 4.010|. Perl 3|
|00001280| 2e 30 34 34 20 63 61 75 | 73 65 73 20 69 74 20 74 |.044 cau|ses it t|
|00001290| 6f 0a 20 20 63 6f 72 65 | 20 64 75 6d 70 2e 0a 0a |o. core| dump...|
|000012a0| 49 6e 73 74 61 6c 6c 61 | 74 69 6f 6e 0a 2d 2d 2d |Installa|tion.---|
|000012b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 0a 54 6f 20 73 74 |--------|-..To st|
|000012c0| 61 72 74 20 74 68 69 6e | 67 73 20 6f 66 66 2c 20 |art thin|gs off, |
|000012d0| 6d 6f 64 69 66 79 20 74 | 68 65 20 66 69 6c 65 20 |modify t|he file |
|000012e0| 61 72 63 68 69 65 2e 64 | 65 70 65 6e 64 2e 20 59 |archie.d|epend. Y|
|000012f0| 6f 75 20 73 68 6f 75 6c | 64 20 61 6c 73 6f 0a 6d |ou shoul|d also.m|
|00001300| 6f 76 65 20 61 72 63 68 | 69 65 20 69 6e 20 74 68 |ove arch|ie in th|
|00001310| 65 20 64 69 72 65 63 74 | 6f 72 79 20 77 68 65 72 |e direct|ory wher|
|00001320| 65 20 79 6f 75 20 73 74 | 6f 72 65 20 79 6f 75 20 |e you st|ore you |
|00001330| 70 65 72 6c 20 73 63 72 | 69 70 74 73 2e 20 54 68 |perl scr|ipts. Th|
|00001340| 65 0a 6c 69 62 72 61 72 | 79 20 66 69 6c 65 73 20 |e.librar|y files |
|00001350| 73 68 6f 75 6c 64 20 62 | 65 20 69 6e 20 74 68 65 |should b|e in the|
|00001360| 20 70 65 72 6c 20 6c 69 | 62 72 61 72 79 2e 20 49 | perl li|brary. I|
|00001370| 66 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 2c 20 79 |f you wa|nt to, y|
|00001380| 6f 75 20 63 61 6e 0a 75 | 73 65 20 74 68 65 20 4d |ou can.u|se the M|
|00001390| 61 6b 65 66 69 6c 65 20 | 69 6e 20 74 68 69 73 20 |akefile |in this |
|000013a0| 64 69 73 74 72 69 62 75 | 74 69 6f 6e 2e 0a 0a 50 |distribu|tion...P|
|000013b0| 6c 65 61 73 65 20 61 6c | 73 6f 20 63 68 65 63 6b |lease al|so check|
|000013c0| 20 74 68 65 20 66 69 6c | 65 20 73 79 73 74 65 6d | the fil|e system|
|000013d0| 2e 61 72 63 68 69 65 72 | 63 2e 20 43 68 61 6e 67 |.archier|c. Chang|
|000013e0| 65 20 74 68 65 20 73 6f | 72 74 69 6e 67 20 6f 72 |e the so|rting or|
|000013f0| 64 65 72 0a 6f 66 20 68 | 6f 73 74 73 20 69 6e 20 |der.of h|osts in |
|00001400| 74 68 65 20 64 6f 6d 61 | 69 6e 20 6f 70 74 69 6f |the doma|in optio|
|00001410| 6e 2e 20 50 75 74 20 74 | 68 65 20 64 6f 6d 61 69 |n. Put t|he domai|
|00001420| 6e 73 20 6e 65 61 72 65 | 73 74 20 74 6f 20 79 6f |ns neare|st to yo|
|00001430| 75 72 20 73 69 74 65 20 | 69 6e 0a 74 68 65 20 62 |ur site |in.the b|
|00001440| 65 67 69 6e 6e 69 6e 67 | 20 6f 66 20 74 68 65 20 |eginning| of the |
|00001450| 6f 70 74 69 6f 6e 20 61 | 6e 64 20 66 61 72 74 68 |option a|nd farth|
|00001460| 65 73 74 20 61 74 20 74 | 68 65 20 65 6e 64 2e 20 |est at t|he end. |
|00001470| 46 6f 72 20 61 20 73 69 | 74 65 20 69 6e 0a 46 69 |For a si|te in.Fi|
|00001480| 6e 6c 61 6e 64 2c 20 70 | 72 6f 62 61 62 6c 79 20 |nland, p|robably |
|00001490| 74 68 65 20 6f 72 64 65 | 72 20 69 73 20 76 65 72 |the orde|r is ver|
|000014a0| 79 20 64 69 66 66 65 72 | 65 6e 74 2c 20 77 69 74 |y differ|ent, wit|
|000014b0| 68 20 2e 64 65 20 2e 6e | 6c 2e 64 6b 20 6e 65 61 |h .de .n|l.dk nea|
|000014c0| 72 65 72 0a 74 6f 20 74 | 68 65 20 62 65 67 69 6e |rer.to t|he begin|
|000014d0| 6e 69 6e 67 20 6f 66 20 | 74 68 65 20 6c 69 73 74 |ning of |the list|
|000014e0| 20 74 68 61 6e 20 2e 63 | 61 2c 20 2e 65 64 75 2c | than .c|a, .edu,|
|000014f0| 20 2e 63 6f 6d 2c 20 6f | 72 20 2e 63 61 2e 0a 0a | .com, o|r .ca...|
|00001500| 41 63 6b 6e 6f 77 6c 65 | 64 67 65 6d 65 6e 74 20 |Acknowle|dgement |
|00001510| 66 69 6c 65 0a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |file.---|--------|
|00001520| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 0a 49 20 67 75 65 |--------|-..I gue|
|00001530| 73 73 20 49 20 6b 6e 6f | 77 20 74 68 65 20 68 65 |ss I kno|w the he|
|00001540| 61 64 65 72 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |ader inf|ormation|
|00001550| 20 6d 75 63 68 20 62 65 | 74 74 65 72 20 6e 6f 77 | much be|tter now|
|00001560| 2e 20 54 68 65 20 70 72 | 6f 67 72 61 6d 20 68 61 |. The pr|ogram ha|
|00001570| 73 0a 62 65 65 6e 20 6d | 6f 64 69 66 69 65 64 2e |s.been m|odified.|
|00001580| 20 54 68 61 6e 6b 73 20 | 76 65 72 79 20 6d 75 63 | Thanks |very muc|
|00001590| 68 20 74 6f 20 43 6c 69 | 66 66 6f 72 64 20 4e 65 |h to Cli|fford Ne|
|000015a0| 75 6d 61 6e 0a 28 62 63 | 6e 40 63 73 2e 77 61 73 |uman.(bc|n@cs.was|
|000015b0| 68 69 6e 67 74 6f 6e 2e | 65 64 75 29 20 66 6f 72 |hington.|edu) for|
|000015c0| 20 70 72 6f 76 69 64 69 | 6e 67 20 69 6e 66 6f 72 | providi|ng infor|
|000015d0| 6d 61 74 69 6f 6e 20 6f | 6e 20 70 72 6f 73 70 65 |mation o|n prospe|
|000015e0| 72 6f 2e 20 50 6c 65 61 | 73 65 0a 72 65 61 64 20 |ro. Plea|se.read |
|000015f0| 41 43 4b 4e 4f 57 4c 45 | 44 47 45 20 66 6f 72 20 |ACKNOWLE|DGE for |
|00001600| 61 63 6b 6e 6f 77 6c 65 | 64 67 65 6d 65 6e 74 73 |acknowle|dgements|
|00001610| 2e 0a 0a 53 74 61 74 75 | 73 20 6f 66 20 74 68 65 |...Statu|s of the|
|00001620| 20 70 72 6f 67 72 61 6d | 0a 2d 2d 2d 2d 2d 2d 2d | program|.-------|
|00001630| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 0a |--------|------..|
|00001640| 54 68 69 73 20 70 72 6f | 67 72 61 6d 20 69 73 20 |This pro|gram is |
|00001650| 69 6e 20 74 68 65 20 67 | 61 6d 6d 61 20 74 65 73 |in the g|amma tes|
|00001660| 74 69 6e 67 20 73 74 61 | 67 65 2e 20 20 48 6f 77 |ting sta|ge. How|
|00001670| 65 76 65 72 2c 20 49 20 | 77 69 6c 6c 20 6e 6f 74 |ever, I |will not|
|00001680| 20 61 64 64 0a 61 6e 79 | 20 6d 6f 72 65 20 66 65 | add.any| more fe|
|00001690| 61 74 75 72 65 73 2e 20 | 41 6c 73 6f 2c 20 49 20 |atures. |Also, I |
|000016a0| 77 69 6c 6c 20 6f 6e 6c | 79 20 6d 6f 64 69 66 79 |will onl|y modify|
|000016b0| 20 74 68 65 20 66 69 6c | 65 20 74 6f 20 63 6f 72 | the fil|e to cor|
|000016c0| 72 65 63 74 20 62 75 67 | 73 2e 0a 54 68 69 73 20 |rect bug|s..This |
|000016d0| 69 73 20 62 61 73 69 63 | 61 6c 6c 79 20 61 20 73 |is basic|ally a s|
|000016e0| 74 61 62 6c 65 20 76 65 | 72 73 69 6f 6e 2e 20 20 |table ve|rsion. |
|000016f0| 49 20 6e 65 65 64 20 70 | 65 6f 70 6c 65 20 74 6f |I need p|eople to|
|00001700| 20 74 65 73 74 2c 20 69 | 6d 70 72 6f 76 65 2c 0a | test, i|mprove,.|
|00001710| 61 6e 64 20 73 75 67 67 | 65 73 74 2c 20 74 6f 20 |and sugg|est, to |
|00001720| 6d 61 6b 65 20 69 74 20 | 62 65 74 74 65 72 2e 20 |make it |better. |
|00001730| 20 49 74 20 69 73 20 77 | 72 69 74 74 65 6e 20 6f | It is w|ritten o|
|00001740| 6e 20 61 20 53 75 6e 20 | 33 2f 35 30 2e 20 20 49 |n a Sun |3/50. I|
|00001750| 20 74 72 69 65 64 0a 69 | 74 20 6f 6e 20 61 20 4d | tried.i|t on a M|
|00001760| 49 50 53 20 52 49 53 43 | 2f 6f 73 20 34 2e 35 31 |IPS RISC|/os 4.51|
|00001770| 2e 20 49 74 20 77 6f 72 | 6b 65 64 2e 20 49 20 68 |. It wor|ked. I h|
|00001780| 61 76 65 20 61 6c 73 6f | 20 74 72 69 65 64 20 69 |ave also| tried i|
|00001790| 74 20 6f 6e 20 61 0a 53 | 65 71 75 65 6e 74 20 73 |t on a.S|equent s|
|000017a0| 79 6d 6d 65 74 72 79 20 | 44 79 6e 69 78 20 56 65 |ymmetry |Dynix Ve|
|000017b0| 72 73 69 6f 6e 20 73 6f | 6d 65 74 68 69 6e 67 2e |rsion so|mething.|
|000017c0| 20 54 68 65 73 65 20 61 | 72 65 20 74 68 65 20 6d | These a|re the m|
|000017d0| 61 63 68 69 6e 65 73 20 | 74 68 61 74 0a 49 20 68 |achines |that.I h|
|000017e0| 61 76 65 20 61 63 63 65 | 73 73 20 74 6f 2e 20 20 |ave acce|ss to. |
|000017f0| 42 72 65 6e 64 61 6e 20 | 4b 65 68 6f 65 20 72 65 |Brendan |Kehoe re|
|00001800| 70 6f 72 74 73 20 74 68 | 61 74 20 69 74 20 77 6f |ports th|at it wo|
|00001810| 72 6b 73 20 75 6e 64 65 | 72 20 73 6f 6d 65 0a 48 |rks unde|r some.H|
|00001820| 50 27 73 2c 20 61 6e 20 | 45 6e 63 6f 72 65 2c 20 |P's, an |Encore, |
|00001830| 61 6e 64 20 44 65 63 53 | 74 61 74 69 6f 6e 73 20 |and DecS|tations |
|00001840| 74 6f 6f 2e 20 20 50 65 | 74 65 72 20 28 70 6f 65 |too. Pe|ter (poe|
|00001850| 40 64 61 69 6d 69 2e 61 | 61 75 2e 64 6b 29 20 73 |@daimi.a|au.dk) s|
|00001860| 61 79 73 0a 69 74 20 77 | 6f 72 6b 73 20 6f 6e 20 |ays.it w|orks on |
|00001870| 68 69 73 20 48 50 39 30 | 30 30 2f 33 30 30 20 75 |his HP90|00/300 u|
|00001880| 6e 64 65 72 20 48 50 2d | 55 58 20 37 2e 30 20 74 |nder HP-|UX 7.0 t|
|00001890| 6f 6f 2e 20 42 69 6c 6c | 79 20 42 61 72 72 6f 6e |oo. Bill|y Barron|
|000018a0| 20 73 61 79 73 20 69 74 | 0a 77 6f 72 6b 73 20 75 | says it|.works u|
|000018b0| 6e 64 65 72 20 53 6f 6c | 62 6f 75 72 6e 65 20 4f |nder Sol|bourne O|
|000018c0| 53 2f 4d 50 20 34 2e 30 | 44 2e 20 20 49 74 20 6d |S/MP 4.0|D. It m|
|000018d0| 69 67 68 74 20 6e 6f 74 | 20 77 6f 72 6b 20 6f 6e |ight not| work on|
|000018e0| 20 6f 74 68 65 72 0a 6d | 61 63 68 69 6e 65 73 2e | other.m|achines.|
|000018f0| 20 20 49 66 20 79 6f 75 | 20 70 6f 72 74 20 69 74 | If you| port it|
|00001900| 20 74 6f 20 61 6e 6f 74 | 68 65 72 20 6d 61 63 68 | to anot|her mach|
|00001910| 69 6e 65 20 74 79 70 65 | 2c 20 70 6c 65 61 73 65 |ine type|, please|
|00001920| 20 73 65 6e 64 20 6d 65 | 20 74 68 65 0a 64 69 66 | send me| the.dif|
|00001930| 66 73 2c 20 74 68 61 6e | 6b 73 2e 20 49 66 20 79 |fs, than|ks. If y|
|00001940| 6f 75 20 66 69 6e 64 20 | 62 75 67 73 20 6f 6e 20 |ou find |bugs on |
|00001950| 6f 74 68 65 72 20 6d 61 | 63 68 69 6e 65 20 74 79 |other ma|chine ty|
|00001960| 70 65 73 2c 20 70 6c 65 | 61 73 65 20 61 6c 73 6f |pes, ple|ase also|
|00001970| 0a 74 65 6c 6c 20 6d 65 | 2e 20 49 20 77 6f 75 6c |.tell me|. I woul|
|00001980| 64 20 6c 69 6b 65 20 74 | 6f 20 6b 6e 6f 77 20 68 |d like t|o know h|
|00001990| 6f 77 20 70 6f 72 74 61 | 62 6c 65 20 74 68 65 20 |ow porta|ble the |
|000019a0| 70 72 6f 67 72 61 6d 20 | 69 73 2e 0a 0a 4f 74 68 |program |is...Oth|
|000019b0| 65 72 73 0a 2d 2d 2d 2d | 2d 2d 0a 0a 50 6c 65 61 |ers.----|--..Plea|
|000019c0| 73 65 20 73 65 6e 64 20 | 79 6f 75 72 20 63 6f 6d |se send |your com|
|000019d0| 6d 65 6e 74 73 2c 20 63 | 72 69 74 69 63 69 73 6d |ments, c|riticism|
|000019e0| 73 2c 20 64 69 66 66 73 | 2c 20 62 75 67 20 72 65 |s, diffs|, bug re|
|000019f0| 70 6f 72 74 73 2c 20 65 | 74 63 2e 20 74 6f 20 6d |ports, e|tc. to m|
|00001a00| 65 0a 61 74 20 63 6c 69 | 70 70 65 72 40 63 73 64 |e.at cli|pper@csd|
|00001a10| 2e 75 77 6f 2e 63 61 2e | 20 59 65 73 2c 20 79 6f |.uwo.ca.| Yes, yo|
|00001a20| 75 20 63 61 6e 20 65 76 | 65 6e 20 63 72 69 74 69 |u can ev|en criti|
|00001a30| 63 69 73 65 20 6d 79 20 | 70 72 6f 67 72 61 6d 6d |cise my |programm|
|00001a40| 69 6e 67 0a 73 74 79 6c | 65 2e 0a 0a 4b 68 75 6e |ing.styl|e...Khun|
|00001a50| 20 59 65 65 0a 41 75 67 | 75 73 74 20 32 0a 00 00 | Yee.Aug|ust 2...|
|00001a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 70 65 72 6c 5f 61 72 63 | 68 69 65 2f 41 43 4b 4e |perl_arc|hie/ACKN|
|00001c10| 4f 57 4c 45 44 47 45 00 | 00 00 00 00 00 00 00 00 |OWLEDGE.|........|
|00001c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 20 |.... 6|44 . |
|00001c70| 32 37 20 00 20 20 20 20 | 32 37 20 00 20 20 20 20 |27 . |27 . |
|00001c80| 20 20 20 33 31 33 37 20 | 20 35 30 35 37 32 32 31 | 3137 | 5057221|
|00001c90| 30 31 32 20 20 31 30 30 | 31 30 00 20 00 00 00 00 |012 100|10. ....|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 53 69 6e 63 65 20 74 68 | 65 20 70 72 6f 67 72 61 |Since th|e progra|
|00001e10| 6d 20 69 73 20 67 65 74 | 74 69 6e 67 20 6d 6f 72 |m is get|ting mor|
|00001e20| 65 20 73 74 61 62 6c 65 | 20 62 79 20 74 68 65 20 |e stable| by the |
|00001e30| 64 61 79 2c 20 69 74 20 | 69 73 20 74 69 6d 65 20 |day, it |is time |
|00001e40| 49 20 61 64 64 0a 61 20 | 6c 69 74 74 6c 65 20 66 |I add.a |little f|
|00001e50| 69 6c 65 20 74 6f 20 61 | 63 6b 6e 6f 77 6c 65 64 |ile to a|cknowled|
|00001e60| 67 65 20 70 65 6f 70 6c | 65 20 74 68 61 74 20 68 |ge peopl|e that h|
|00001e70| 61 76 65 20 68 65 6c 70 | 65 64 20 6d 65 20 61 6c |ave help|ed me al|
|00001e80| 6f 6e 67 20 74 68 65 20 | 77 61 79 2e 0a 0a 46 6f |ong the |way...Fo|
|00001e90| 72 65 6d 6f 73 74 2c 20 | 43 6c 69 66 66 6f 72 64 |remost, |Clifford|
|00001ea0| 20 4e 65 75 6d 61 6e 20 | 28 62 63 6e 40 63 73 2e | Neuman |(bcn@cs.|
|00001eb0| 77 61 73 68 69 6e 67 74 | 6f 6e 2e 65 64 75 29 20 |washingt|on.edu) |
|00001ec0| 70 72 6f 76 69 64 65 73 | 20 75 73 20 77 69 74 68 |provides| us with|
|00001ed0| 20 74 68 65 0a 70 72 6f | 73 70 65 72 6f 20 70 72 | the.pro|spero pr|
|00001ee0| 6f 74 6f 63 6f 6c 2e 20 | 54 68 69 73 20 6d 61 6b |otocol. |This mak|
|00001ef0| 65 73 20 74 68 65 20 77 | 68 6f 6c 65 20 74 68 69 |es the w|hole thi|
|00001f00| 6e 67 20 70 6f 73 73 69 | 62 6c 65 2e 20 48 65 20 |ng possi|ble. He |
|00001f10| 70 72 6f 76 69 64 65 64 | 0a 61 6c 6c 20 74 68 65 |provided|.all the|
|00001f20| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 49 20 75 | informa|tion I u|
|00001f30| 73 65 64 20 63 6f 6e 63 | 65 72 6e 69 6e 67 20 74 |sed conc|erning t|
|00001f40| 68 65 20 70 72 6f 73 70 | 65 72 6f 20 70 72 6f 74 |he prosp|ero prot|
|00001f50| 6f 63 6f 6c 2e 20 20 57 | 69 74 68 6f 75 74 0a 68 |ocol. W|ithout.h|
|00001f60| 69 73 20 68 65 6c 70 2c | 20 74 68 69 73 20 70 72 |is help,| this pr|
|00001f70| 6f 67 72 61 6d 20 69 73 | 20 69 6d 70 6f 73 73 69 |ogram is| impossi|
|00001f80| 62 6c 65 2e 20 20 41 73 | 20 49 20 77 72 6f 74 65 |ble. As| I wrote|
|00001f90| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 61 74 20 | the pro|gram at |
|00001fa0| 74 68 65 0a 74 69 6d 65 | 20 74 68 65 20 70 72 6f |the.time| the pro|
|00001fb0| 74 6f 63 6f 6c 20 77 61 | 73 20 62 65 69 6e 67 20 |tocol wa|s being |
|00001fc0| 75 70 64 61 74 65 64 2c | 20 49 20 74 68 61 6e 6b |updated,| I thank|
|00001fd0| 20 68 69 6d 20 66 6f 72 | 20 70 72 6f 76 69 64 69 | him for| providi|
|00001fe0| 6e 67 20 6d 65 20 61 6c | 6c 0a 74 68 65 20 69 6e |ng me al|l.the in|
|00001ff0| 66 6f 72 6d 61 74 69 6f | 6e 20 77 68 65 6e 20 69 |formatio|n when i|
|00002000| 74 20 63 61 6d 65 20 61 | 6c 6f 6e 67 2e 20 48 65 |t came a|long. He|
|00002010| 20 61 6c 73 6f 20 69 6e | 66 6f 72 6d 65 64 20 6d | also in|formed m|
|00002020| 65 20 6f 66 20 61 20 74 | 65 73 74 0a 61 72 63 68 |e of a t|est.arch|
|00002030| 69 65 20 73 65 72 76 65 | 72 20 74 68 61 74 20 49 |ie serve|r that I|
|00002040| 20 75 73 65 64 20 74 6f | 20 65 6c 69 6d 69 6e 61 | used to| elimina|
|00002050| 74 65 20 6d 61 6e 79 20 | 62 75 67 73 2e 20 20 49 |te many |bugs. I|
|00002060| 20 61 6d 20 67 72 61 74 | 65 66 75 6c 20 66 6f 72 | am grat|eful for|
|00002070| 20 61 6c 6c 0a 68 69 73 | 20 68 65 6c 70 73 2e 0a | all.his| helps..|
|00002080| 0a 54 6f 20 74 68 65 20 | 70 65 6f 70 6c 65 20 69 |.To the |people i|
|00002090| 6e 20 71 75 69 63 68 65 | 2e 63 73 2e 6d 63 67 69 |n quiche|.cs.mcgi|
|000020a0| 6c 6c 2e 63 61 20 70 72 | 6f 76 69 64 69 6e 67 20 |ll.ca pr|oviding |
|000020b0| 61 72 63 68 69 65 2c 20 | 69 74 20 69 73 20 63 65 |archie, |it is ce|
|000020c0| 72 74 61 69 6e 6c 79 0a | 68 61 72 64 20 74 6f 20 |rtainly.|hard to |
|000020d0| 69 6d 61 67 69 6e 65 20 | 74 68 65 20 64 61 79 73 |imagine |the days|
|000020e0| 20 77 68 65 6e 20 61 72 | 63 68 69 65 20 77 61 73 | when ar|chie was|
|000020f0| 20 6e 6f 74 20 61 76 61 | 69 6c 61 62 6c 65 2e 0a | not ava|ilable..|
|00002100| 0a 54 6f 20 61 6c 6c 20 | 74 68 65 20 70 65 6f 70 |.To all |the peop|
|00002110| 6c 65 20 77 68 6f 20 73 | 65 6e 74 20 6d 65 20 6d |le who s|ent me m|
|00002120| 65 73 73 61 67 65 73 20 | 74 65 6c 6c 69 6e 67 20 |essages |telling |
|00002130| 6d 65 20 74 68 65 20 70 | 72 6f 62 6c 65 6d 73 20 |me the p|roblems |
|00002140| 74 68 65 79 0a 65 6e 63 | 6f 75 6e 74 65 72 65 64 |they.enc|ountered|
|00002150| 2c 20 74 65 6c 6c 69 6e | 67 20 6d 65 20 74 68 61 |, tellin|g me tha|
|00002160| 74 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 77 6f |t the pr|ogram wo|
|00002170| 72 6b 65 64 20 6f 6e 20 | 74 68 65 69 72 20 6d 61 |rked on |their ma|
|00002180| 63 68 69 6e 65 73 2c 0a | 61 6e 64 20 74 65 6c 6c |chines,.|and tell|
|00002190| 69 6e 67 20 6d 65 20 74 | 68 65 20 70 72 6f 67 72 |ing me t|he progr|
|000021a0| 61 6d 20 64 69 64 20 6e | 6f 74 20 77 6f 72 6b 20 |am did n|ot work |
|000021b0| 6f 6e 20 74 68 65 69 72 | 20 6d 61 63 68 69 6e 65 |on their| machine|
|000021c0| 73 2c 20 49 20 74 68 61 | 6e 6b 20 79 6f 75 0a 76 |s, I tha|nk you.v|
|000021d0| 65 72 79 20 6d 75 63 68 | 2e 20 54 68 65 73 65 20 |ery much|. These |
|000021e0| 70 65 6f 70 6c 65 20 61 | 72 65 3a 0a 0a 47 61 72 |people a|re:..Gar|
|000021f0| 79 20 44 2e 20 4b 6c 69 | 6e 65 2c 20 73 73 69 21 |y D. Kli|ne, ssi!|
|00002200| 67 64 6b 40 75 75 6e 65 | 74 2e 75 75 2e 6e 65 74 |gdk@uune|t.uu.net|
|00002210| 0a 45 6d 6d 65 74 74 20 | 48 6f 67 61 6e 2c 20 68 |.Emmett |Hogan, h|
|00002220| 6f 67 61 6e 40 63 73 6c | 2e 73 72 69 2e 63 6f 6d |ogan@csl|.sri.com|
|00002230| 0a 4b 61 72 73 74 65 6e | 20 54 68 79 67 65 73 65 |.Karsten| Thygese|
|00002240| 6e 2c 20 6b 61 72 74 68 | 79 40 69 65 73 64 2e 61 |n, karth|y@iesd.a|
|00002250| 75 63 2e 64 6b 0a 42 72 | 65 6e 64 61 6e 20 4b 65 |uc.dk.Br|endan Ke|
|00002260| 68 6f 65 2c 20 62 72 65 | 6e 64 61 6e 40 63 73 2e |hoe, bre|ndan@cs.|
|00002270| 77 69 64 65 6e 65 72 2e | 65 64 75 0a 50 65 74 65 |widener.|edu.Pete|
|00002280| 72 20 4d 75 74 73 61 69 | 65 72 73 2c 20 6d 75 74 |r Mutsai|ers, mut|
|00002290| 73 40 66 79 73 61 6b 2e | 66 79 73 2e 72 75 75 2e |s@fysak.|fys.ruu.|
|000022a0| 6e 6c 0a 4b 65 61 6e 20 | 53 74 75 6d 70 2c 20 6b |nl.Kean |Stump, k|
|000022b0| 65 61 6e 40 75 63 73 2e | 6f 72 73 74 2e 65 64 75 |ean@ucs.|orst.edu|
|000022c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 23 20 74 68 | | # th|
|000022d0| 61 6e 6b 73 20 66 6f 72 | 20 70 72 6f 76 69 64 69 |anks for| providi|
|000022e0| 6e 67 20 61 20 4d 61 6b | 65 66 69 6c 65 0a 50 65 |ng a Mak|efile.Pe|
|000022f0| 74 65 72 20 4f 72 62 61 | 65 6b 2c 20 70 6f 65 40 |ter Orba|ek, poe@|
|00002300| 64 61 69 6d 69 2e 61 61 | 75 2e 64 6b 20 20 20 20 |daimi.aa|u.dk |
|00002310| 20 20 20 20 20 20 20 23 | 20 74 68 61 6e 6b 73 20 | #| thanks |
|00002320| 66 6f 72 20 6d 61 6b 69 | 6e 67 20 69 74 20 6d 6f |for maki|ng it mo|
|00002330| 72 65 20 70 65 72 6c 27 | 69 73 68 0a 42 69 6c 6c |re perl'|ish.Bill|
|00002340| 79 20 42 61 72 72 6f 6e | 2c 20 62 69 6c 6c 79 40 |y Barron|, billy@|
|00002350| 73 6f 6c 2e 61 63 73 2e | 75 6e 74 2e 65 64 75 0a |sol.acs.|unt.edu.|
|00002360| 0a 49 20 6d 61 79 20 68 | 61 76 65 20 6d 69 73 73 |.I may h|ave miss|
|00002370| 65 64 20 6f 6e 65 20 6f | 72 20 74 77 6f 20 70 65 |ed one o|r two pe|
|00002380| 6f 70 6c 65 2e 20 54 6f | 20 74 68 65 6d 2c 20 49 |ople. To| them, I|
|00002390| 20 61 6d 20 73 6f 72 72 | 79 2e 0a 0a 49 20 6b 6e | am sorr|y...I kn|
|000023a0| 6f 77 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 69 |ow the p|rogram i|
|000023b0| 73 20 72 61 74 68 65 72 | 20 74 72 69 76 69 61 6c |s rather| trivial|
|000023c0| 20 61 6e 64 20 6e 6f 74 | 20 65 76 65 6e 20 75 73 | and not| even us|
|000023d0| 65 66 75 6c 20 66 6f 72 | 20 6d 61 6e 79 0a 70 65 |eful for| many.pe|
|000023e0| 6f 70 6c 65 2e 20 42 75 | 74 20 49 20 77 72 6f 74 |ople. Bu|t I wrot|
|000023f0| 65 20 69 6e 20 74 68 65 | 20 68 6f 70 65 20 74 68 |e in the| hope th|
|00002400| 61 74 20 69 74 20 6d 69 | 67 68 74 20 62 65 20 75 |at it mi|ght be u|
|00002410| 73 65 66 75 6c 20 66 6f | 72 20 61 20 66 65 77 0a |seful fo|r a few.|
|00002420| 70 65 6f 70 6c 65 2e 20 | 49 20 70 6f 73 74 65 64 |people. |I posted|
|00002430| 20 69 74 20 69 6e 20 74 | 68 65 20 55 73 65 6e 65 | it in t|he Usene|
|00002440| 74 20 73 70 69 72 69 74 | 20 6f 66 20 73 68 61 72 |t spirit| of shar|
|00002450| 69 6e 67 2e 0a 0a 4b 68 | 75 6e 20 59 65 65 0a 73 |ing...Kh|un Yee.s|
|00002460| 74 65 6d 20 64 65 66 61 | 75 6c 74 20 6f 72 64 65 |tem defa|ult orde|
|00002470| 72 69 6e 67 2e 0a 0a 20 | 20 32 2e 20 56 65 72 73 |ring... | 2. Vers|
|00002480| 69 6f 6e 20 6f 70 74 69 | 6f 6e 20 69 73 20 73 75 |ion opti|on is su|
|00002490| 70 70 6f 72 74 65 64 2e | 20 57 68 65 6e 20 74 68 |pported.| When th|
|000024a0| 69 73 20 6f 70 74 69 6f | 6e 20 69 73 20 73 70 65 |is optio|n is spe|
|000024b0| 63 69 66 69 65 64 2c 20 | 74 68 65 0a 20 20 76 65 |cified, |the. ve|
|000024c0| 72 73 69 6f 6e 20 6e 75 | 6d 62 65 72 20 6f 66 20 |rsion nu|mber of |
|000024d0| 74 68 65 20 70 72 6f 67 | 72 61 6d 20 77 69 6c 6c |the prog|ram will|
|000024e0| 20 62 65 20 70 72 69 6e | 74 65 64 2e 0a 0a 20 20 | be prin|ted... |
|000024f0| 33 2e 20 41 20 64 69 66 | 66 65 72 65 6e 74 20 73 |3. A dif|ferent s|
|00002500| 74 61 72 74 75 70 20 66 | 69 6c 65 20 63 61 6e 20 |tartup f|ile can |
|00002510| 62 65 20 73 70 65 63 69 | 66 69 65 64 2e 0a 0a 20 |be speci|fied... |
|00002520| 20 34 2e 20 49 20 68 61 | 76 65 20 64 65 63 69 64 | 4. I ha|ve decid|
|00002530| 65 64 20 6e 6f 74 20 74 | 6f 20 64 6f 20 70 61 63 |ed not t|o do pac|
|00002540| 6b 65 74 20 6f 72 64 65 | 72 69 6e 67 20 6d 79 73 |ket orde|ring mys|
|00002550| 65 6c 66 2e 20 53 6f 20 | 74 68 65 20 2d 61 6c 6f |elf. So |the -alo|
|00002560| 6e 67 0a 20 20 6f 70 74 | 69 6f 6e 20 69 73 20 67 |ng. opt|ion is g|
|00002570| 6f 6e 65 2e 0a 0a 20 20 | 35 2e 20 54 68 65 20 70 |one... |5. The p|
|00002580| 61 72 74 20 6f 6e 20 6e | 65 74 77 6f 72 6b 69 6e |art on n|etworkin|
|00002590| 67 20 68 61 73 20 62 65 | 65 6e 20 63 6f 6d 70 6c |g has be|en compl|
|000025a0| 65 74 65 6c 79 20 72 65 | 77 72 69 74 74 65 6e 2e |etely re|written.|
|000025b0| 20 49 20 68 6f 70 65 20 | 69 74 0a 20 20 69 73 20 | I hope |it. is |
|000025c0| 6d 6f 72 65 20 63 6f 72 | 72 65 63 74 20 74 68 61 |more cor|rect tha|
|000025d0| 6e 20 74 68 65 20 6c 61 | 73 74 20 74 77 6f 20 72 |n the la|st two r|
|000025e0| 65 6c 65 61 73 65 73 2e | 0a 0a 20 20 36 2e 20 54 |eleases.|.. 6. T|
|000025f0| 68 65 72 65 20 61 72 65 | 20 6f 74 68 65 72 20 73 |here are| other s|
|00002600| 70 65 72 6c 5f 61 72 63 | 68 69 65 2f 4d 61 6b 65 |perl_arc|hie/Make|
|00002610| 66 69 6c 65 00 00 00 00 | 00 00 00 00 00 00 00 00 |file....|........|
|00002620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002660| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 20 |.... 6|44 . |
|00002670| 32 37 20 00 20 20 20 20 | 32 37 20 00 20 20 20 20 |27 . |27 . |
|00002680| 20 20 20 31 31 37 34 20 | 20 35 30 35 37 32 32 31 | 1174 | 5057221|
|00002690| 30 31 32 20 20 31 30 30 | 30 31 00 20 00 00 00 00 |012 100|01. ....|
|000026a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002800| 23 20 46 72 6f 6d 20 6b | 65 61 6e 40 61 72 67 68 |# From k|ean@argh|
|00002810| 2e 75 63 73 2e 6f 72 73 | 74 2e 65 64 75 20 28 4b |.ucs.ors|t.edu (K|
|00002820| 65 61 6e 20 53 74 75 6d | 70 29 20 77 69 74 68 20 |ean Stum|p) with |
|00002830| 74 68 65 20 66 69 78 70 | 61 74 68 20 6c 69 6e 65 |the fixp|ath line|
|00002840| 0a 23 20 61 64 64 65 64 | 20 62 79 20 6d 65 2e 0a |.# added| by me..|
|00002850| 23 20 43 68 61 6e 67 65 | 20 74 68 65 20 66 6f 6c |# Change| the fol|
|00002860| 6c 6f 77 69 6e 67 20 74 | 77 6f 20 6c 69 6e 65 73 |lowing t|wo lines|
|00002870| 20 69 66 20 79 6f 75 20 | 61 72 65 20 6e 6f 74 20 | if you |are not |
|00002880| 73 79 73 61 64 6d 69 6e | 2e 0a 4f 57 4e 45 52 3d |sysadmin|..OWNER=|
|00002890| 62 69 6e 0a 47 52 4f 55 | 50 3d 62 69 6e 0a 4c 49 |bin.GROU|P=bin.LI|
|000028a0| 42 3d 72 65 73 6f 6c 76 | 65 72 2e 70 6c 20 61 72 |B=resolv|er.pl ar|
|000028b0| 63 68 69 65 2e 64 65 70 | 65 6e 64 20 6e 65 77 67 |chie.dep|end newg|
|000028c0| 65 74 6f 70 74 2e 70 6c | 0a 42 49 4e 3d 61 72 63 |etopt.pl|.BIN=arc|
|000028d0| 68 69 65 0a 4d 41 4e 3d | 61 72 63 68 69 65 2e 6c |hie.MAN=|archie.l|
|000028e0| 0a 53 54 41 52 54 55 50 | 3d 73 79 73 74 65 6d 2e |.STARTUP|=system.|
|000028f0| 61 72 63 68 69 65 72 63 | 0a 42 49 4e 44 49 52 3d |archierc|.BINDIR=|
|00002900| 2f 75 73 72 2f 6c 6f 63 | 61 6c 2f 62 69 6e 0a 4c |/usr/loc|al/bin.L|
|00002910| 49 42 44 49 52 3d 2f 75 | 73 72 2f 6c 6f 63 61 6c |IBDIR=/u|sr/local|
|00002920| 2f 6c 69 62 2f 70 65 72 | 6c 0a 4d 41 4e 44 49 52 |/lib/per|l.MANDIR|
|00002930| 3d 2f 75 73 72 2f 6c 6f | 63 61 6c 2f 6d 61 6e 2f |=/usr/lo|cal/man/|
|00002940| 6d 61 6e 31 0a 53 54 41 | 52 54 55 50 44 49 52 3d |man1.STA|RTUPDIR=|
|00002950| 2f 75 73 72 2f 6c 6f 63 | 61 6c 2f 6c 69 62 0a 0a |/usr/loc|al/lib..|
|00002960| 69 6e 73 74 61 6c 6c 3a | 20 0a 09 70 65 72 6c 20 |install:| ..perl |
|00002970| 66 69 78 70 61 74 68 20 | 24 28 42 49 4e 44 49 52 |fixpath |$(BINDIR|
|00002980| 29 2f 70 65 72 6c 0a 09 | 69 6e 73 74 61 6c 6c 20 |)/perl..|install |
|00002990| 2d 6f 20 24 28 4f 57 4e | 45 52 29 20 2d 67 20 24 |-o $(OWN|ER) -g $|
|000029a0| 28 47 52 4f 55 50 29 20 | 2d 6d 20 37 35 35 20 24 |(GROUP) |-m 755 $|
|000029b0| 28 42 49 4e 29 20 24 28 | 42 49 4e 44 49 52 29 0a |(BIN) $(|BINDIR).|
|000029c0| 09 69 6e 73 74 61 6c 6c | 20 2d 6f 20 24 28 4f 57 |.install| -o $(OW|
|000029d0| 4e 45 52 29 20 2d 67 20 | 24 28 47 52 4f 55 50 29 |NER) -g |$(GROUP)|
|000029e0| 20 2d 6d 20 34 34 34 20 | 24 28 4c 49 42 29 20 24 | -m 444 |$(LIB) $|
|000029f0| 28 4c 49 42 44 49 52 29 | 0a 09 69 6e 73 74 61 6c |(LIBDIR)|..instal|
|00002a00| 6c 20 2d 6f 20 24 28 4f | 57 4e 45 52 29 20 2d 67 |l -o $(O|WNER) -g|
|00002a10| 20 24 28 47 52 4f 55 50 | 29 20 2d 6d 20 34 34 34 | $(GROUP|) -m 444|
|00002a20| 20 24 28 4d 41 4e 29 20 | 24 28 4d 41 4e 44 49 52 | $(MAN) |$(MANDIR|
|00002a30| 29 2f 61 72 63 68 69 65 | 2e 31 0a 09 69 6e 73 74 |)/archie|.1..inst|
|00002a40| 61 6c 6c 20 2d 6f 20 24 | 28 4f 57 4e 45 52 29 20 |all -o $|(OWNER) |
|00002a50| 2d 67 20 24 28 47 52 4f | 55 50 29 20 2d 6d 20 34 |-g $(GRO|UP) -m 4|
|00002a60| 34 34 20 24 28 53 54 41 | 52 54 55 50 29 20 24 28 |44 $(STA|RTUP) $(|
|00002a70| 53 54 41 52 54 55 50 44 | 49 52 29 0a 50 65 74 65 |STARTUPD|IR).Pete|
|00002a80| 72 20 4d 75 74 73 61 69 | 65 72 73 2c 20 6d 75 74 |r Mutsai|ers, mut|
|00002a90| 73 40 66 79 73 61 6b 2e | 66 79 73 2e 72 75 75 2e |s@fysak.|fys.ruu.|
|00002aa0| 6e 6c 0a 4b 65 61 6e 20 | 53 74 75 6d 70 2c 20 6b |nl.Kean |Stump, k|
|00002ab0| 65 61 6e 40 75 63 73 2e | 6f 72 73 74 2e 65 64 75 |ean@ucs.|orst.edu|
|00002ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 23 20 74 68 | | # th|
|00002ad0| 61 6e 6b 73 20 66 6f 72 | 20 70 72 6f 76 69 64 69 |anks for| providi|
|00002ae0| 6e 67 20 61 20 4d 61 6b | 65 66 69 6c 65 0a 50 65 |ng a Mak|efile.Pe|
|00002af0| 74 65 72 20 4f 72 62 61 | 65 6b 2c 20 70 6f 65 40 |ter Orba|ek, poe@|
|00002b00| 64 61 69 6d 69 2e 61 61 | 75 2e 64 6b 20 20 20 20 |daimi.aa|u.dk |
|00002b10| 20 20 20 20 20 20 20 23 | 20 74 68 61 6e 6b 73 20 | #| thanks |
|00002b20| 66 6f 72 20 6d 61 6b 69 | 6e 67 20 69 74 20 6d 6f |for maki|ng it mo|
|00002b30| 72 65 20 70 65 72 6c 27 | 69 73 68 0a 42 69 6c 6c |re perl'|ish.Bill|
|00002b40| 79 20 42 61 72 72 6f 6e | 2c 20 62 69 6c 6c 79 40 |y Barron|, billy@|
|00002b50| 73 6f 6c 2e 61 63 73 2e | 75 6e 74 2e 65 64 75 0a |sol.acs.|unt.edu.|
|00002b60| 0a 49 20 6d 61 79 20 68 | 61 76 65 20 6d 69 73 73 |.I may h|ave miss|
|00002b70| 65 64 20 6f 6e 65 20 6f | 72 20 74 77 6f 20 70 65 |ed one o|r two pe|
|00002b80| 6f 70 6c 65 2e 20 54 6f | 20 74 68 65 6d 2c 20 49 |ople. To| them, I|
|00002b90| 20 61 6d 20 73 6f 72 72 | 79 2e 0a 0a 49 20 6b 6e | am sorr|y...I kn|
|00002ba0| 6f 77 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 69 |ow the p|rogram i|
|00002bb0| 73 20 72 61 74 68 65 72 | 20 74 72 69 76 69 61 6c |s rather| trivial|
|00002bc0| 20 61 6e 64 20 6e 6f 74 | 20 65 76 65 6e 20 75 73 | and not| even us|
|00002bd0| 65 66 75 6c 20 66 6f 72 | 20 6d 61 6e 79 0a 70 65 |eful for| many.pe|
|00002be0| 6f 70 6c 65 2e 20 42 75 | 74 20 49 20 77 72 6f 74 |ople. Bu|t I wrot|
|00002bf0| 65 20 69 6e 20 74 68 65 | 20 68 6f 70 65 20 74 68 |e in the| hope th|
|00002c00| 70 65 72 6c 5f 61 72 63 | 68 69 65 2f 66 69 78 70 |perl_arc|hie/fixp|
|00002c10| 61 74 68 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ath.....|........|
|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 20 20 20 37 | 35 35 20 00 20 20 20 20 |.... 7|55 . |
|00002c70| 32 37 20 00 20 20 20 20 | 32 37 20 00 20 20 20 20 |27 . |27 . |
|00002c80| 20 20 20 20 34 35 31 20 | 20 35 30 35 37 32 32 31 | 451 | 5057221|
|00002c90| 30 31 32 20 20 20 37 37 | 30 37 00 20 00 00 00 00 |012 77|07. ....|
|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| 23 21 2f 75 33 2f 74 68 | 65 73 69 73 2f 63 6c 69 |#!/u3/th|esis/cli|
|00002e10| 70 70 65 72 2f 62 69 6e | 2f 70 65 72 6c 0a 65 76 |pper/bin|/perl.ev|
|00002e20| 61 6c 20 22 65 78 65 63 | 20 70 65 72 6c 20 2d 53 |al "exec| perl -S|
|00002e30| 20 24 30 20 24 2a 22 0a | 09 69 66 20 24 72 75 6e | $0 $*".|.if $run|
|00002e40| 6e 69 6e 67 5f 75 6e 64 | 65 72 5f 73 6f 6d 65 5f |ning_und|er_some_|
|00002e50| 73 68 65 6c 6c 3b 0a 72 | 65 6e 61 6d 65 28 22 61 |shell;.r|ename("a|
|00002e60| 72 63 68 69 65 22 2c 20 | 22 61 72 63 68 69 65 2e |rchie", |"archie.|
|00002e70| 6f 72 69 22 29 3b 0a 6f | 70 65 6e 28 46 49 4c 45 |ori");.o|pen(FILE|
|00002e80| 2c 20 22 61 72 63 68 69 | 65 2e 6f 72 69 22 29 3b |, "archi|e.ori");|
|00002e90| 0a 6f 70 65 6e 28 4f 55 | 54 2c 20 22 3e 61 72 63 |.open(OU|T, ">arc|
|00002ea0| 68 69 65 22 29 3b 0a 70 | 72 69 6e 74 20 4f 55 54 |hie");.p|rint OUT|
|00002eb0| 20 22 5c 23 5c 21 24 41 | 52 47 56 5b 30 5d 5c 6e | "\#\!$A|RGV[0]\n|
|00002ec0| 22 3b 0a 70 72 69 6e 74 | 20 24 5f 20 75 6e 6c 65 |";.print| $_ unle|
|00002ed0| 73 73 20 28 21 28 24 5f | 20 3d 20 3c 46 49 4c 45 |ss (!($_| = <FILE|
|00002ee0| 3e 29 20 7c 7c 20 28 24 | 5f 20 3d 7e 20 2f 5e 5c |>) || ($|_ =~ /^\|
|00002ef0| 23 5c 21 2f 29 29 3b 0a | 77 68 69 6c 65 20 28 3c |#\!/));.|while (<|
|00002f00| 46 49 4c 45 3e 29 20 7b | 0a 20 20 20 20 70 72 69 |FILE>) {|. pri|
|00002f10| 6e 74 20 4f 55 54 20 24 | 5f 3b 0a 7d 0a 63 6c 6f |nt OUT $|_;.}.clo|
|00002f20| 73 65 28 4f 55 54 29 3b | 0a 0a 4d 41 4e 44 49 52 |se(OUT);|..MANDIR|
|00002f30| 3d 2f 75 73 72 2f 6c 6f | 63 61 6c 2f 6d 61 6e 2f |=/usr/lo|cal/man/|
|00002f40| 6d 61 6e 31 0a 53 54 41 | 52 54 55 50 44 49 52 3d |man1.STA|RTUPDIR=|
|00002f50| 2f 75 73 72 2f 6c 6f 63 | 61 6c 2f 6c 69 62 0a 0a |/usr/loc|al/lib..|
|00002f60| 69 6e 73 74 61 6c 6c 3a | 20 0a 09 70 65 72 6c 20 |install:| ..perl |
|00002f70| 66 69 78 70 61 74 68 20 | 24 28 42 49 4e 44 49 52 |fixpath |$(BINDIR|
|00002f80| 29 2f 70 65 72 6c 0a 09 | 69 6e 73 74 61 6c 6c 20 |)/perl..|install |
|00002f90| 2d 6f 20 24 28 4f 57 4e | 45 52 29 20 2d 67 20 24 |-o $(OWN|ER) -g $|
|00002fa0| 28 47 52 4f 55 50 29 20 | 2d 6d 20 37 35 35 20 24 |(GROUP) |-m 755 $|
|00002fb0| 28 42 49 4e 29 20 24 28 | 42 49 4e 44 49 52 29 0a |(BIN) $(|BINDIR).|
|00002fc0| 09 69 6e 73 74 61 6c 6c | 20 2d 6f 20 24 28 4f 57 |.install| -o $(OW|
|00002fd0| 4e 45 52 29 20 2d 67 20 | 24 28 47 52 4f 55 50 29 |NER) -g |$(GROUP)|
|00002fe0| 20 2d 6d 20 34 34 34 20 | 24 28 4c 49 42 29 20 24 | -m 444 |$(LIB) $|
|00002ff0| 28 4c 49 42 44 49 52 29 | 0a 09 69 6e 73 74 61 6c |(LIBDIR)|..instal|
|00003000| 70 65 72 6c 5f 61 72 63 | 68 69 65 2f 61 72 63 68 |perl_arc|hie/arch|
|00003010| 69 65 2e 66 69 6c 65 73 | 00 00 00 00 00 00 00 00 |ie.files|........|
|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 20 |.... 6|44 . |
|00003070| 32 37 20 00 20 20 20 20 | 32 37 20 00 20 20 20 20 |27 . |27 . |
|00003080| 20 20 20 32 30 34 32 20 | 20 35 30 35 37 32 32 31 | 2042 | 5057221|
|00003090| 30 31 32 20 20 31 30 36 | 31 33 00 20 00 00 00 00 |012 106|13. ....|
|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| 61 72 63 68 69 65 2e 66 | 69 6c 65 73 20 20 20 20 |archie.f|iles |
|00003210| 20 20 20 2d 2d 20 74 68 | 69 73 20 66 69 6c 65 2e | -- th|is file.|
|00003220| 0a 61 72 63 68 69 65 20 | 20 20 20 20 20 20 20 20 |.archie | |
|00003230| 20 20 20 20 2d 2d 20 74 | 68 65 20 70 72 6f 67 72 | -- t|he progr|
|00003240| 61 6d 20 66 69 6c 65 2e | 20 52 65 6d 65 6d 62 65 |am file.| Remembe|
|00003250| 72 20 74 6f 20 73 65 74 | 20 74 6f 20 65 78 65 63 |r to set| to exec|
|00003260| 75 74 61 62 6c 65 0a 52 | 45 41 44 4d 45 20 20 20 |utable.R|EADME |
|00003270| 20 20 20 20 20 20 20 20 | 20 20 2d 2d 20 74 68 65 | | -- the|
|00003280| 20 72 65 61 64 6d 65 20 | 66 69 6c 65 20 66 6f 72 | readme |file for|
|00003290| 20 61 72 63 68 69 65 0a | 73 6f 63 6b 65 74 2e 70 | archie.|socket.p|
|000032a0| 68 20 20 20 20 20 20 20 | 20 20 20 2d 2d 20 59 6f |h | -- Yo|
|000032b0| 75 72 73 20 6d 69 67 68 | 74 20 62 65 20 63 61 6c |urs migh|t be cal|
|000032c0| 6c 65 64 20 73 79 73 2f | 73 6f 63 6b 65 74 2e 70 |led sys/|socket.p|
|000032d0| 68 2e 20 49 66 20 73 6f | 2c 0a 20 20 20 20 20 20 |h. If so|,. |
|000032e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000032f0| 63 68 61 6e 67 65 20 74 | 68 65 20 6e 61 6d 65 20 |change t|he name |
|00003300| 69 6e 20 74 68 65 20 66 | 69 6c 65 20 61 72 63 68 |in the f|ile arch|
|00003310| 69 65 2e 64 65 70 65 6e | 64 2e 20 54 68 69 73 20 |ie.depen|d. This |
|00003320| 66 69 6c 65 20 69 73 0a | 20 20 20 20 20 20 20 20 |file is.| |
|00003330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 69 6e | | in|
|00003340| 63 6c 75 64 65 64 20 6f | 6e 6c 79 20 66 6f 72 20 |cluded o|nly for |
|00003350| 63 6f 6d 70 6c 65 74 65 | 6e 65 73 73 27 73 20 73 |complete|ness's s|
|00003360| 61 6b 65 2e 0a 72 65 73 | 6f 6c 76 65 72 2e 70 6c |ake..res|olver.pl|
|00003370| 20 20 20 20 20 20 20 20 | 2d 2d 20 61 20 73 69 6d | |-- a sim|
|00003380| 70 6c 65 20 61 64 64 72 | 65 73 73 20 72 65 73 6f |ple addr|ess reso|
|00003390| 6c 76 65 72 20 69 6e 20 | 70 65 72 6c 2e 20 61 72 |lver in |perl. ar|
|000033a0| 63 68 69 65 20 75 73 65 | 73 0a 20 20 20 20 20 20 |chie use|s. |
|000033b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000033c0| 67 65 74 68 6f 73 74 62 | 79 6e 61 6d 65 28 29 20 |gethostb|yname() |
|000033d0| 66 69 72 73 74 20 62 65 | 66 6f 72 65 20 74 72 79 |first be|fore try|
|000033e0| 69 6e 67 20 74 68 65 0a | 20 20 20 20 20 20 20 20 |ing the.| |
|000033f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 72 65 | | re|
|00003400| 73 6f 6c 76 65 72 2e 20 | 44 6f 20 63 68 65 63 6b |solver. |Do check|
|00003410| 20 74 68 65 20 64 6f 6d | 61 69 6e 20 73 65 72 76 | the dom|ain serv|
|00003420| 65 72 20 6e 61 6d 65 20 | 69 6e 20 74 68 65 0a 20 |er name |in the. |
|00003430| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003440| 20 20 20 20 20 72 65 73 | 6f 6c 76 65 72 20 66 69 | res|olver fi|
|00003450| 6c 65 2e 0a 6e 65 77 67 | 65 74 6f 70 74 2e 70 6c |le..newg|etopt.pl|
|00003460| 20 20 20 20 20 20 20 2d | 2d 20 49 20 67 6f 74 20 | -|- I got |
|00003470| 74 68 69 73 20 66 72 6f | 6d 20 63 6f 6d 70 2e 6c |this fro|m comp.l|
|00003480| 61 6e 67 2e 70 65 72 6c | 2e 20 41 20 77 6f 6e 64 |ang.perl|. A wond|
|00003490| 65 72 66 75 6c 20 70 61 | 63 6b 61 67 65 2e 0a 61 |erful pa|ckage..a|
|000034a0| 72 63 68 69 65 2e 64 65 | 70 65 6e 64 20 20 20 20 |rchie.de|pend |
|000034b0| 20 20 2d 2d 20 53 79 73 | 74 65 6d 20 64 65 70 65 | -- Sys|tem depe|
|000034c0| 6e 64 65 6e 74 20 73 74 | 75 66 66 2e 0a 61 72 63 |ndent st|uff..arc|
|000034d0| 68 69 65 2e 6c 20 20 20 | 20 20 20 20 20 20 20 20 |hie.l | |
|000034e0| 2d 2d 20 41 20 72 75 64 | 69 6d 65 6e 74 61 72 79 |-- A rud|imentary|
|000034f0| 20 6d 61 6e 75 61 6c 20 | 70 61 67 65 20 66 6f 72 | manual |page for|
|00003500| 20 61 72 63 68 69 65 2e | 0a 44 4f 54 2e 61 72 63 | archie.|.DOT.arc|
|00003510| 68 69 65 72 63 20 20 20 | 20 20 20 20 2d 2d 20 41 |hierc | -- A|
|00003520| 6e 20 65 78 61 6d 70 6c | 65 20 2e 61 72 63 68 69 |n exampl|e .archi|
|00003530| 72 63 20 66 69 6c 65 2e | 0a 61 72 63 68 69 65 2e |rc file.|.archie.|
|00003540| 65 78 61 6d 70 6c 65 73 | 20 20 20 20 2d 2d 20 53 |examples| -- S|
|00003550| 6f 6d 65 20 65 78 61 6d | 70 6c 65 73 20 6f 6e 20 |ome exam|ples on |
|00003560| 75 73 69 6e 67 20 61 72 | 63 68 69 65 2e 0a 66 69 |using ar|chie..fi|
|00003570| 78 70 61 74 68 20 20 20 | 20 20 20 20 20 20 20 20 |xpath | |
|00003580| 20 2d 2d 20 54 6f 20 66 | 69 78 20 74 68 65 20 70 | -- To f|ix the p|
|00003590| 65 72 6c 20 62 69 6e 61 | 72 79 20 64 69 72 65 63 |erl bina|ry direc|
|000035a0| 74 6f 72 79 20 69 6e 20 | 61 72 63 68 69 65 2e 0a |tory in |archie..|
|000035b0| 4d 61 6b 65 66 69 6c 65 | 20 20 20 20 20 20 20 20 |Makefile| |
|000035c0| 20 20 20 2d 2d 20 41 20 | 73 69 6d 70 6c 65 20 69 | -- A |simple i|
|000035d0| 6e 73 74 61 6c 6c 20 73 | 63 72 69 70 74 20 66 6f |nstall s|cript fo|
|000035e0| 72 20 61 72 63 68 69 65 | 2e 0a 73 79 73 74 65 6d |r archie|..system|
|000035f0| 2e 61 72 63 68 69 65 72 | 63 20 20 20 20 2d 2d 20 |.archier|c -- |
|00003600| 41 20 73 61 6d 70 6c 65 | 20 73 79 73 74 65 6d 20 |A sample| system |
|00003610| 61 72 63 68 69 65 72 63 | 0a 0a 54 68 61 6e 6b 73 |archierc|..Thanks|
|00003620| 2e 0a 6f 70 6c 65 2e 20 | 49 20 70 6f 73 74 65 64 |..ople. |I posted|
|00003630| 20 69 74 20 69 6e 20 74 | 68 65 20 55 73 65 6e 65 | it in t|he Usene|
|00003640| 74 20 73 70 69 72 69 74 | 20 6f 66 20 73 68 61 72 |t spirit| of shar|
|00003650| 69 6e 67 2e 0a 0a 4b 68 | 75 6e 20 59 65 65 0a 73 |ing...Kh|un Yee.s|
|00003660| 74 65 6d 20 64 65 66 61 | 75 6c 74 20 6f 72 64 65 |tem defa|ult orde|
|00003670| 72 69 6e 67 2e 0a 0a 20 | 20 32 2e 20 56 65 72 73 |ring... | 2. Vers|
|00003680| 69 6f 6e 20 6f 70 74 69 | 6f 6e 20 69 73 20 73 75 |ion opti|on is su|
|00003690| 70 70 6f 72 74 65 64 2e | 20 57 68 65 6e 20 74 68 |pported.| When th|
|000036a0| 69 73 20 6f 70 74 69 6f | 6e 20 69 73 20 73 70 65 |is optio|n is spe|
|000036b0| 63 69 66 69 65 64 2c 20 | 74 68 65 0a 20 20 76 65 |cified, |the. ve|
|000036c0| 72 73 69 6f 6e 20 6e 75 | 6d 62 65 72 20 6f 66 20 |rsion nu|mber of |
|000036d0| 74 68 65 20 70 72 6f 67 | 72 61 6d 20 77 69 6c 6c |the prog|ram will|
|000036e0| 20 62 65 20 70 72 69 6e | 74 65 64 2e 0a 0a 20 20 | be prin|ted... |
|000036f0| 33 2e 20 41 20 64 69 66 | 66 65 72 65 6e 74 20 73 |3. A dif|ferent s|
|00003700| 74 61 72 74 75 70 20 66 | 69 6c 65 20 63 61 6e 20 |tartup f|ile can |
|00003710| 62 65 20 73 70 65 63 69 | 66 69 65 64 2e 0a 0a 20 |be speci|fied... |
|00003720| 20 34 2e 20 49 20 68 61 | 76 65 20 64 65 63 69 64 | 4. I ha|ve decid|
|00003730| 65 64 20 6e 6f 74 20 74 | 6f 20 64 6f 20 70 61 63 |ed not t|o do pac|
|00003740| 6b 65 74 20 6f 72 64 65 | 72 69 6e 67 20 6d 79 73 |ket orde|ring mys|
|00003750| 65 6c 66 2e 20 53 6f 20 | 74 68 65 20 2d 61 6c 6f |elf. So |the -alo|
|00003760| 6e 67 0a 20 20 6f 70 74 | 69 6f 6e 20 69 73 20 67 |ng. opt|ion is g|
|00003770| 6f 6e 65 2e 0a 0a 20 20 | 35 2e 20 54 68 65 20 70 |one... |5. The p|
|00003780| 61 72 74 20 6f 6e 20 6e | 65 74 77 6f 72 6b 69 6e |art on n|etworkin|
|00003790| 67 20 68 61 73 20 62 65 | 65 6e 20 63 6f 6d 70 6c |g has be|en compl|
|000037a0| 65 74 65 6c 79 20 72 65 | 77 72 69 74 74 65 6e 2e |etely re|written.|
|000037b0| 20 49 20 68 6f 70 65 20 | 69 74 0a 20 20 69 73 20 | I hope |it. is |
|000037c0| 6d 6f 72 65 20 63 6f 72 | 72 65 63 74 20 74 68 61 |more cor|rect tha|
|000037d0| 6e 20 74 68 65 20 6c 61 | 73 74 20 74 77 6f 20 72 |n the la|st two r|
|000037e0| 65 6c 65 61 73 65 73 2e | 0a 0a 20 20 36 2e 20 54 |eleases.|.. 6. T|
|000037f0| 68 65 72 65 20 61 72 65 | 20 6f 74 68 65 72 20 73 |here are| other s|
|00003800| 70 65 72 6c 5f 61 72 63 | 68 69 65 2f 61 72 63 68 |perl_arc|hie/arch|
|00003810| 69 65 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ie......|........|
|00003820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003860| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 20 20 |.... 7|55 . |
|00003870| 32 37 20 00 20 20 20 20 | 32 37 20 00 20 20 20 20 |27 . |27 . |
|00003880| 20 20 34 34 35 31 30 20 | 20 35 30 35 37 32 32 31 | 44510 | 5057221|
|00003890| 30 31 33 20 20 20 37 35 | 34 34 00 20 00 00 00 00 |013 75|44. ....|
|000038a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a00| 23 21 2f 75 33 2f 74 68 | 65 73 69 73 2f 63 6c 69 |#!/u3/th|esis/cli|
|00003a10| 70 70 65 72 2f 62 69 6e | 2f 70 65 72 6c 0a 23 20 |pper/bin|/perl.# |
|00003a20| 43 6f 70 79 72 69 67 68 | 74 20 28 43 29 20 4b 68 |Copyrigh|t (C) Kh|
|00003a30| 75 6e 20 59 65 65 20 46 | 75 6e 67 20 63 6c 69 70 |un Yee F|ung clip|
|00003a40| 70 65 72 40 63 73 64 2e | 75 77 6f 2e 63 61 20 31 |per@csd.|uwo.ca 1|
|00003a50| 39 39 31 0a 23 0a 23 20 | 4d 6f 64 69 66 69 65 64 |991.#.# |Modified|
|00003a60| 20 62 79 20 50 65 74 65 | 72 20 4f 72 62 61 65 6b | by Pete|r Orbaek|
|00003a70| 20 28 70 6f 65 40 64 61 | 69 6d 69 2e 61 61 75 2e | (poe@da|imi.aau.|
|00003a80| 64 6b 29 20 74 6f 20 6c | 6f 6f 6b 20 6d 6f 72 65 |dk) to l|ook more|
|00003a90| 20 70 65 72 6c 27 69 73 | 68 2e 0a 23 0a 23 20 59 | perl'is|h..#.# Y|
|00003aa0| 6f 75 20 63 61 6e 20 64 | 6f 20 61 6e 79 74 68 69 |ou can d|o anythi|
|00003ab0| 6e 67 20 74 6f 20 74 68 | 69 73 20 70 72 6f 67 72 |ng to th|is progr|
|00003ac0| 61 6d 20 65 78 63 65 70 | 74 20 73 65 6c 6c 69 6e |am excep|t sellin|
|00003ad0| 67 20 69 74 20 66 6f 72 | 20 70 72 6f 66 69 74 20 |g it for| profit |
|00003ae0| 6f 72 0a 23 20 70 72 65 | 74 65 6e 64 69 6e 67 20 |or.# pre|tending |
|00003af0| 79 6f 75 20 77 72 6f 74 | 65 20 69 74 2e 20 54 68 |you wrot|e it. Th|
|00003b00| 65 20 63 6f 70 79 72 69 | 67 68 74 20 6e 6f 74 69 |e copyri|ght noti|
|00003b10| 63 65 20 6d 75 73 74 20 | 62 65 20 70 72 65 73 65 |ce must |be prese|
|00003b20| 72 76 65 64 20 69 6e 20 | 61 6c 6c 20 0a 23 20 63 |rved in |all .# c|
|00003b30| 6f 70 69 65 73 2e 20 41 | 62 73 6f 6c 75 74 65 6c |opies. A|bsolutel|
|00003b40| 79 20 6e 6f 20 77 61 72 | 72 61 6e 74 79 2e 0a 23 |y no war|ranty..#|
|00003b50| 0a 23 20 24 49 64 3a 20 | 61 72 63 68 69 65 2c 76 |.# $Id: |archie,v|
|00003b60| 20 33 2e 38 20 31 39 39 | 31 2f 30 38 2f 31 32 20 | 3.8 199|1/08/12 |
|00003b70| 31 37 3a 30 35 3a 31 38 | 20 63 6c 69 70 70 65 72 |17:05:18| clipper|
|00003b80| 20 45 78 70 20 63 6c 69 | 70 70 65 72 20 24 0a 23 | Exp cli|pper $.#|
|00003b90| 0a 23 20 54 68 69 73 20 | 76 65 72 73 69 6f 6e 20 |.# This |version |
|00003ba0| 6f 66 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 69 |of the p|rogram i|
|00003bb0| 73 20 62 61 73 65 64 20 | 6f 6e 20 42 65 74 61 20 |s based |on Beta |
|00003bc0| 34 2e 32 20 6f 66 20 70 | 72 6f 73 70 65 72 6f 20 |4.2 of p|rospero |
|00003bd0| 70 72 6f 74 6f 63 6f 6c | 2e 0a 23 20 54 68 65 20 |protocol|..# The |
|00003be0| 56 65 72 73 69 6f 6e 20 | 6e 75 6d 62 65 72 20 6f |Version |number o|
|00003bf0| 66 20 74 68 69 73 20 72 | 65 6c 65 61 73 65 20 69 |f this r|elease i|
|00003c00| 73 20 24 52 65 76 69 73 | 69 6f 6e 3a 20 33 2e 38 |s $Revis|ion: 3.8|
|00003c10| 20 24 2e 0a 0a 65 76 61 | 6c 20 22 65 78 65 63 20 | $...eva|l "exec |
|00003c20| 70 65 72 6c 20 2d 53 20 | 24 30 20 24 2a 22 0a 09 |perl -S |$0 $*"..|
|00003c30| 69 66 20 24 72 75 6e 6e | 69 6e 67 5f 75 6e 64 65 |if $runn|ing_unde|
|00003c40| 72 5f 73 6f 6d 65 5f 73 | 68 65 6c 6c 3b 0a 0a 72 |r_some_s|hell;..r|
|00003c50| 65 71 75 69 72 65 20 27 | 72 65 73 6f 6c 76 65 72 |equire '|resolver|
|00003c60| 2e 70 6c 27 3b 0a 72 65 | 71 75 69 72 65 20 27 73 |.pl';.re|quire 's|
|00003c70| 79 73 2f 73 6f 63 6b 65 | 74 2e 70 68 27 3b 0a 72 |ys/socke|t.ph';.r|
|00003c80| 65 71 75 69 72 65 20 27 | 6e 65 77 67 65 74 6f 70 |equire '|newgetop|
|00003c90| 74 2e 70 6c 27 3b 0a 72 | 65 71 75 69 72 65 20 27 |t.pl';.r|equire '|
|00003ca0| 61 72 63 68 69 65 2e 64 | 65 70 65 6e 64 27 3b 0a |archie.d|epend';.|
|00003cb0| 24 73 65 72 76 65 72 6e | 61 6d 65 20 3d 7e 20 74 |$servern|ame =~ t|
|00003cc0| 72 2f 41 2d 5a 2f 61 2d | 7a 2f 3b 0a 0a 73 65 6c |r/A-Z/a-|z/;..sel|
|00003cd0| 65 63 74 28 53 54 44 4f | 55 54 29 3b 20 24 7c 20 |ect(STDO|UT); $| |
|00003ce0| 3d 20 31 3b 0a 0a 23 20 | 54 6f 20 67 65 74 20 74 |= 1;..# |To get t|
|00003cf0| 68 65 20 6f 70 74 69 6f | 6e 73 20 6f 6e 20 74 68 |he optio|ns on th|
|00003d00| 65 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 2e 20 |e comman|d line. |
|00003d10| 45 78 70 6c 61 6e 61 74 | 69 6f 6e 73 20 61 72 65 |Explanat|ions are|
|00003d20| 20 69 6e 20 74 68 65 20 | 63 6f 64 65 0a 23 20 68 | in the |code.# h|
|00003d30| 61 6e 64 6c 69 6e 67 20 | 74 68 65 6d 2e 0a 26 4e |andling |them..&N|
|00003d40| 47 65 74 4f 70 74 28 27 | 6d 61 74 63 68 3d 69 27 |GetOpt('|match=i'|
|00003d50| 2c 20 27 72 65 67 27 2c | 20 27 65 78 61 63 74 27 |, 'reg',| 'exact'|
|00003d60| 2c 20 27 6e 6f 63 61 73 | 65 27 2c 20 27 63 61 73 |, 'nocas|e', 'cas|
|00003d70| 65 27 2c 20 27 73 65 72 | 76 65 72 3d 73 27 2c 0a |e', 'ser|ver=s',.|
|00003d80| 09 20 27 66 66 69 6c 65 | 3d 73 27 2c 20 27 66 6f |. 'ffile|=s', 'fo|
|00003d90| 72 6d 61 74 3d 73 27 2c | 20 27 61 6c 6f 6e 67 27 |rmat=s',| 'along'|
|00003da0| 2c 20 27 6e 6f 72 63 27 | 2c 20 27 73 79 6e 74 61 |, 'norc'|, 'synta|
|00003db0| 78 27 2c 20 27 76 65 72 | 73 69 6f 6e 27 2c 0a 09 |x', 'ver|sion',..|
|00003dc0| 20 27 73 6f 72 74 3d 73 | 27 2c 20 27 72 65 76 65 | 'sort=s|', 'reve|
|00003dd0| 72 73 65 27 2c 20 27 72 | 63 3d 73 27 2c 20 27 64 |rse', 'r|c=s', 'd|
|00003de0| 6f 6d 61 69 6e 3d 73 27 | 2c 20 27 61 66 74 70 27 |omain=s'|, 'aftp'|
|00003df0| 29 3b 0a 0a 23 20 47 65 | 74 20 74 68 65 20 6e 61 |);..# Ge|t the na|
|00003e00| 6d 65 20 6f 66 20 74 68 | 69 73 20 70 72 6f 67 72 |me of th|is progr|
|00003e10| 61 6d 2e 20 54 68 65 20 | 6c 61 73 74 20 65 6c 65 |am. The |last ele|
|00003e20| 6d 65 6e 74 20 69 73 20 | 74 68 65 20 6f 6e 65 2e |ment is |the one.|
|00003e30| 0a 40 70 72 6f 67 20 3d | 20 73 70 6c 69 74 28 27 |.@prog =| split('|
|00003e40| 2f 27 2c 20 24 30 29 3b | 0a 24 70 72 6f 67 20 3d |/', $0);|.$prog =|
|00003e50| 20 24 70 72 6f 67 5b 24 | 23 70 72 6f 67 5d 3b 0a | $prog[$|#prog];.|
|00003e60| 0a 23 20 55 73 61 67 65 | 20 73 74 72 69 6e 67 2e |.# Usage| string.|
|00003e70| 0a 23 20 54 68 65 20 6f | 70 74 69 6f 6e 73 20 2d |.# The o|ptions -|
|00003e80| 73 79 6e 74 61 78 20 61 | 6e 64 20 2d 61 66 74 70 |syntax a|nd -aftp|
|00003e90| 20 61 72 65 20 69 6e 76 | 69 73 69 62 6c 65 20 62 | are inv|isible b|
|00003ea0| 65 63 61 75 73 65 20 2d | 73 79 6e 74 61 78 20 69 |ecause -|syntax i|
|00003eb0| 73 20 75 73 65 64 20 6f | 6e 6c 79 0a 23 20 74 6f |s used o|nly.# to|
|00003ec0| 20 63 68 65 63 6b 20 74 | 68 65 20 73 79 6e 74 61 | check t|he synta|
|00003ed0| 78 20 6f 66 20 74 68 65 | 20 70 72 6f 67 72 61 6d |x of the| program|
|00003ee0| 20 61 6e 64 20 2d 61 66 | 74 70 20 69 73 20 75 73 | and -af|tp is us|
|00003ef0| 65 66 75 6c 20 6f 6e 6c | 79 20 66 6f 72 20 74 68 |eful onl|y for th|
|00003f00| 65 20 61 72 63 68 69 65 | 0a 23 20 69 6e 74 65 72 |e archie|.# inter|
|00003f10| 66 61 63 65 20 6f 66 20 | 74 68 65 20 6e 66 74 70 |face of |the nftp|
|00003f20| 20 70 72 6f 67 72 61 6d | 2e 0a 24 75 73 61 67 65 | program|..$usage|
|00003f30| 20 3d 20 0a 22 55 73 61 | 67 65 3a 20 24 70 72 6f | = ."Usa|ge: $pro|
|00003f40| 67 20 5b 6f 70 74 69 6f | 6e 73 5d 20 77 6f 72 64 |g [optio|ns] word|
|00003f50| 31 20 77 6f 72 64 32 20 | 2e 2e 2e 0a 20 20 57 68 |1 word2 |.... Wh|
|00003f60| 65 72 65 20 6f 70 74 69 | 6f 6e 73 20 61 72 65 20 |ere opti|ons are |
|00003f70| 6f 6e 65 20 6f 72 20 6d | 6f 72 65 20 6f 66 20 74 |one or m|ore of t|
|00003f80| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 3a 0a 20 20 |he follo|wing:. |
|00003f90| 2d 61 6c 6f 6e 67 20 20 | 20 20 20 20 20 20 20 20 |-along | |
|00003fa0| 20 20 50 72 69 6e 74 20 | 74 68 65 20 65 6e 74 72 | Print |the entr|
|00003fb0| 69 65 73 20 77 68 65 6e | 20 74 68 65 79 20 61 72 |ies when| they ar|
|00003fc0| 65 20 61 76 61 69 6c 61 | 62 6c 65 2e 0a 20 20 2d |e availa|ble.. -|
|00003fd0| 63 61 73 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |case | |
|00003fe0| 20 43 61 73 65 20 73 65 | 6e 73 69 74 69 76 65 0a | Case se|nsitive.|
|00003ff0| 20 20 2d 6e 6f 63 61 73 | 65 20 20 20 20 20 20 20 | -nocas|e |
|00004000| 20 20 20 20 43 61 73 65 | 20 69 6e 73 65 6e 73 69 | Case| insensi|
|00004010| 74 69 76 65 0a 20 20 2d | 65 78 61 63 74 20 20 20 |tive. -|exact |
|00004020| 20 20 20 20 20 20 20 20 | 20 45 78 61 63 74 20 6d | | Exact m|
|00004030| 61 74 63 68 0a 20 20 2d | 72 65 67 20 20 20 20 20 |atch. -|reg |
|00004040| 20 20 20 20 20 20 20 20 | 20 52 65 67 75 6c 61 72 | | Regular|
|00004050| 20 65 78 70 72 65 73 73 | 69 6f 6e 20 6d 61 74 63 | express|ion matc|
|00004060| 68 0a 20 20 2d 6d 61 74 | 63 68 20 5c 23 20 20 20 |h. -mat|ch \# |
|00004070| 20 20 20 20 20 20 20 4d | 61 78 20 68 69 74 73 0a | M|ax hits.|
|00004080| 20 20 2d 73 65 72 76 65 | 72 20 68 6f 73 74 6e 61 | -serve|r hostna|
|00004090| 6d 65 20 20 41 6e 20 61 | 6c 74 65 72 6e 61 74 69 |me An a|lternati|
|000040a0| 76 65 20 61 72 63 68 69 | 65 20 73 65 72 76 65 72 |ve archi|e server|
|000040b0| 0a 20 20 2d 66 66 69 6c | 65 20 66 69 6c 65 6e 61 |. -ffil|e filena|
|000040c0| 6d 65 20 20 20 55 73 65 | 20 61 20 66 6f 72 6d 61 |me Use| a forma|
|000040d0| 74 20 66 69 6c 65 0a 20 | 20 2d 66 6f 72 6d 61 74 |t file. | -format|
|000040e0| 20 73 74 72 69 6e 67 20 | 20 20 20 53 70 65 63 69 | string | Speci|
|000040f0| 66 79 20 61 20 66 6f 72 | 6d 61 74 20 73 74 72 69 |fy a for|mat stri|
|00004100| 6e 67 0a 20 20 2d 6e 6f | 72 63 20 20 20 20 20 20 |ng. -no|rc |
|00004110| 20 20 20 20 20 20 20 44 | 6f 20 6e 6f 74 20 72 65 | D|o not re|
|00004120| 61 64 20 2e 61 72 63 68 | 69 65 72 63 20 66 69 6c |ad .arch|ierc fil|
|00004130| 65 20 69 6e 20 68 6f 6d | 65 20 64 69 72 65 63 74 |e in hom|e direct|
|00004140| 6f 72 79 2e 0a 20 20 2d | 76 65 72 73 69 6f 6e 20 |ory.. -|version |
|00004150| 20 20 20 20 20 20 20 20 | 20 50 72 69 6e 74 20 74 | | Print t|
|00004160| 68 65 20 76 65 72 73 69 | 6f 6e 20 6e 75 6d 62 65 |he versi|on numbe|
|00004170| 72 20 6f 66 20 74 68 65 | 20 70 72 6f 67 72 61 6d |r of the| program|
|00004180| 2e 0a 20 20 2d 72 63 20 | 66 69 6c 65 6e 61 6d 65 |.. -rc |filename|
|00004190| 20 20 20 20 20 20 52 65 | 61 64 20 61 6e 6f 74 68 | Re|ad anoth|
|000041a0| 65 72 20 66 69 6c 65 20 | 61 73 20 74 68 65 20 73 |er file |as the s|
|000041b0| 74 61 72 74 75 70 20 66 | 69 6c 65 2e 0a 20 20 2d |tartup f|ile.. -|
|000041c0| 73 6f 72 74 20 5b 64 61 | 74 65 7c 68 6f 73 74 5d |sort [da|te|host]|
|000041d0| 20 53 6f 72 74 20 62 79 | 20 64 61 74 65 20 6f 74 | Sort by| date ot|
|000041e0| 20 68 6f 73 74 2e 0a 20 | 20 2d 72 65 76 65 72 73 | host.. | -revers|
|000041f0| 65 20 20 20 20 20 20 20 | 20 20 20 52 65 76 65 72 |e | Rever|
|00004200| 73 65 20 73 6f 72 74 69 | 6e 67 20 6f 72 64 65 72 |se sorti|ng order|
|00004210| 2e 0a 20 20 2d 64 6f 6d | 61 69 6e 20 73 74 72 69 |.. -dom|ain stri|
|00004220| 6e 67 20 20 20 20 55 73 | 65 20 74 68 65 20 6f 72 |ng Us|e the or|
|00004230| 64 65 72 20 69 6e 20 74 | 68 65 20 73 74 72 69 6e |der in t|he strin|
|00004240| 67 20 74 6f 20 73 6f 72 | 74 20 74 68 65 20 68 6f |g to sor|t the ho|
|00004250| 73 74 73 2e 0a 22 3b 0a | 0a 28 24 52 65 76 69 73 |sts..";.|.($Revis|
|00004260| 69 6f 6e 29 20 3d 20 28 | 27 24 52 65 76 69 73 69 |ion) = (|'$Revisi|
|00004270| 6f 6e 3a 20 33 2e 38 20 | 24 27 20 3d 7e 20 2f 52 |on: 3.8 |$' =~ /R|
|00004280| 65 76 69 73 69 6f 6e 3a | 20 28 5b 5c 64 5c 2e 5d |evision:| ([\d\.]|
|00004290| 2b 29 2f 29 3b 0a 24 76 | 65 72 73 69 6f 6e 20 3d |+)/);.$v|ersion =|
|000042a0| 20 22 50 72 6f 73 70 65 | 72 6f 20 42 65 74 61 2e | "Prospe|ro Beta.|
|000042b0| 34 2e 32 20 28 50 65 72 | 6c 20 41 72 63 68 69 65 |4.2 (Per|l Archie|
|000042c0| 20 43 6c 69 65 6e 74 20 | 56 65 72 73 69 6f 6e 20 | Client |Version |
|000042d0| 24 52 65 76 69 73 69 6f | 6e 29 5c 6e 22 3b 0a 0a |$Revisio|n)\n";..|
|000042e0| 23 20 53 68 6f 75 6c 64 | 20 68 61 76 65 20 61 74 |# Should| have at|
|000042f0| 20 6c 65 61 73 74 20 6f | 6e 65 20 71 75 65 72 79 | least o|ne query|
|00004300| 2e 0a 69 66 20 28 24 23 | 41 52 47 56 20 3c 20 30 |..if ($#|ARGV < 0|
|00004310| 29 20 7b 0a 20 20 20 20 | 69 66 20 28 64 65 66 69 |) {. |if (defi|
|00004320| 6e 65 64 28 24 6f 70 74 | 5f 76 65 72 73 69 6f 6e |ned($opt|_version|
|00004330| 29 29 20 7b 0a 20 20 20 | 20 20 20 20 20 70 72 69 |)) {. | pri|
|00004340| 6e 74 20 24 76 65 72 73 | 69 6f 6e 3b 0a 20 20 20 |nt $vers|ion;. |
|00004350| 20 20 20 20 20 65 78 69 | 74 28 30 29 3b 0a 20 20 | exi|t(0);. |
|00004360| 20 20 7d 0a 20 20 20 20 | 70 72 69 6e 74 20 22 50 | }. |print "P|
|00004370| 6c 65 61 73 65 20 73 70 | 65 63 69 66 79 20 61 74 |lease sp|ecify at|
|00004380| 20 6c 65 61 73 74 20 6f | 6e 65 20 71 75 65 72 79 | least o|ne query|
|00004390| 2e 5c 6e 22 3b 0a 20 20 | 20 20 70 72 69 6e 74 20 |.\n";. | print |
|000043a0| 24 75 73 61 67 65 3b 0a | 20 20 20 20 65 78 69 74 |$usage;.| exit|
|000043b0| 28 32 35 35 29 3b 0a 7d | 0a 40 73 74 72 69 6e 67 |(255);.}|.@string|
|000043c0| 20 3d 20 40 41 52 47 56 | 3b 0a 0a 25 64 6f 6d 61 | = @ARGV|;..%doma|
|000043d0| 69 6e 6f 72 64 65 72 20 | 3d 20 28 27 63 61 27 2c |inorder |= ('ca',|
|000043e0| 20 31 2c 20 27 65 64 75 | 27 2c 20 32 2c 20 27 63 | 1, 'edu|', 2, 'c|
|000043f0| 6f 6d 27 2c 20 33 2c 20 | 27 67 6f 76 27 2c 20 34 |om', 3, |'gov', 4|
|00004400| 2c 20 27 6e 65 74 27 2c | 20 35 2c 0a 09 09 27 64 |, 'net',| 5,...'d|
|00004410| 65 27 2c 20 36 2c 20 27 | 64 6b 27 2c 20 37 2c 20 |e', 6, '|dk', 7, |
|00004420| 27 6e 6c 27 2c 20 38 2c | 20 27 66 69 27 2c 20 39 |'nl', 8,| 'fi', 9|
|00004430| 2c 20 27 73 65 27 2c 20 | 31 30 2c 0a 09 09 27 61 |, 'se', |10,...'a|
|00004440| 75 27 2c 20 31 30 30 30 | 2c 20 27 6e 7a 27 2c 20 |u', 1000|, 'nz', |
|00004450| 31 30 30 31 29 3b 0a 0a | 23 20 46 6f 72 20 74 68 |1001);..|# For th|
|00004460| 65 20 63 6f 6e 76 65 72 | 73 69 6f 6e 20 6f 66 20 |e conver|sion of |
|00004470| 64 61 74 65 20 69 6e 20 | 74 68 65 20 73 75 62 72 |date in |the subr|
|00004480| 6f 75 74 69 6e 65 20 64 | 61 74 65 2e 0a 25 6d 6f |outine d|ate..%mo|
|00004490| 6e 74 68 20 3d 20 28 27 | 4a 61 6e 27 2c 20 31 2c |nth = ('|Jan', 1,|
|000044a0| 20 27 46 65 62 27 2c 20 | 32 2c 20 27 4d 61 72 27 | 'Feb', |2, 'Mar'|
|000044b0| 2c 20 33 2c 20 27 41 70 | 72 27 2c 20 34 2c 20 27 |, 3, 'Ap|r', 4, '|
|000044c0| 4d 61 79 27 2c 20 35 2c | 20 27 4a 75 6e 27 2c 20 |May', 5,| 'Jun', |
|000044d0| 36 2c 20 0a 09 20 20 27 | 4a 75 6c 27 2c 20 37 2c |6, .. '|Jul', 7,|
|000044e0| 20 27 41 75 67 27 2c 20 | 38 2c 20 27 53 65 70 27 | 'Aug', |8, 'Sep'|
|000044f0| 2c 20 39 2c 20 27 4f 63 | 74 27 2c 20 31 30 2c 20 |, 9, 'Oc|t', 10, |
|00004500| 27 4e 6f 76 27 2c 20 31 | 31 2c 20 27 44 65 63 27 |'Nov', 1|1, 'Dec'|
|00004510| 2c 20 31 32 29 3b 0a 40 | 6d 6f 6e 74 68 20 3d 20 |, 12);.@|month = |
|00004520| 28 27 27 2c 20 27 4a 61 | 6e 27 2c 20 27 46 65 62 |('', 'Ja|n', 'Feb|
|00004530| 27 2c 20 27 4d 61 72 27 | 2c 20 27 41 70 72 27 2c |', 'Mar'|, 'Apr',|
|00004540| 20 27 4d 61 79 27 2c 20 | 27 4a 75 6e 27 2c 20 0a | 'May', |'Jun', .|
|00004550| 09 20 20 27 4a 75 6c 27 | 2c 20 27 41 75 67 27 2c |. 'Jul'|, 'Aug',|
|00004560| 20 27 53 65 70 27 2c 20 | 27 4f 63 74 27 2c 20 27 | 'Sep', |'Oct', '|
|00004570| 4e 6f 76 27 2c 20 27 44 | 65 63 27 29 3b 0a 0a 23 |Nov', 'D|ec');..#|
|00004580| 20 54 68 65 20 61 72 63 | 68 69 65 20 70 6f 72 74 | The arc|hie port|
|00004590| 20 6e 75 6d 62 65 72 20 | 69 73 20 31 35 32 35 2e | number |is 1525.|
|000045a0| 0a 24 70 6f 72 74 20 3d | 20 31 35 32 35 3b 0a 0a |.$port =| 1525;..|
|000045b0| 23 20 54 68 65 20 73 6f | 63 6b 65 74 61 64 64 72 |# The so|cketaddr|
|000045c0| 20 73 74 72 75 63 74 75 | 72 65 2e 20 53 65 65 20 | structu|re. See |
|000045d0| 2f 75 73 72 2f 69 6e 63 | 6c 75 64 65 2f 73 79 73 |/usr/inc|lude/sys|
|000045e0| 2f 73 6f 63 6b 65 74 2e | 68 20 66 6f 72 20 74 68 |/socket.|h for th|
|000045f0| 65 20 43 20 0a 23 20 76 | 65 72 73 69 6f 6e 2e 0a |e C .# v|ersion..|
|00004600| 24 73 6f 63 6b 61 64 64 | 72 20 3d 20 27 53 20 6e |$sockadd|r = 'S n|
|00004610| 20 61 34 20 78 38 27 3b | 0a 0a 23 20 44 65 66 61 | a4 x8';|..# Defa|
|00004620| 75 6c 74 73 3a 20 6d 61 | 78 69 6d 75 6d 20 68 69 |ults: ma|ximum hi|
|00004630| 74 20 69 73 20 34 30 2e | 20 49 74 20 64 6f 65 73 |t is 40.| It does|
|00004640| 20 6e 6f 74 20 6d 65 61 | 6e 20 74 68 65 72 65 20 | not mea|n there |
|00004650| 77 69 6c 6c 20 62 65 20 | 65 78 61 63 74 6c 79 0a |will be |exactly.|
|00004660| 23 20 34 30 20 65 6e 74 | 72 69 65 73 20 72 65 74 |# 40 ent|ries ret|
|00004670| 75 72 6e 65 64 2c 20 74 | 68 6f 75 67 68 2e 20 45 |urned, t|hough. E|
|00004680| 78 70 65 63 74 20 61 20 | 66 65 77 20 65 6e 74 72 |xpect a |few entr|
|00004690| 69 65 73 20 6d 6f 72 65 | 20 6f 72 20 6c 65 73 73 |ies more| or less|
|000046a0| 2e 0a 23 20 54 68 65 20 | 64 65 66 61 75 6c 74 20 |..# The |default |
|000046b0| 73 65 61 72 63 68 20 6f | 70 74 69 6f 6e 20 69 73 |search o|ption is|
|000046c0| 20 63 61 73 65 20 69 6e | 73 65 6e 73 69 74 69 76 | case in|sensitiv|
|000046d0| 65 2e 0a 24 6d 61 74 63 | 68 20 3d 20 34 30 3b 20 |e..$matc|h = 40; |
|000046e0| 24 63 61 73 65 20 3d 20 | 27 53 27 3b 20 24 70 6e |$case = |'S'; $pn|
|000046f0| 75 6d 20 3d 20 31 3b 0a | 0a 23 20 54 68 65 20 64 |um = 1;.|.# The d|
|00004700| 65 66 61 75 6c 74 20 66 | 6f 72 6d 61 74 20 73 74 |efault f|ormat st|
|00004710| 72 69 6e 67 2e 20 43 61 | 6e 20 62 65 20 6f 76 65 |ring. Ca|n be ove|
|00004720| 72 69 64 65 6e 20 62 79 | 20 74 68 65 20 2d 66 6f |riden by| the -fo|
|00004730| 72 6d 61 74 20 6f 72 20 | 2d 66 66 69 6c 65 20 0a |rmat or |-ffile .|
|00004740| 23 20 6f 70 74 69 6f 6e | 73 2e 20 43 61 6e 20 61 |# option|s. Can a|
|00004750| 6c 73 6f 20 73 70 65 63 | 69 66 79 20 61 20 64 65 |lso spec|ify a de|
|00004760| 66 61 75 6c 74 20 66 6f | 72 6d 61 74 20 73 74 72 |fault fo|rmat str|
|00004770| 69 6e 67 20 69 6e 20 7e | 2f 2e 61 72 63 68 69 65 |ing in ~|/.archie|
|00004780| 72 63 0a 24 66 6f 72 6d | 61 74 20 3d 20 22 25 30 |rc.$form|at = "%0|
|00004790| 32 73 65 71 20 48 6f 73 | 74 20 25 68 6f 73 74 0a |2seq Hos|t %host.|
|000047a0| 0a 20 20 20 20 4c 6f 63 | 61 74 69 6f 6e 3a 20 25 |. Loc|ation: %|
|000047b0| 64 69 72 0a 20 20 20 20 | 20 20 25 31 30 74 79 70 |dir. | %10typ|
|000047c0| 65 20 25 6d 6f 64 65 20 | 25 30 38 73 69 7a 65 20 |e %mode |%08size |
|000047d0| 25 64 61 74 65 20 25 6e | 61 6d 65 0a 0a 22 3b 0a |%date %n|ame..";.|
|000047e0| 0a 23 20 54 6f 20 67 65 | 74 20 74 68 65 20 75 73 |.# To ge|t the us|
|000047f0| 65 72 20 6e 61 6d 65 20 | 61 6e 64 20 75 73 65 72 |er name |and user|
|00004800| 20 68 6f 6d 65 20 70 61 | 74 68 2e 0a 40 70 77 20 | home pa|th..@pw |
|00004810| 3d 20 67 65 74 70 77 75 | 69 64 28 24 3c 29 3b 0a |= getpwu|id($<);.|
|00004820| 24 75 73 65 72 20 3d 20 | 24 70 77 5b 30 5d 3b 0a |$user = |$pw[0];.|
|00004830| 24 75 73 65 72 70 61 74 | 68 20 3d 20 24 70 77 5b |$userpat|h = $pw[|
|00004840| 37 5d 3b 0a 0a 23 20 52 | 65 61 64 20 74 68 65 20 |7];..# R|ead the |
|00004850| 73 79 73 74 65 6d 20 73 | 74 61 72 74 75 70 20 66 |system s|tartup f|
|00004860| 69 6c 65 20 69 66 20 74 | 68 65 72 65 20 69 73 20 |ile if t|here is |
|00004870| 6f 6e 65 2e 20 53 65 74 | 20 74 68 65 20 66 69 6c |one. Set| the fil|
|00004880| 65 6e 61 6d 65 20 69 6e | 0a 23 20 61 72 63 68 69 |ename in|.# archi|
|00004890| 65 2e 64 65 70 65 6e 64 | 2e 0a 0a 26 70 61 72 73 |e.depend|...&pars|
|000048a0| 65 72 63 28 24 73 74 61 | 72 74 75 70 29 3b 0a 0a |erc($sta|rtup);..|
|000048b0| 24 73 74 61 72 74 66 69 | 6c 65 20 3d 20 64 65 66 |$startfi|le = def|
|000048c0| 69 6e 65 64 28 24 6f 70 | 74 5f 72 63 29 20 3f 20 |ined($op|t_rc) ? |
|000048d0| 24 6f 70 74 5f 72 63 20 | 3a 20 22 24 75 73 65 72 |$opt_rc |: "$user|
|000048e0| 70 61 74 68 2f 2e 61 72 | 63 68 69 65 72 63 22 3b |path/.ar|chierc";|
|000048f0| 0a 24 61 6c 6f 6e 67 20 | 3d 20 64 65 66 69 6e 65 |.$along |= define|
|00004900| 64 28 24 6f 70 74 5f 61 | 6c 6f 6e 67 29 3b 0a 26 |d($opt_a|long);.&|
|00004910| 70 61 72 73 65 72 63 28 | 24 73 74 61 72 74 66 69 |parserc(|$startfi|
|00004920| 6c 65 29 20 75 6e 6c 65 | 73 73 20 28 64 65 66 69 |le) unle|ss (defi|
|00004930| 6e 65 64 28 24 6f 70 74 | 5f 6e 6f 72 63 29 29 3b |ned($opt|_norc));|
|00004940| 20 20 23 20 52 65 61 64 | 20 7e 2f 2e 61 72 63 68 | # Read| ~/.arch|
|00004950| 69 65 72 63 3f 0a 24 6d | 61 74 63 68 20 3d 20 24 |ierc?.$m|atch = $|
|00004960| 6f 70 74 5f 6d 61 74 63 | 68 20 69 66 20 28 64 65 |opt_matc|h if (de|
|00004970| 66 69 6e 65 64 28 24 6f | 70 74 5f 6d 61 74 63 68 |fined($o|pt_match|
|00004980| 29 29 3b 20 23 20 68 6f | 77 20 6d 61 6e 79 20 68 |)); # ho|w many h|
|00004990| 69 74 73 20 77 61 6e 74 | 65 64 3f 0a 70 72 69 6e |its want|ed?.prin|
|000049a0| 74 20 24 76 65 72 73 69 | 6f 6e 20 20 20 20 20 20 |t $versi|on |
|000049b0| 69 66 20 28 64 65 66 69 | 6e 65 64 28 24 6f 70 74 |if (defi|ned($opt|
|000049c0| 5f 76 65 72 73 69 6f 6e | 29 29 3b 20 23 20 50 72 |_version|)); # Pr|
|000049d0| 69 6e 74 20 76 65 72 73 | 69 6f 6e 20 6e 75 6d 62 |int vers|ion numb|
|000049e0| 65 72 3f 0a 26 70 64 6f | 6d 61 69 6e 28 24 6f 70 |er?.&pdo|main($op|
|000049f0| 74 5f 64 6f 6d 61 69 6e | 29 20 69 66 20 28 64 65 |t_domain|) if (de|
|00004a00| 66 69 6e 65 64 28 24 6f | 70 74 5f 64 6f 6d 61 69 |fined($o|pt_domai|
|00004a10| 6e 29 29 3b 20 23 20 47 | 65 74 20 61 20 64 6f 6d |n)); # G|et a dom|
|00004a20| 61 69 6e 20 6f 72 64 65 | 72 3f 0a 0a 23 20 54 68 |ain orde|r?..# Th|
|00004a30| 65 20 73 6f 72 74 20 6f | 70 74 69 6f 6e 2e 20 44 |e sort o|ption. D|
|00004a40| 65 66 61 75 6c 74 20 69 | 73 20 62 79 20 74 68 65 |efault i|s by the|
|00004a50| 20 64 6f 6d 61 69 6e 73 | 20 6f 66 20 74 68 65 20 | domains| of the |
|00004a60| 68 6f 73 74 73 2e 0a 24 | 73 6f 72 74 70 61 63 6b |hosts..$|sortpack|
|00004a70| 20 3d 20 27 68 6f 73 74 | 27 3b 0a 69 66 20 28 24 | = 'host|';.if ($|
|00004a80| 6f 70 74 5f 73 6f 72 74 | 29 20 7b 0a 20 20 20 20 |opt_sort|) {. |
|00004a90| 69 66 20 28 24 6f 70 74 | 5f 73 6f 72 74 20 65 71 |if ($opt|_sort eq|
|00004aa0| 20 27 64 61 74 65 27 29 | 20 7b 0a 09 24 73 6f 72 | 'date')| {..$sor|
|00004ab0| 74 70 61 63 6b 20 3d 20 | 27 64 61 74 65 27 3b 0a |tpack = |'date';.|
|00004ac0| 20 20 20 20 7d 0a 20 20 | 20 20 65 6c 73 69 66 20 | }. | elsif |
|00004ad0| 28 24 6f 70 74 5f 73 6f | 72 74 20 65 71 20 27 68 |($opt_so|rt eq 'h|
|00004ae0| 6f 73 74 27 29 20 7b 0a | 09 24 73 6f 72 74 70 61 |ost') {.|.$sortpa|
|00004af0| 63 6b 20 3d 20 27 68 6f | 73 74 27 3b 0a 20 20 20 |ck = 'ho|st';. |
|00004b00| 20 7d 0a 20 20 20 20 65 | 6c 73 65 20 7b 0a 09 70 | }. e|lse {..p|
|00004b10| 72 69 6e 74 20 22 4e 6f | 74 20 76 61 6c 69 64 20 |rint "No|t valid |
|00004b20| 73 6f 72 74 20 66 69 65 | 6c 64 3a 20 24 6f 70 74 |sort fie|ld: $opt|
|00004b30| 5f 73 6f 72 74 2e 20 41 | 73 73 75 6d 65 20 68 6f |_sort. A|ssume ho|
|00004b40| 73 74 2e 5c 6e 22 3b 0a | 09 24 73 6f 72 74 70 61 |st.\n";.|.$sortpa|
|00004b50| 63 6b 20 3d 20 27 68 6f | 73 74 27 3b 0a 20 20 20 |ck = 'ho|st';. |
|00004b60| 20 7d 0a 7d 0a 24 72 65 | 76 65 72 73 65 73 6f 72 | }.}.$re|versesor|
|00004b70| 74 20 3d 20 64 65 66 69 | 6e 65 64 28 24 6f 70 74 |t = defi|ned($opt|
|00004b80| 5f 72 65 76 65 72 73 65 | 29 3b 0a 0a 23 20 52 65 |_reverse|);..# Re|
|00004b90| 61 64 20 61 20 66 6f 72 | 6d 61 74 20 73 74 72 69 |ad a for|mat stri|
|00004ba0| 6e 67 20 66 72 6f 6d 20 | 61 20 66 69 6c 65 2e 0a |ng from |a file..|
|00004bb0| 69 66 20 28 64 65 66 69 | 6e 65 64 28 24 6f 70 74 |if (defi|ned($opt|
|00004bc0| 5f 66 66 69 6c 65 29 29 | 20 7b 0a 20 20 20 20 6f |_ffile))| {. o|
|00004bd0| 70 65 6e 28 46 46 49 4c | 45 2c 20 22 24 6f 70 74 |pen(FFIL|E, "$opt|
|00004be0| 5f 66 66 69 6c 65 22 29 | 20 7c 7c 20 64 69 65 20 |_ffile")| || die |
|00004bf0| 22 43 61 6e 27 74 20 6f | 70 65 6e 20 66 6f 72 6d |"Can't o|pen form|
|00004c00| 61 74 20 66 69 6c 65 20 | 24 6f 70 74 5f 66 66 69 |at file |$opt_ffi|
|00004c10| 6c 65 5c 6e 22 3b 0a 20 | 20 20 20 23 20 73 6c 75 |le\n";. | # slu|
|00004c20| 72 70 20 69 6e 20 74 68 | 65 20 77 68 6f 6c 65 20 |rp in th|e whole |
|00004c30| 66 69 6c 65 0a 20 20 20 | 20 75 6e 64 65 66 20 24 |file. | undef $|
|00004c40| 2f 3b 20 24 66 6f 72 6d | 61 74 20 3d 20 3c 46 46 |/; $form|at = <FF|
|00004c50| 49 4c 45 3e 3b 20 24 2f | 20 3d 20 22 5c 6e 22 3b |ILE>; $/| = "\n";|
|00004c60| 0a 20 20 20 20 63 6c 6f | 73 65 20 46 46 49 4c 45 |. clo|se FFILE|
|00004c70| 3b 0a 7d 0a 0a 23 20 52 | 65 61 64 20 61 20 66 6f |;.}..# R|ead a fo|
|00004c80| 72 6d 61 74 20 73 74 72 | 69 6e 67 20 6f 6e 20 74 |rmat str|ing on t|
|00004c90| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 6c 69 6e 65 2e |he comma|nd line.|
|00004ca0| 0a 24 66 6f 72 6d 61 74 | 20 3d 20 24 6f 70 74 5f |.$format| = $opt_|
|00004cb0| 66 6f 72 6d 61 74 20 69 | 66 20 28 64 65 66 69 6e |format i|f (defin|
|00004cc0| 65 64 28 24 6f 70 74 5f | 66 6f 72 6d 61 74 29 29 |ed($opt_|format))|
|00004cd0| 3b 0a 0a 23 20 53 65 74 | 20 74 68 65 20 73 65 61 |;..# Set| the sea|
|00004ce0| 72 63 68 20 6f 70 74 69 | 6f 6e 2e 0a 24 63 61 73 |rch opti|on..$cas|
|00004cf0| 65 20 3d 20 24 65 63 61 | 73 65 20 3d 20 27 3d 27 |e = $eca|se = '='|
|00004d00| 20 69 66 20 28 64 65 66 | 69 6e 65 64 28 24 6f 70 | if (def|ined($op|
|00004d10| 74 5f 65 78 61 63 74 29 | 29 3b 20 20 23 20 45 78 |t_exact)|); # Ex|
|00004d20| 61 63 74 20 6d 61 74 63 | 68 0a 24 63 61 73 65 20 |act matc|h.$case |
|00004d30| 3d 20 27 43 27 20 69 66 | 20 28 64 65 66 69 6e 65 |= 'C' if| (define|
|00004d40| 64 28 24 6f 70 74 5f 63 | 61 73 65 29 29 3b 20 20 |d($opt_c|ase)); |
|00004d50| 20 23 20 53 65 74 20 73 | 65 61 72 63 68 20 6f 70 | # Set s|earch op|
|00004d60| 74 69 6f 6e 20 74 6f 20 | 63 61 73 65 20 73 65 6e |tion to |case sen|
|00004d70| 73 69 74 69 76 65 2e 0a | 24 63 61 73 65 20 3d 20 |sitive..|$case = |
|00004d80| 27 53 27 20 69 66 20 28 | 64 65 66 69 6e 65 64 28 |'S' if (|defined(|
|00004d90| 24 6f 70 74 5f 6e 6f 63 | 61 73 65 29 29 3b 20 23 |$opt_noc|ase)); #|
|00004da0| 20 53 65 74 20 73 65 61 | 72 63 68 20 6f 70 74 69 | Set sea|rch opti|
|00004db0| 6f 6e 20 74 6f 20 63 61 | 73 65 20 69 6e 73 65 6e |on to ca|se insen|
|00004dc0| 73 69 74 69 76 65 2e 0a | 24 63 61 73 65 20 3d 20 |sitive..|$case = |
|00004dd0| 27 52 27 20 69 66 20 28 | 64 65 66 69 6e 65 64 28 |'R' if (|defined(|
|00004de0| 24 6f 70 74 5f 72 65 67 | 29 29 3b 20 20 20 20 23 |$opt_reg|)); #|
|00004df0| 20 73 65 61 72 63 68 20 | 75 73 69 6e 67 20 61 20 | search |using a |
|00004e00| 72 65 67 75 6c 61 72 20 | 65 78 70 72 65 73 73 69 |regular |expressi|
|00004e10| 6f 6e 2e 0a 24 63 61 73 | 65 20 3d 7e 20 74 72 2f |on..$cas|e =~ tr/|
|00004e20| 41 2d 5a 2f 61 2d 7a 2f | 20 69 66 20 28 24 65 63 |A-Z/a-z/| if ($ec|
|00004e30| 61 73 65 20 65 71 20 27 | 3d 27 29 3b 0a 0a 23 20 |ase eq '|=');..# |
|00004e40| 73 65 74 20 61 20 6e 65 | 77 20 61 72 63 68 69 65 |set a ne|w archie|
|00004e50| 20 73 65 72 76 65 72 2e | 0a 69 66 20 28 64 65 66 | server.|.if (def|
|00004e60| 69 6e 65 64 28 24 6f 70 | 74 5f 73 65 72 76 65 72 |ined($op|t_server|
|00004e70| 29 29 20 7b 0a 20 20 20 | 20 24 73 65 72 76 65 72 |)) {. | $server|
|00004e80| 69 70 20 3d 20 24 73 65 | 72 76 65 72 6e 61 6d 65 |ip = $se|rvername|
|00004e90| 20 3d 20 24 6f 70 74 5f | 73 65 72 76 65 72 3b 0a | = $opt_|server;.|
|00004ea0| 20 20 20 20 24 73 65 72 | 76 65 72 6e 61 6d 65 20 | $ser|vername |
|00004eb0| 3d 7e 20 74 72 2f 41 2d | 5a 2f 61 2d 7a 2f 3b 0a |=~ tr/A-|Z/a-z/;.|
|00004ec0| 7d 0a 0a 23 20 53 75 70 | 70 6f 72 74 20 66 6f 72 |}..# Sup|port for|
|00004ed0| 20 61 20 61 66 74 70 20 | 70 69 70 65 2e 20 5b 55 | a aftp |pipe. [U|
|00004ee0| 73 65 66 75 6c 20 6f 6e | 6c 79 20 66 6f 72 20 74 |seful on|ly for t|
|00004ef0| 68 65 20 70 72 6f 67 72 | 61 6d 20 6e 66 74 70 2e |he progr|am nftp.|
|00004f00| 5d 0a 24 66 6f 72 6d 61 | 74 20 3d 20 22 25 74 79 |].$forma|t = "%ty|
|00004f10| 70 65 3a 25 68 6f 73 74 | 3a 25 64 69 72 5c 6e 22 |pe:%host|:%dir\n"|
|00004f20| 20 69 66 20 28 24 6f 70 | 74 5f 61 66 74 70 29 3b | if ($op|t_aftp);|
|00004f30| 0a 0a 23 20 70 61 72 73 | 65 20 74 68 65 20 66 6f |..# pars|e the fo|
|00004f40| 72 6d 61 74 20 73 74 72 | 69 6e 67 2c 0a 24 66 6f |rmat str|ing,.$fo|
|00004f50| 72 6d 61 74 20 3d 20 26 | 70 61 72 73 65 66 6f 72 |rmat = &|parsefor|
|00004f60| 6d 61 74 28 24 66 6f 72 | 6d 61 74 29 3b 0a 0a 23 |mat($for|mat);..#|
|00004f70| 20 54 68 69 73 20 69 73 | 20 66 6f 72 20 63 68 65 | This is| for che|
|00004f80| 63 6b 69 6e 67 20 74 68 | 65 20 66 6f 72 6d 61 74 |cking th|e format|
|00004f90| 20 65 74 63 2e 20 4e 6f | 74 20 66 6f 72 20 65 78 | etc. No|t for ex|
|00004fa0| 74 65 72 6e 61 6c 20 75 | 73 65 20 3a 2d 29 0a 69 |ternal u|se :-).i|
|00004fb0| 66 20 28 24 6f 70 74 5f | 73 79 6e 74 61 78 29 20 |f ($opt_|syntax) |
|00004fc0| 7b 0a 20 20 20 20 70 72 | 69 6e 74 20 22 45 78 65 |{. pr|int "Exe|
|00004fd0| 63 75 74 69 6f 6e 20 75 | 6e 74 69 6c 20 68 65 72 |cution u|ntil her|
|00004fe0| 65 2e 5c 6e 22 3b 0a 20 | 20 20 20 65 78 69 74 28 |e.\n";. | exit(|
|00004ff0| 30 29 3b 0a 7d 0a 0a 23 | 20 47 65 74 20 74 68 65 |0);.}..#| Get the|
|00005000| 20 49 50 20 61 64 64 72 | 65 73 73 20 6f 66 20 74 | IP addr|ess of t|
|00005010| 68 65 20 61 72 63 68 69 | 65 20 73 65 72 76 65 72 |he archi|e server|
|00005020| 2e 0a 69 66 20 28 24 73 | 65 72 76 65 72 69 70 20 |..if ($s|erverip |
|00005030| 3d 7e 20 2f 5e 28 5c 64 | 2b 29 5c 2e 28 5c 64 2b |=~ /^(\d|+)\.(\d+|
|00005040| 29 5c 2e 28 5c 64 2b 29 | 5c 2e 28 5c 64 2b 29 24 |)\.(\d+)|\.(\d+)$|
|00005050| 2f 29 20 7b 0a 20 20 24 | 74 68 61 74 61 64 64 72 |/) {. $|thataddr|
|00005060| 20 3d 20 70 61 63 6b 28 | 22 43 43 43 43 22 2c 20 | = pack(|"CCCC", |
|00005070| 24 31 2c 20 24 32 2c 20 | 24 33 2c 20 24 34 29 3b |$1, $2, |$3, $4);|
|00005080| 0a 20 20 24 73 65 72 76 | 65 72 69 70 20 3d 20 24 |. $serv|erip = $|
|00005090| 73 65 72 76 65 72 6e 61 | 6d 65 3b 0a 7d 0a 65 6c |serverna|me;.}.el|
|000050a0| 73 69 66 20 28 21 28 28 | 24 6e 61 6d 65 2c 20 24 |sif (!((|$name, $|
|000050b0| 61 6c 69 61 73 65 73 2c | 20 24 74 79 70 65 2c 20 |aliases,| $type, |
|000050c0| 24 6c 65 6e 2c 20 24 74 | 68 61 74 61 64 64 72 29 |$len, $t|hataddr)|
|000050d0| 20 3d 20 0a 09 20 67 65 | 74 68 6f 73 74 62 79 6e | = .. ge|thostbyn|
|000050e0| 61 6d 65 28 24 73 65 72 | 76 65 72 6e 61 6d 65 29 |ame($ser|vername)|
|000050f0| 29 29 20 7b 0a 20 20 20 | 20 24 74 68 61 74 61 64 |)) {. | $thatad|
|00005100| 64 72 20 3d 20 26 72 65 | 73 6f 6c 76 65 72 28 24 |dr = &re|solver($|
|00005110| 73 65 72 76 65 72 6e 61 | 6d 65 2c 20 24 6e 73 73 |serverna|me, $nss|
|00005120| 65 72 76 65 72 29 20 7c | 7c 20 0a 09 64 69 65 20 |erver) ||| ..die |
|00005130| 22 43 61 6e 27 74 20 66 | 69 6e 64 20 74 68 65 20 |"Can't f|ind the |
|00005140| 49 50 20 61 64 64 72 65 | 73 73 20 6f 66 20 74 68 |IP addre|ss of th|
|00005150| 65 20 61 72 63 68 69 65 | 20 73 65 72 76 65 72 20 |e archie| server |
|00005160| 24 73 65 72 76 65 72 6e | 61 6d 65 5c 6e 22 3b 0a |$servern|ame\n";.|
|00005170| 20 20 20 20 24 73 65 72 | 76 65 72 69 70 20 3d 20 | $ser|verip = |
|00005180| 6a 6f 69 6e 28 27 2e 27 | 2c 20 75 6e 70 61 63 6b |join('.'|, unpack|
|00005190| 28 22 43 43 43 43 22 2c | 20 24 74 68 61 74 61 64 |("CCCC",| $thatad|
|000051a0| 64 72 29 29 3b 0a 7d 0a | 65 6c 73 65 20 7b 0a 20 |dr));.}.|else {. |
|000051b0| 20 20 20 24 73 65 72 76 | 65 72 69 70 20 3d 20 6a | $serv|erip = j|
|000051c0| 6f 69 6e 28 27 2e 27 2c | 20 75 6e 70 61 63 6b 28 |oin('.',| unpack(|
|000051d0| 22 43 43 43 43 22 2c 20 | 24 74 68 61 74 61 64 64 |"CCCC", |$thatadd|
|000051e0| 72 29 29 3b 0a 7d 0a 0a | 24 74 68 65 6d 20 3d 20 |r));.}..|$them = |
|000051f0| 70 61 63 6b 28 24 73 6f | 63 6b 61 64 64 72 2c 20 |pack($so|ckaddr, |
|00005200| 26 41 46 5f 49 4e 45 54 | 2c 20 24 70 6f 72 74 2c |&AF_INET|, $port,|
|00005210| 20 24 74 68 61 74 61 64 | 64 72 29 3b 0a 0a 23 20 | $thatad|dr);..# |
|00005220| 6e 6f 77 20 63 6f 6e 73 | 74 72 75 63 74 20 6f 75 |now cons|truct ou|
|00005230| 72 20 6f 77 6e 20 61 64 | 64 72 65 73 73 0a 23 20 |r own ad|dress.# |
|00005240| 64 6e 62 40 6d 65 73 68 | 75 67 67 65 2e 6d 65 64 |dnb@mesh|ugge.med|
|00005250| 69 61 2e 6d 69 74 2e 65 | 64 75 20 67 61 76 65 20 |ia.mit.e|du gave |
|00005260| 74 68 65 20 70 61 74 63 | 68 20 74 6f 20 73 61 74 |the patc|h to sat|
|00005270| 69 73 66 79 20 74 61 69 | 6e 74 70 65 72 6c 2e 20 |isfy tai|ntperl. |
|00005280| 0a 24 50 41 54 48 20 3d | 20 24 45 4e 56 7b 27 50 |.$PATH =| $ENV{'P|
|00005290| 41 54 48 27 7d 3b 0a 24 | 45 4e 56 7b 27 50 41 54 |ATH'};.$|ENV{'PAT|
|000052a0| 48 27 7d 20 3d 20 27 2f | 62 69 6e 3a 2f 75 73 72 |H'} = '/|bin:/usr|
|000052b0| 2f 62 69 6e 27 3b 0a 63 | 68 6f 70 28 24 74 68 69 |/bin';.c|hop($thi|
|000052c0| 73 68 6f 73 74 20 3d 20 | 60 68 6f 73 74 6e 61 6d |shost = |`hostnam|
|000052d0| 65 60 29 3b 0a 24 45 4e | 56 7b 27 50 41 54 48 27 |e`);.$EN|V{'PATH'|
|000052e0| 7d 20 3d 20 24 50 41 54 | 48 3b 0a 28 24 6e 61 6d |} = $PAT|H;.($nam|
|000052f0| 65 2c 20 24 61 6c 69 61 | 73 65 73 2c 20 24 74 79 |e, $alia|ses, $ty|
|00005300| 70 65 2c 20 24 6c 65 6e | 2c 20 24 74 68 69 73 61 |pe, $len|, $thisa|
|00005310| 64 64 72 29 20 3d 20 67 | 65 74 68 6f 73 74 62 79 |ddr) = g|ethostby|
|00005320| 6e 61 6d 65 28 24 74 68 | 69 73 68 6f 73 74 29 3b |name($th|ishost);|
|00005330| 0a 24 75 73 20 3d 20 70 | 61 63 6b 28 24 73 6f 63 |.$us = p|ack($soc|
|00005340| 6b 61 64 64 72 2c 20 26 | 41 46 5f 49 4e 45 54 2c |kaddr, &|AF_INET,|
|00005350| 20 30 2c 20 24 74 68 69 | 73 61 64 64 72 29 3b 0a | 0, $thi|saddr);.|
|00005360| 0a 23 20 67 65 74 20 61 | 6e 64 20 62 69 6e 64 20 |.# get a|nd bind |
|00005370| 61 20 73 6f 63 6b 65 74 | 2e 0a 73 6f 63 6b 65 74 |a socket|..socket|
|00005380| 28 44 41 54 41 2c 20 26 | 41 46 5f 49 4e 45 54 2c |(DATA, &|AF_INET,|
|00005390| 20 26 53 4f 43 4b 5f 44 | 47 52 41 4d 2c 20 30 29 | &SOCK_D|GRAM, 0)|
|000053a0| 20 7c 7c 20 64 69 65 20 | 22 73 6f 63 6b 65 74 3a | || die |"socket:|
|000053b0| 24 21 5c 6e 22 3b 0a 62 | 69 6e 64 28 44 41 54 41 |$!\n";.b|ind(DATA|
|000053c0| 2c 20 24 75 73 29 20 7c | 7c 20 64 69 65 20 22 62 |, $us) ||| die "b|
|000053d0| 69 6e 64 3a 20 24 21 5c | 6e 22 3b 0a 0a 23 20 47 |ind: $!\|n";..# G|
|000053e0| 65 74 20 74 68 65 20 6c | 69 73 74 20 6f 66 20 6d |et the l|ist of m|
|000053f0| 61 74 63 68 65 73 2e 0a | 40 6c 69 73 74 73 20 3d |atches..|@lists =|
|00005400| 20 26 6c 69 73 74 28 24 | 74 68 65 6d 2c 20 24 75 | &list($|them, $u|
|00005410| 73 65 72 2c 20 24 6d 61 | 74 63 68 2c 20 40 73 74 |ser, $ma|tch, @st|
|00005420| 72 69 6e 67 29 3b 0a 0a | 23 20 50 72 69 6e 74 20 |ring);..|# Print |
|00005430| 74 68 65 6d 2e 0a 26 72 | 65 73 75 6c 74 28 40 6c |them..&r|esult(@l|
|00005440| 69 73 74 73 29 20 75 6e | 6c 65 73 73 20 28 24 61 |ists) un|less ($a|
|00005450| 6c 6f 6e 67 29 3b 0a 0a | 63 6c 6f 73 65 28 44 41 |long);..|close(DA|
|00005460| 54 41 29 3b 0a 0a 73 75 | 62 20 67 65 74 70 61 63 |TA);..su|b getpac|
|00005470| 6b 65 74 20 7b 0a 20 20 | 20 20 6c 6f 63 61 6c 28 |ket {. | local(|
|00005480| 24 72 65 73 74 69 6d 65 | 29 20 3d 20 40 5f 3b 0a |$restime|) = @_;.|
|00005490| 20 20 20 20 6c 6f 63 61 | 6c 28 24 73 65 71 2c 20 | loca|l($seq, |
|000054a0| 24 72 69 6e 2c 20 24 74 | 69 6d 65 6c 65 66 74 2c |$rin, $t|imeleft,|
|000054b0| 20 24 72 6f 75 74 2c 20 | 24 61 6e 73 2c 20 24 69 | $rout, |$ans, $i|
|000054c0| 64 2c 20 24 68 62 79 74 | 65 2c 20 24 72 64 70 2c |d, $hbyt|e, $rdp,|
|000054d0| 20 24 68 64 72 5f 6c 65 | 6e 29 3b 0a 20 20 20 20 | $hdr_le|n);. |
|000054e0| 6c 6f 63 61 6c 28 24 68 | 65 61 64 65 72 2c 20 24 |local($h|eader, $|
|000054f0| 62 61 63 6b 6f 66 66 2c | 20 24 6b 6b 2c 20 24 64 |backoff,| $kk, $d|
|00005500| 75 6d 2c 20 24 66 6c 61 | 67 73 2c 20 24 77 61 6e |um, $fla|gs, $wan|
|00005510| 74 61 63 6b 2c 20 24 70 | 6b 74 73 6e 75 6d 2c 20 |tack, $p|ktsnum, |
|00005520| 24 6e 66 6f 75 6e 64 29 | 3b 0a 20 20 20 20 24 73 |$nfound)|;. $s|
|00005530| 65 71 20 3d 20 30 3b 0a | 0a 20 20 20 20 23 20 77 |eq = 0;.|. # w|
|00005540| 61 69 74 20 66 6f 72 20 | 61 20 70 61 63 6b 65 74 |ait for |a packet|
|00005550| 20 74 6f 20 63 6f 6d 65 | 20 62 61 63 6b 2e 0a 20 | to come| back.. |
|00005560| 20 20 20 24 72 69 6e 20 | 3d 20 27 27 3b 0a 20 20 | $rin |= '';. |
|00005570| 20 20 76 65 63 28 24 72 | 69 6e 2c 20 66 69 6c 65 | vec($r|in, file|
|00005580| 6e 6f 28 44 41 54 41 29 | 2c 20 31 29 20 3d 20 31 |no(DATA)|, 1) = 1|
|00005590| 3b 0a 20 20 20 20 28 24 | 6e 66 6f 75 6e 64 2c 20 |;. ($|nfound, |
|000055a0| 24 74 69 6d 65 6c 65 66 | 74 29 20 3d 20 73 65 6c |$timelef|t) = sel|
|000055b0| 65 63 74 28 24 72 6f 75 | 74 20 3d 20 24 72 69 6e |ect($rou|t = $rin|
|000055c0| 2c 20 27 27 2c 20 27 27 | 2c 20 24 72 65 73 74 69 |, '', ''|, $resti|
|000055d0| 6d 65 29 3b 0a 20 20 20 | 20 69 66 20 28 24 74 69 |me);. | if ($ti|
|000055e0| 6d 65 6c 65 66 74 20 3d | 3d 20 30 20 7c 7c 20 6f |meleft =|= 0 || o|
|000055f0| 72 64 28 24 72 6f 75 74 | 29 20 3d 3d 20 30 29 7b |rd($rout|) == 0){|
|00005600| 0a 09 72 65 74 75 72 6e | 28 30 29 3b 0a 20 20 20 |..return|(0);. |
|00005610| 20 7d 0a 0a 20 20 20 20 | 23 20 52 65 61 64 20 61 | }.. |# Read a|
|00005620| 20 70 61 63 6b 65 74 20 | 66 72 6f 6d 20 74 68 65 | packet |from the|
|00005630| 20 73 65 72 76 65 72 2e | 0a 20 20 20 20 24 61 6e | server.|. $an|
|00005640| 73 20 3d 20 27 27 3b 0a | 20 20 20 20 72 65 63 76 |s = '';.| recv|
|00005650| 28 44 41 54 41 2c 20 24 | 61 6e 73 2c 20 31 30 30 |(DATA, $|ans, 100|
|00005660| 30 30 2c 20 30 29 20 7c | 7c 20 64 69 65 20 22 72 |00, 0) ||| die "r|
|00005670| 65 63 76 3a 20 43 61 6e | 27 74 20 72 65 63 76 2e |ecv: Can|'t recv.|
|00005680| 20 44 69 65 2e 5c 6e 22 | 3b 0a 0a 20 20 20 20 24 | Die.\n"|;.. $|
|00005690| 68 62 79 74 65 20 3d 20 | 6f 72 64 28 73 75 62 73 |hbyte = |ord(subs|
|000056a0| 74 72 28 24 61 6e 73 2c | 20 30 2c 20 31 29 29 3b |tr($ans,| 0, 1));|
|000056b0| 0a 20 20 20 20 24 68 65 | 61 64 65 72 20 3d 20 27 |. $he|ader = '|
|000056c0| 27 3b 0a 20 20 20 20 69 | 66 20 28 24 68 62 79 74 |';. i|f ($hbyt|
|000056d0| 65 20 3c 20 32 30 29 20 | 7b 0a 09 24 72 64 70 20 |e < 20) |{..$rdp |
|000056e0| 3d 20 28 24 68 62 79 74 | 65 20 26 20 30 78 63 30 |= ($hbyt|e & 0xc0|
|000056f0| 29 20 3e 3e 20 36 3b 0a | 09 24 68 64 72 5f 6c 65 |) >> 6;.|.$hdr_le|
|00005700| 6e 20 3d 20 24 68 62 79 | 74 65 20 26 20 30 78 33 |n = $hby|te & 0x3|
|00005710| 46 3b 0a 09 24 68 65 61 | 64 65 72 20 3d 20 73 75 |F;..$hea|der = su|
|00005720| 62 73 74 72 28 24 61 6e | 73 2c 20 30 2c 20 24 68 |bstr($an|s, 0, $h|
|00005730| 64 72 5f 6c 65 6e 29 3b | 0a 09 73 75 62 73 74 72 |dr_len);|..substr|
|00005740| 28 24 61 6e 73 2c 20 30 | 2c 20 24 68 64 72 5f 6c |($ans, 0|, $hdr_l|
|00005750| 65 6e 29 20 3d 20 27 27 | 3b 0a 09 24 62 61 63 6b |en) = ''|;..$back|
|00005760| 6f 66 66 20 3d 20 24 73 | 65 71 20 3d 20 24 6b 6b |off = $s|eq = $kk|
|00005770| 20 3d 20 24 66 6c 61 67 | 73 20 3d 20 30 3b 0a 09 | = $flag|s = 0;..|
|00005780| 28 24 64 75 6d 2c 20 24 | 69 64 2c 20 24 73 65 71 |($dum, $|id, $seq|
|00005790| 2c 20 24 6b 6b 2c 20 24 | 64 75 6d 2c 20 24 62 61 |, $kk, $|dum, $ba|
|000057a0| 63 6b 6f 66 66 2c 20 24 | 66 6c 61 67 73 29 20 3d |ckoff, $|flags) =|
|000057b0| 0a 09 20 20 20 20 75 6e | 70 61 63 6b 28 22 43 6e |.. un|pack("Cn|
|000057c0| 6e 6e 6e 6e 6e 22 2c 20 | 24 68 65 61 64 65 72 29 |nnnnn", |$header)|
|000057d0| 3b 0a 09 23 20 53 68 6f | 75 6c 64 20 49 20 61 63 |;..# Sho|uld I ac|
|000057e0| 6b 6e 6f 77 6c 65 64 67 | 65 3f 0a 09 24 77 61 6e |knowledg|e?..$wan|
|000057f0| 74 61 63 6b 20 3d 20 28 | 28 24 66 6c 61 67 73 20 |tack = (|($flags |
|00005800| 26 20 30 78 38 30 30 30 | 29 20 21 3d 20 30 29 3b |& 0x8000|) != 0);|
|00005810| 0a 09 24 70 6b 74 73 6e | 75 6d 20 3d 20 28 24 6b |..$pktsn|um = ($k|
|00005820| 6b 29 20 3f 20 24 6b 6b | 20 3a 20 30 3b 0a 09 24 |k) ? $kk| : 0;..$|
|00005830| 74 69 6d 65 6f 75 74 20 | 3d 20 24 62 61 63 6b 6f |timeout |= $backo|
|00005840| 66 66 20 69 66 20 28 24 | 62 61 63 6b 6f 66 66 29 |ff if ($|backoff)|
|00005850| 3b 0a 20 20 20 20 7d 0a | 20 20 20 20 65 6c 73 65 |;. }.| else|
|00005860| 20 7b 0a 09 24 73 65 71 | 20 3d 20 31 3b 0a 09 24 | {..$seq| = 1;..$|
|00005870| 70 6b 74 73 6e 75 6d 20 | 3d 20 31 3b 0a 09 24 77 |pktsnum |= 1;..$w|
|00005880| 61 6e 74 61 63 6b 20 3d | 20 30 3b 0a 09 24 74 69 |antack =| 0;..$ti|
|00005890| 6d 65 6f 75 74 20 3d 20 | 30 3b 0a 20 20 20 20 7d |meout = |0;. }|
|000058a0| 0a 20 20 20 20 72 65 74 | 75 72 6e 20 28 31 2c 20 |. ret|urn (1, |
|000058b0| 24 73 65 71 2c 20 24 77 | 61 6e 74 61 63 6b 2c 20 |$seq, $w|antack, |
|000058c0| 24 70 6b 74 73 6e 75 6d | 2c 20 24 74 69 6d 65 6f |$pktsnum|, $timeo|
|000058d0| 75 74 2c 20 24 61 6e 73 | 29 3b 0a 7d 0a 0a 23 20 |ut, $ans|);.}..# |
|000058e0| 54 68 65 20 73 75 62 72 | 6f 75 74 69 6e 65 20 6c |The subr|outine l|
|000058f0| 69 73 74 20 69 73 20 74 | 68 65 20 60 6d 65 61 74 |ist is t|he `meat|
|00005900| 27 20 6f 66 20 74 68 65 | 20 71 75 65 72 79 2e 0a |' of the| query..|
|00005910| 23 20 49 74 20 73 65 6e | 64 73 20 74 68 65 20 71 |# It sen|ds the q|
|00005920| 75 65 72 79 20 74 6f 20 | 74 68 65 20 61 72 63 68 |uery to |the arch|
|00005930| 69 65 20 73 65 72 76 65 | 72 20 68 6f 73 74 20 61 |ie serve|r host a|
|00005940| 6e 64 20 70 61 72 73 65 | 73 20 74 68 65 20 65 6e |nd parse|s the en|
|00005950| 74 72 69 65 73 0a 23 20 | 72 65 74 75 72 6e 65 64 |tries.# |returned|
|00005960| 20 62 79 20 74 68 65 20 | 73 65 72 76 65 72 2e 0a | by the |server..|
|00005970| 73 75 62 20 6c 69 73 74 | 20 7b 0a 20 20 20 20 6c |sub list| {. l|
|00005980| 6f 63 61 6c 28 24 74 68 | 65 6d 2c 20 24 75 73 65 |ocal($th|em, $use|
|00005990| 72 2c 20 24 6d 61 74 63 | 68 2c 20 40 77 6f 72 64 |r, $matc|h, @word|
|000059a0| 73 29 20 3d 20 40 5f 3b | 0a 20 20 20 20 6c 6f 63 |s) = @_;|. loc|
|000059b0| 61 6c 28 24 61 6e 73 2c | 20 24 74 69 6d 65 6f 75 |al($ans,| $timeou|
|000059c0| 74 2c 20 24 72 65 74 72 | 69 65 73 2c 20 24 6c 69 |t, $retr|ies, $li|
|000059d0| 6e 65 73 2c 20 40 6c 69 | 6e 65 73 29 3b 0a 20 20 |nes, @li|nes);. |
|000059e0| 20 20 6c 6f 63 61 6c 28 | 24 70 6b 74 73 6e 75 6d | local(|$pktsnum|
|000059f0| 2c 20 24 70 6b 74 73 65 | 71 2c 20 24 73 65 71 2c |, $pktse|q, $seq,|
|00005a00| 20 24 74 69 6d 65 6c 65 | 66 74 2c 20 24 61 63 6b | $timele|ft, $ack|
|00005a10| 74 69 6d 65 29 3b 0a 20 | 20 20 20 6c 6f 63 61 6c |time);. | local|
|00005a20| 28 24 64 75 6d 2c 20 24 | 62 61 63 6b 6f 66 66 2c |($dum, $|backoff,|
|00005a30| 20 24 77 6f 72 64 2c 20 | 24 69 6e 64 65 78 2c 20 | $word, |$index, |
|00005a40| 40 72 65 63 65 69 76 65 | 64 2c 20 24 72 65 63 74 |@receive|d, $rect|
|00005a50| 68 72 6f 75 67 68 29 3b | 0a 20 20 20 20 6c 6f 63 |hrough);|. loc|
|00005a60| 61 6c 28 24 73 71 2c 20 | 24 77 61 78 6b 2c 20 24 |al($sq, |$waxk, $|
|00005a70| 70 6b 74 73 2c 20 24 74 | 6f 75 74 29 3b 0a 20 20 |pkts, $t|out);. |
|00005a80| 20 20 0a 20 20 20 20 24 | 74 69 6d 65 6f 75 74 20 | . $|timeout |
|00005a90| 3d 20 34 3b 0a 20 20 20 | 20 24 72 65 74 72 69 65 |= 4;. | $retrie|
|00005aa0| 73 20 3d 20 33 3b 0a 20 | 20 20 20 24 61 63 6b 74 |s = 3;. | $ackt|
|00005ab0| 69 6d 65 20 3d 20 30 2e | 33 3b 0a 20 20 20 20 40 |ime = 0.|3;. @|
|00005ac0| 72 65 63 65 69 76 65 64 | 20 3d 20 28 27 59 45 53 |received| = ('YES|
|00005ad0| 27 29 3b 0a 0a 20 20 20 | 20 23 20 43 6f 6e 73 74 |');.. | # Const|
|00005ae0| 72 75 63 74 20 74 68 65 | 20 71 75 65 72 79 20 70 |ruct the| query p|
|00005af0| 61 63 6b 65 74 2e 0a 20 | 20 20 20 40 6c 69 6e 65 |acket.. | @line|
|00005b00| 73 20 3d 20 28 22 56 45 | 52 53 49 4f 4e 20 31 5c |s = ("VE|RSION 1\|
|00005b10| 6e 22 2c 20 22 41 55 54 | 48 45 4e 54 49 43 41 54 |n", "AUT|HENTICAT|
|00005b20| 4f 52 20 55 4e 41 55 54 | 48 45 4e 54 49 43 41 54 |OR UNAUT|HENTICAT|
|00005b30| 45 44 20 24 75 73 65 72 | 5c 6e 22 29 3b 0a 20 20 |ED $user|\n");. |
|00005b40| 20 20 66 6f 72 65 61 63 | 68 20 24 77 6f 72 64 20 | foreac|h $word |
|00005b50| 28 40 77 6f 72 64 73 29 | 20 7b 0a 09 70 75 73 68 |(@words)| {..push|
|00005b60| 28 40 6c 69 6e 65 73 2c | 20 22 44 49 52 45 43 54 |(@lines,| "DIRECT|
|00005b70| 4f 52 59 20 41 53 43 49 | 49 20 41 52 43 48 49 45 |ORY ASCI|I ARCHIE|
|00005b80| 2f 4d 41 54 43 48 28 24 | 6d 61 74 63 68 2c 30 2c |/MATCH($|match,0,|
|00005b90| 24 63 61 73 65 29 2f 24 | 77 6f 72 64 5c 6e 22 29 |$case)/$|word\n")|
|00005ba0| 3b 0a 09 70 75 73 68 28 | 40 6c 69 6e 65 73 2c 20 |;..push(|@lines, |
|00005bb0| 22 4c 49 53 54 20 41 54 | 54 52 49 42 55 54 45 53 |"LIST AT|TRIBUTES|
|00005bc0| 20 43 4f 4d 50 4f 4e 45 | 4e 54 53 20 5c 6e 22 29 | COMPONE|NTS \n")|
|00005bd0| 3b 0a 20 20 20 20 7d 0a | 20 20 20 20 24 6c 69 6e |;. }.| $lin|
|00005be0| 65 73 20 3d 20 6a 6f 69 | 6e 28 27 27 2c 20 40 6c |es = joi|n('', @l|
|00005bf0| 69 6e 65 73 29 3b 0a 0a | 20 20 20 20 24 72 65 63 |ines);..| $rec|
|00005c00| 74 68 72 6f 75 67 68 20 | 3d 20 30 3b 0a 0a 20 20 |through |= 0;.. |
|00005c10| 52 45 54 52 59 3a 20 0a | 20 20 20 20 7b 0a 09 24 |RETRY: .| {..$|
|00005c20| 68 65 61 64 20 3d 20 70 | 61 63 6b 28 22 43 6e 6e |head = p|ack("Cnn|
|00005c30| 6e 6e 22 2c 20 39 2c 20 | 24 24 2c 20 31 2c 20 31 |nn", 9, |$$, 1, 1|
|00005c40| 2c 20 24 72 65 63 74 68 | 72 6f 75 67 68 29 3b 0a |, $recth|rough);.|
|00005c50| 09 73 65 6e 64 28 44 41 | 54 41 2c 20 24 68 65 61 |.send(DA|TA, $hea|
|00005c60| 64 20 2e 20 24 6c 69 6e | 65 73 2c 20 30 2c 20 24 |d . $lin|es, 0, $|
|00005c70| 74 68 65 6d 29 0a 09 20 | 20 20 20 7c 7c 20 64 69 |them).. | || di|
|00005c80| 65 20 22 73 65 6e 64 3a | 20 46 61 69 6c 65 64 20 |e "send:| Failed |
|00005c90| 74 6f 20 73 65 6e 64 20 | 70 61 63 6b 65 74 3a 20 |to send |packet: |
|00005ca0| 24 21 22 3b 0a 0a 09 24 | 70 6b 74 73 6e 75 6d 20 |$!";...$|pktsnum |
|00005cb0| 3d 20 30 3b 0a 09 77 68 | 69 6c 65 20 28 24 70 6b |= 0;..wh|ile ($pk|
|00005cc0| 74 73 6e 75 6d 20 3d 3d | 20 30 20 7c 7c 20 24 70 |tsnum ==| 0 || $p|
|00005cd0| 6b 74 73 65 71 20 3c 20 | 24 70 6b 74 73 6e 75 6d |ktseq < |$pktsnum|
|00005ce0| 29 20 7b 0a 09 20 20 20 | 20 24 72 65 73 74 69 6d |) {.. | $restim|
|00005cf0| 65 20 3d 20 24 74 69 6d | 65 6f 75 74 3b 0a 09 20 |e = $tim|eout;.. |
|00005d00| 20 20 20 28 24 72 65 73 | 2c 20 24 73 71 2c 20 24 | ($res|, $sq, $|
|00005d10| 77 61 63 6b 2c 20 24 70 | 6b 74 73 2c 20 24 74 6f |wack, $p|kts, $to|
|00005d20| 75 74 2c 20 24 61 6e 73 | 29 20 3d 20 26 67 65 74 |ut, $ans|) = &get|
|00005d30| 70 61 63 6b 65 74 28 24 | 72 65 73 74 69 6d 65 29 |packet($|restime)|
|00005d40| 3b 0a 09 20 20 20 20 69 | 66 20 28 21 24 72 65 73 |;.. i|f (!$res|
|00005d50| 29 7b 0a 09 09 69 66 20 | 28 24 72 65 74 72 69 65 |){...if |($retrie|
|00005d60| 73 2d 2d 20 3e 20 30 29 | 20 7b 0a 09 09 20 20 20 |s-- > 0)| {... |
|00005d70| 20 24 74 69 6d 65 6f 75 | 74 20 2a 3d 20 32 3b 0a | $timeou|t *= 2;.|
|00005d80| 09 09 20 20 20 20 72 65 | 64 6f 20 52 45 54 52 59 |.. re|do RETRY|
|00005d90| 3b 0a 09 09 7d 0a 09 09 | 65 6c 73 65 20 7b 0a 09 |;...}...|else {..|
|00005da0| 09 20 20 20 20 64 69 65 | 20 22 4e 6f 20 72 65 73 |. die| "No res|
|00005db0| 70 6f 6e 73 65 73 20 66 | 72 6f 6d 20 74 68 65 20 |ponses f|rom the |
|00005dc0| 61 72 63 68 69 65 20 73 | 65 72 76 65 72 2e 5c 6e |archie s|erver.\n|
|00005dd0| 22 3b 0a 09 09 7d 0a 09 | 20 20 20 20 7d 0a 09 20 |";...}..| }.. |
|00005de0| 20 20 20 64 6f 20 7b 0a | 09 09 24 73 65 71 20 3d | do {.|..$seq =|
|00005df0| 20 24 73 71 3b 0a 09 09 | 24 74 69 6d 65 6f 75 74 | $sq;...|$timeout|
|00005e00| 20 3d 20 24 74 6f 75 74 | 20 69 66 20 28 24 74 6f | = $tout| if ($to|
|00005e10| 75 74 29 3b 0a 09 09 24 | 70 6b 74 73 6e 75 6d 20 |ut);...$|pktsnum |
|00005e20| 3d 20 24 70 6b 74 73 20 | 69 66 20 28 24 70 6b 74 |= $pkts |if ($pkt|
|00005e30| 73 29 3b 0a 09 09 24 77 | 61 6e 74 61 63 6b 2b 2b |s);...$w|antack++|
|00005e40| 20 69 66 20 28 24 77 61 | 63 6b 29 3b 0a 09 09 69 | if ($wa|ck);...i|
|00005e50| 66 20 28 24 73 65 71 29 | 20 7b 0a 09 09 20 20 20 |f ($seq)| {... |
|00005e60| 20 69 66 20 28 24 72 65 | 63 65 69 76 65 64 5b 24 | if ($re|ceived[$|
|00005e70| 73 65 71 5d 20 6e 65 20 | 27 59 45 53 27 29 20 7b |seq] ne |'YES') {|
|00005e80| 0a 09 09 09 23 20 6e 6f | 74 20 64 75 70 6c 69 63 |....# no|t duplic|
|00005e90| 61 74 65 20 70 61 63 6b | 65 74 2e 0a 09 09 09 24 |ate pack|et.....$|
|00005ea0| 72 65 74 72 69 65 73 20 | 3d 20 33 3b 0a 09 09 09 |retries |= 3;....|
|00005eb0| 66 6f 72 65 61 63 68 20 | 24 69 20 28 28 24 23 72 |foreach |$i (($#r|
|00005ec0| 65 63 65 69 76 65 64 20 | 2b 20 31 29 20 2e 2e 20 |eceived |+ 1) .. |
|00005ed0| 28 24 73 65 71 20 2d 20 | 31 29 29 20 7b 0a 09 09 |($seq - |1)) {...|
|00005ee0| 09 20 20 20 20 24 72 65 | 63 65 69 76 65 64 5b 24 |. $re|ceived[$|
|00005ef0| 69 5d 20 3d 20 22 4e 4f | 20 24 69 22 3b 0a 09 09 |i] = "NO| $i";...|
|00005f00| 09 7d 0a 09 09 09 24 72 | 65 63 65 69 76 65 64 5b |.}....$r|eceived[|
|00005f10| 24 73 65 71 5d 20 3d 20 | 27 59 45 53 27 3b 0a 09 |$seq] = |'YES';..|
|00005f20| 09 09 24 61 6e 73 20 3d | 7e 20 73 2f 5c 30 30 30 |..$ans =|~ s/\000|
|00005f30| 2f 2f 67 3b 0a 09 09 09 | 24 61 6e 73 77 65 72 5b |//g;....|$answer[|
|00005f40| 24 73 65 71 5d 20 3d 20 | 24 61 6e 73 20 75 6e 6c |$seq] = |$ans unl|
|00005f50| 65 73 73 20 28 24 72 65 | 63 74 68 72 6f 75 67 68 |ess ($re|cthrough|
|00005f60| 20 3e 3d 20 24 73 65 71 | 29 3b 0a 09 09 09 40 6e | >= $seq|);....@n|
|00005f70| 6f 74 79 65 74 20 3d 20 | 67 72 65 70 28 2f 5e 4e |otyet = |grep(/^N|
|00005f80| 4f 2f 2c 20 40 72 65 63 | 65 69 76 65 64 29 3b 0a |O/, @rec|eived);.|
|00005f90| 09 09 09 69 66 20 28 24 | 23 6e 6f 74 79 65 74 20 |...if ($|#notyet |
|00005fa0| 3c 20 30 29 20 7b 0a 09 | 09 09 20 20 20 20 24 72 |< 0) {..|.. $r|
|00005fb0| 65 63 74 68 72 6f 75 67 | 68 20 3d 20 24 23 72 65 |ecthroug|h = $#re|
|00005fc0| 63 65 69 76 65 64 3b 0a | 09 09 09 20 20 20 20 24 |ceived;.|... $|
|00005fd0| 70 6b 74 73 65 71 20 3d | 20 24 23 72 65 63 65 69 |pktseq =| $#recei|
|00005fe0| 76 65 64 3b 0a 09 09 09 | 7d 0a 09 09 09 65 6c 73 |ved;....|}....els|
|00005ff0| 65 20 7b 0a 09 09 09 20 | 20 20 20 24 6e 6f 74 79 |e {.... | $noty|
|00006000| 65 74 5b 30 5d 20 3d 7e | 20 2f 4e 4f 20 28 5c 64 |et[0] =~| /NO (\d|
|00006010| 2b 29 24 2f 3b 0a 09 09 | 09 20 20 20 20 24 72 65 |+)$/;...|. $re|
|00006020| 63 74 68 72 6f 75 67 68 | 20 3d 20 24 31 20 2d 20 |cthrough| = $1 - |
|00006030| 31 3b 0a 09 09 09 20 20 | 20 20 24 70 6b 74 73 65 |1;.... | $pktse|
|00006040| 71 20 3d 20 24 31 20 2d | 20 31 3b 0a 09 09 09 7d |q = $1 -| 1;....}|
|00006050| 0a 09 09 09 69 66 20 28 | 24 61 6c 6f 6e 67 29 20 |....if (|$along) |
|00006060| 7b 0a 09 09 09 20 20 20 | 20 26 61 6c 6f 6e 67 74 |{.... | &alongt|
|00006070| 68 65 77 61 79 28 24 72 | 65 63 74 68 72 6f 75 67 |heway($r|ecthroug|
|00006080| 68 2c 20 30 29 3b 0a 09 | 09 09 7d 0a 09 09 20 20 |h, 0);..|..}... |
|00006090| 20 20 7d 0a 09 09 20 20 | 20 20 69 66 20 28 24 70 | }... | if ($p|
|000060a0| 6b 74 73 6e 75 6d 20 3d | 3d 20 30 20 7c 7c 20 24 |ktsnum =|= 0 || $|
|000060b0| 70 6b 74 73 65 71 20 3c | 20 24 70 6b 74 73 6e 75 |pktseq <| $pktsnu|
|000060c0| 6d 29 20 7b 0a 09 09 09 | 28 24 72 65 73 2c 20 24 |m) {....|($res, $|
|000060d0| 73 71 2c 20 24 77 61 63 | 6b 2c 20 24 70 6b 74 73 |sq, $wac|k, $pkts|
|000060e0| 2c 20 24 74 6f 75 74 2c | 20 24 61 6e 73 29 20 3d |, $tout,| $ans) =|
|000060f0| 20 0a 09 09 09 20 20 20 | 20 26 67 65 74 70 61 63 | .... | &getpac|
|00006100| 6b 65 74 28 24 61 63 6b | 74 69 6d 65 29 3b 0a 09 |ket($ack|time);..|
|00006110| 09 20 20 20 20 7d 0a 09 | 09 20 20 20 20 65 6c 73 |. }..|. els|
|00006120| 65 20 7b 0a 09 20 20 20 | 20 20 20 20 20 20 20 20 |e {.. | |
|00006130| 20 20 20 20 20 24 68 65 | 61 64 20 3d 20 70 61 63 | $he|ad = pac|
|00006140| 6b 28 22 43 6e 6e 6e 6e | 22 2c 20 39 2c 20 24 24 |k("Cnnnn|", 9, $$|
|00006150| 2c 20 31 2c 20 31 2c 20 | 24 72 65 63 74 68 72 6f |, 1, 1, |$recthro|
|00006160| 75 67 68 29 3b 0a 09 09 | 09 6c 61 73 74 3b 0a 09 |ugh);...|.last;..|
|00006170| 09 20 20 20 20 7d 0a 09 | 09 7d 0a 09 20 20 20 20 |. }..|.}.. |
|00006180| 7d 20 75 6e 74 69 6c 20 | 28 21 24 72 65 73 20 7c |} until |(!$res ||
|00006190| 7c 20 24 73 65 71 20 3d | 3d 20 30 29 3b 0a 09 20 || $seq =|= 0);.. |
|000061a0| 20 20 20 24 68 65 61 64 | 20 3d 20 70 61 63 6b 28 | $head| = pack(|
|000061b0| 22 43 6e 6e 6e 6e 22 2c | 20 39 2c 20 24 24 2c 20 |"Cnnnn",| 9, $$, |
|000061c0| 31 2c 20 31 2c 20 24 72 | 65 63 74 68 72 6f 75 67 |1, 1, $r|ecthroug|
|000061d0| 68 29 3b 0a 09 20 20 20 | 20 69 66 20 28 24 77 61 |h);.. | if ($wa|
|000061e0| 6e 74 61 63 6b 29 20 7b | 0a 09 09 73 65 6e 64 28 |ntack) {|...send(|
|000061f0| 44 41 54 41 2c 20 24 68 | 65 61 64 20 2e 20 24 6c |DATA, $h|ead . $l|
|00006200| 69 6e 65 73 2c 20 30 2c | 20 24 74 68 65 6d 29 0a |ines, 0,| $them).|
|00006210| 09 09 20 20 20 20 7c 7c | 20 64 69 65 20 22 73 65 |.. ||| die "se|
|00006220| 6e 64 3a 20 46 61 69 6c | 65 64 20 74 6f 20 73 65 |nd: Fail|ed to se|
|00006230| 6e 64 20 61 6e 20 61 63 | 6b 6e 6f 77 6c 65 64 67 |nd an ac|knowledg|
|00006240| 65 6d 65 6e 74 3a 20 24 | 21 22 3b 0a 09 09 24 77 |ement: $|!";...$w|
|00006250| 61 6e 74 61 63 6b 20 3d | 20 30 3b 0a 09 20 20 20 |antack =| 0;.. |
|00006260| 20 7d 0a 09 7d 0a 20 20 | 20 20 7d 0a 20 20 20 20 | }..}. | }. |
|00006270| 69 66 20 28 24 77 61 6e | 74 61 63 6b 29 20 7b 0a |if ($wan|tack) {.|
|00006280| 09 73 65 6e 64 28 44 41 | 54 41 2c 20 24 68 65 61 |.send(DA|TA, $hea|
|00006290| 64 20 2e 20 24 6c 69 6e | 65 73 2c 20 30 2c 20 24 |d . $lin|es, 0, $|
|000062a0| 74 68 65 6d 29 0a 09 20 | 20 20 20 7c 7c 20 64 69 |them).. | || di|
|000062b0| 65 20 22 73 65 6e 64 3a | 20 46 61 69 6c 65 64 20 |e "send:| Failed |
|000062c0| 74 6f 20 73 65 6e 64 20 | 61 6e 20 61 63 6b 6e 6f |to send |an ackno|
|000062d0| 77 6c 65 64 67 65 6d 65 | 6e 74 3a 20 24 21 22 3b |wledgeme|nt: $!";|
|000062e0| 0a 20 20 20 20 7d 0a 20 | 20 20 20 69 66 20 28 24 |. }. | if ($|
|000062f0| 61 6c 6f 6e 67 29 20 7b | 0a 09 26 61 6c 6f 6e 67 |along) {|..&along|
|00006300| 74 68 65 77 61 79 28 24 | 72 65 63 74 68 72 6f 75 |theway($|recthrou|
|00006310| 67 68 2c 20 31 29 3b 0a | 20 20 20 20 7d 0a 20 20 |gh, 1);.| }. |
|00006320| 20 20 40 61 6e 73 77 65 | 72 3b 0a 7d 0a 0a 23 20 | @answe|r;.}..# |
|00006330| 50 72 69 6e 74 20 74 68 | 65 20 65 6e 74 72 69 65 |Print th|e entrie|
|00006340| 73 20 69 6e 20 61 20 70 | 61 63 6b 65 74 2e 0a 73 |s in a p|acket..s|
|00006350| 75 62 20 70 61 72 73 65 | 6c 69 73 74 20 7b 0a 20 |ub parse|list {. |
|00006360| 20 20 20 6c 6f 63 61 6c | 28 40 6c 69 73 74 73 29 | local|(@lists)|
|00006370| 20 3d 20 40 5f 3b 0a 20 | 20 20 20 6c 6f 63 61 6c | = @_;. | local|
|00006380| 28 40 6c 69 6e 65 73 2c | 20 24 64 75 6d 2c 20 24 |(@lines,| $dum, $|
|00006390| 6c 61 73 74 6d 6f 64 2c | 20 24 6d 6f 64 65 73 2c |lastmod,| $modes,|
|000063a0| 20 24 73 69 7a 65 2c 20 | 24 64 69 72 2c 20 24 65 | $size, |$dir, $e|
|000063b0| 6e 74 72 79 29 3b 0a 20 | 20 20 20 6c 6f 63 61 6c |ntry);. | local|
|000063c0| 28 24 6e 61 6d 65 2c 20 | 40 61 74 74 72 2c 20 40 |($name, |@attr, @|
|000063d0| 61 69 6e 66 6f 2c 20 24 | 74 79 70 65 29 3b 0a 0a |ainfo, $|type);..|
|000063e0| 20 20 20 20 24 65 6e 74 | 72 79 20 3d 20 30 3b 0a | $ent|ry = 0;.|
|000063f0| 20 20 20 20 23 20 73 70 | 6c 69 74 20 74 68 65 20 | # sp|lit the |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.