home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume39 / planner / part01 next >
SHell self-extracting ARchive  |  1993-08-23  |  25.2 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was processed as: SHell self-extracting ARchive (archive/shar).

You can browse this item here: part01

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 46 72 |.sources|.misc.Fr|
|00000020| 6f 6d 3a 20 66 72 61 6e | 6b 6c 69 6e 40 75 67 2e |om: fran|klin@ug.|
|00000030| 63 73 2e 64 61 6c 2e 63 | 61 20 28 53 74 65 76 65 |cs.dal.c|a (Steve|
|00000040| 20 46 72 61 6e 6b 6c 69 | 6e 29 0a 53 75 62 6a 65 | Frankli|n).Subje|
|00000050| 63 74 3a 20 76 33 39 69 | 30 34 38 3a 20 70 6c 61 |ct: v39i|048: pla|
|00000060| 6e 6e 65 72 20 2d 20 4e | 61 6d 65 64 20 70 69 70 |nner - N|amed pip|
|00000070| 65 20 66 6f 72 20 72 61 | 6e 64 6f 6d 20 2e 70 6c |e for ra|ndom .pl|
|00000080| 61 6e 20 6f 72 20 2e 73 | 69 67 6e 61 74 75 72 65 |an or .s|ignature|
|00000090| 2c 20 50 61 72 74 30 31 | 2f 30 31 0a 4d 65 73 73 |, Part01|/01.Mess|
|000000a0| 61 67 65 2d 49 44 3a 20 | 3c 31 39 39 33 41 75 67 |age-ID: |<1993Aug|
|000000b0| 32 33 2e 30 34 32 31 32 | 35 2e 32 37 39 32 38 40 |23.04212|5.27928@|
|000000c0| 73 70 61 72 6b 79 2e 73 | 74 65 72 6c 69 6e 67 2e |sparky.s|terling.|
|000000d0| 63 6f 6d 3e 0a 58 2d 4d | 64 34 2d 53 69 67 6e 61 |com>.X-M|d4-Signa|
|000000e0| 74 75 72 65 3a 20 66 38 | 62 65 34 61 30 33 37 39 |ture: f8|be4a0379|
|000000f0| 63 30 36 39 39 31 39 63 | 30 66 32 31 63 63 62 65 |c069919c|0f21ccbe|
|00000100| 34 31 33 37 30 66 0a 53 | 65 6e 64 65 72 3a 20 6b |41370f.S|ender: k|
|00000110| 65 6e 74 40 73 70 61 72 | 6b 79 2e 73 74 65 72 6c |ent@spar|ky.sterl|
|00000120| 69 6e 67 2e 63 6f 6d 20 | 28 4b 65 6e 74 20 4c 61 |ing.com |(Kent La|
|00000130| 6e 64 66 69 65 6c 64 29 | 0a 4f 72 67 61 6e 69 7a |ndfield)|.Organiz|
|00000140| 61 74 69 6f 6e 3a 20 4d | 61 74 68 2c 20 53 74 61 |ation: M|ath, Sta|
|00000150| 74 73 20 26 20 43 53 2c | 20 44 61 6c 68 6f 75 73 |ts & CS,| Dalhous|
|00000160| 69 65 20 55 6e 69 76 65 | 72 73 69 74 79 2c 20 48 |ie Unive|rsity, H|
|00000170| 61 6c 69 66 61 78 2c 20 | 4e 53 2c 20 43 61 6e 61 |alifax, |NS, Cana|
|00000180| 64 61 0a 44 61 74 65 3a | 20 4d 6f 6e 2c 20 32 33 |da.Date:| Mon, 23|
|00000190| 20 41 75 67 20 31 39 39 | 33 20 30 34 3a 32 31 3a | Aug 199|3 04:21:|
|000001a0| 32 35 20 47 4d 54 0a 41 | 70 70 72 6f 76 65 64 3a |25 GMT.A|pproved:|
|000001b0| 20 6b 65 6e 74 40 73 70 | 61 72 6b 79 2e 73 74 65 | kent@sp|arky.ste|
|000001c0| 72 6c 69 6e 67 2e 63 6f | 6d 0a 0a 53 75 62 6d 69 |rling.co|m..Submi|
|000001d0| 74 74 65 64 2d 62 79 3a | 20 66 72 61 6e 6b 6c 69 |tted-by:| frankli|
|000001e0| 6e 40 75 67 2e 63 73 2e | 64 61 6c 2e 63 61 20 28 |n@ug.cs.|dal.ca (|
|000001f0| 53 74 65 76 65 20 46 72 | 61 6e 6b 6c 69 6e 29 0a |Steve Fr|anklin).|
|00000200| 50 6f 73 74 69 6e 67 2d | 6e 75 6d 62 65 72 3a 20 |Posting-|number: |
|00000210| 56 6f 6c 75 6d 65 20 33 | 39 2c 20 49 73 73 75 65 |Volume 3|9, Issue|
|00000220| 20 34 38 0a 41 72 63 68 | 69 76 65 2d 6e 61 6d 65 | 48.Arch|ive-name|
|00000230| 3a 20 70 6c 61 6e 6e 65 | 72 2f 70 61 72 74 30 31 |: planne|r/part01|
|00000240| 0a 45 6e 76 69 72 6f 6e | 6d 65 6e 74 3a 20 46 69 |.Environ|ment: Fi|
|00000250| 6e 67 65 72 0a 0a 54 68 | 65 20 66 6f 6c 6c 6f 77 |nger..Th|e follow|
|00000260| 69 6e 67 20 69 73 20 74 | 68 65 20 62 65 73 74 20 |ing is t|he best |
|00000270| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 20 6f |implemen|tation o|
|00000280| 66 20 61 20 6e 61 6d 65 | 64 20 70 69 70 65 20 49 |f a name|d pipe I|
|00000290| 20 68 61 76 65 20 79 65 | 74 0a 66 6f 75 6e 64 2e | have ye|t.found.|
|000002a0| 20 49 74 20 63 61 6e 20 | 62 65 20 75 73 65 64 20 | It can |be used |
|000002b0| 66 6f 72 20 67 65 6e 65 | 72 61 74 69 6e 67 20 61 |for gene|rating a|
|000002c0| 20 72 61 6e 64 6f 6d 20 | 2e 70 6c 61 6e 2c 20 2e | random |.plan, .|
|000002d0| 73 69 67 6e 61 74 75 72 | 65 2c 20 0a 65 74 63 2e |signatur|e, .etc.|
|000002e0| 20 49 74 20 68 61 73 20 | 62 65 65 6e 20 6d 6f 64 | It has |been mod|
|000002f0| 69 66 69 65 64 20 61 6e | 64 20 69 6d 70 72 6f 76 |ified an|d improv|
|00000300| 65 64 20 75 70 6f 6e 20 | 62 79 20 61 20 6e 75 6d |ed upon |by a num|
|00000310| 62 65 72 20 6f 66 20 61 | 75 74 68 6f 72 73 2c 20 |ber of a|uthors, |
|00000320| 0a 61 6e 64 20 49 20 68 | 61 76 65 20 73 65 65 6e |.and I h|ave seen|
|00000330| 20 66 69 74 20 74 6f 20 | 72 65 70 61 63 6b 61 67 | fit to |repackag|
|00000340| 65 20 69 74 20 77 69 74 | 68 20 61 20 73 69 6d 70 |e it wit|h a simp|
|00000350| 6c 69 73 74 69 63 20 6d | 65 61 6e 73 20 6f 66 0a |listic m|eans of.|
|00000360| 69 6e 73 74 61 6c 6c 61 | 74 69 6f 6e 2c 20 61 6e |installa|tion, an|
|00000370| 64 20 61 20 63 6f 6f 6c | 20 74 72 69 63 6b 20 6f |d a cool| trick o|
|00000380| 72 20 74 77 6f 2e 20 49 | 20 68 6f 70 65 20 74 68 |r two. I| hope th|
|00000390| 61 74 20 70 65 6f 70 6c | 65 20 77 69 6c 6c 20 75 |at peopl|e will u|
|000003a0| 73 65 0a 69 74 20 77 69 | 73 65 6c 79 2c 20 62 65 |se.it wi|sely, be|
|000003b0| 63 61 75 73 65 20 69 74 | 20 63 61 6e 20 6d 65 73 |cause it| can mes|
|000003c0| 73 20 75 70 20 6d 61 63 | 68 69 6e 65 73 20 28 72 |s up mac|hines (r|
|000003d0| 65 61 64 20 64 6f 63 73 | 29 20 69 66 20 79 6f 75 |ead docs|) if you|
|000003e0| 20 75 73 65 20 69 74 0a | 69 6d 70 72 6f 70 65 72 | use it.|improper|
|000003f0| 6c 79 2e 20 0a 0a 20 20 | 20 44 69 72 65 63 74 20 |ly. .. | Direct |
|00000400| 71 75 65 73 74 69 6f 6e | 73 20 74 6f 20 66 72 61 |question|s to fra|
|00000410| 6e 6b 6c 69 6e 40 75 67 | 2e 63 73 2e 64 61 6c 2e |nklin@ug|.cs.dal.|
|00000420| 63 61 0a 20 20 20 48 6f | 70 65 20 79 6f 75 20 66 |ca. Ho|pe you f|
|00000430| 69 6e 64 20 69 74 20 69 | 6e 74 65 72 65 73 74 69 |ind it i|nteresti|
|00000440| 6e 67 2e 2e 2e 0a 0a 53 | 74 65 76 65 0a 2d 2d 2d |ng.....S|teve.---|
|00000450| 0a 23 21 20 2f 62 69 6e | 2f 73 68 0a 23 20 54 68 |.#! /bin|/sh.# Th|
|00000460| 69 73 20 69 73 20 61 20 | 73 68 65 6c 6c 20 61 72 |is is a |shell ar|
|00000470| 63 68 69 76 65 2e 20 20 | 52 65 6d 6f 76 65 20 61 |chive. |Remove a|
|00000480| 6e 79 74 68 69 6e 67 20 | 62 65 66 6f 72 65 20 74 |nything |before t|
|00000490| 68 69 73 20 6c 69 6e 65 | 2c 20 74 68 65 6e 20 66 |his line|, then f|
|000004a0| 65 65 64 20 69 74 0a 23 | 20 69 6e 74 6f 20 61 20 |eed it.#| into a |
|000004b0| 73 68 65 6c 6c 20 76 69 | 61 20 22 73 68 20 66 69 |shell vi|a "sh fi|
|000004c0| 6c 65 22 20 6f 72 20 73 | 69 6d 69 6c 61 72 2e 20 |le" or s|imilar. |
|000004d0| 20 54 6f 20 6f 76 65 72 | 77 72 69 74 65 20 65 78 | To over|write ex|
|000004e0| 69 73 74 69 6e 67 20 66 | 69 6c 65 73 2c 0a 23 20 |isting f|iles,.# |
|000004f0| 74 79 70 65 20 22 73 68 | 20 66 69 6c 65 20 2d 63 |type "sh| file -c|
|00000500| 22 2e 0a 23 20 43 6f 6e | 74 65 6e 74 73 3a 20 20 |"..# Con|tents: |
|00000510| 52 45 41 44 4d 45 20 4d | 61 6b 65 66 69 6c 65 20 |README M|akefile |
|00000520| 6c 66 20 6c 6f 67 66 69 | 6e 67 65 72 20 70 6c 61 |lf logfi|nger pla|
|00000530| 6e 2e 31 20 70 6c 61 6e | 2e 63 20 70 6c 61 6e 2e |n.1 plan|.c plan.|
|00000540| 68 65 61 64 65 72 0a 23 | 20 20 20 70 6c 61 6e 6e |header.#| plann|
|00000550| 65 72 20 72 65 61 64 6d | 65 2e 6f 72 69 67 20 72 |er readm|e.orig r|
|00000560| 65 6e 65 77 70 6c 61 6e | 0a 23 20 57 72 61 70 70 |enewplan|.# Wrapp|
|00000570| 65 64 20 62 79 20 6b 65 | 6e 74 40 73 70 61 72 6b |ed by ke|nt@spark|
|00000580| 79 20 6f 6e 20 53 75 6e | 20 41 75 67 20 32 32 20 |y on Sun| Aug 22 |
|00000590| 32 33 3a 31 34 3a 30 37 | 20 31 39 39 33 0a 50 41 |23:14:07| 1993.PA|
|000005a0| 54 48 3d 2f 62 69 6e 3a | 2f 75 73 72 2f 62 69 6e |TH=/bin:|/usr/bin|
|000005b0| 3a 2f 75 73 72 2f 75 63 | 62 3a 2f 75 73 72 2f 6c |:/usr/uc|b:/usr/l|
|000005c0| 6f 63 61 6c 2f 62 69 6e | 3a 2f 75 73 72 2f 6c 62 |ocal/bin|:/usr/lb|
|000005d0| 69 6e 20 3b 20 65 78 70 | 6f 72 74 20 50 41 54 48 |in ; exp|ort PATH|
|000005e0| 0a 65 63 68 6f 20 49 66 | 20 74 68 69 73 20 61 72 |.echo If| this ar|
|000005f0| 63 68 69 76 65 20 69 73 | 20 63 6f 6d 70 6c 65 74 |chive is| complet|
|00000600| 65 2c 20 79 6f 75 20 77 | 69 6c 6c 20 73 65 65 20 |e, you w|ill see |
|00000610| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6d 65 |the foll|owing me|
|00000620| 73 73 61 67 65 3a 0a 65 | 63 68 6f 20 27 20 20 20 |ssage:.e|cho ' |
|00000630| 20 20 20 20 20 20 20 22 | 73 68 61 72 3a 20 45 6e | "|shar: En|
|00000640| 64 20 6f 66 20 61 72 63 | 68 69 76 65 20 31 20 28 |d of arc|hive 1 (|
|00000650| 6f 66 20 31 29 2e 22 27 | 0a 69 66 20 74 65 73 74 |of 1)."'|.if test|
|00000660| 20 2d 66 20 27 52 45 41 | 44 4d 45 27 20 2d 61 20 | -f 'REA|DME' -a |
|00000670| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00000680| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00000690| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|000006a0| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|000006b0| 6c 65 20 5c 22 27 52 45 | 41 44 4d 45 27 5c 22 0a |le \"'RE|ADME'\".|
|000006c0| 65 6c 73 65 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |else. e|cho shar|
|000006d0| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|000006e0| 52 45 41 44 4d 45 27 5c | 22 20 5c 28 33 31 35 38 |README'\|" \(3158|
|000006f0| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 20 20 | charact|ers\). |
|00000700| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 52 |sed "s/^|X//" >'R|
|00000710| 45 41 44 4d 45 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |EADME' <|<'END_OF|
|00000720| 5f 46 49 4c 45 27 0a 58 | 53 74 65 76 65 20 46 72 |_FILE'.X|Steve Fr|
|00000730| 61 6e 6b 6c 69 6e 20 20 | 28 6e 6f 74 20 74 68 65 |anklin |(not the|
|00000740| 20 6f 72 69 67 69 6e 61 | 6c 20 61 75 74 68 6f 72 | origina|l author|
|00000750| 29 0a 58 66 72 61 6e 6b | 6c 69 6e 40 75 67 2e 63 |).Xfrank|lin@ug.c|
|00000760| 73 2e 64 61 6c 2e 63 61 | 0a 58 43 6f 6d 70 69 6c |s.dal.ca|.XCompil|
|00000770| 65 64 20 6f 6e 20 41 75 | 67 75 73 74 20 38 74 68 |ed on Au|gust 8th|
|00000780| 2c 20 31 39 39 33 0a 58 | 0a 58 42 65 66 6f 72 65 |, 1993.X|.XBefore|
|00000790| 20 49 20 63 6f 6e 74 69 | 6e 75 65 20 62 79 20 64 | I conti|nue by d|
|000007a0| 65 73 63 72 69 62 69 6e | 67 20 77 68 61 74 20 61 |escribin|g what a|
|000007b0| 6c 6c 20 6f 66 20 74 68 | 69 73 20 64 6f 65 73 2c |ll of th|is does,|
|000007c0| 20 49 20 73 68 6f 75 6c | 64 20 70 6f 69 6e 74 20 | I shoul|d point |
|000007d0| 6f 75 74 20 74 68 61 74 | 0a 58 49 20 61 6d 20 6e |out that|.XI am n|
|000007e0| 6f 74 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |ot the o|riginal |
|000007f0| 61 75 74 68 6f 72 20 6f | 66 20 74 68 69 73 20 73 |author o|f this s|
|00000800| 6f 66 74 77 61 72 65 2e | 20 49 20 68 61 76 65 20 |oftware.| I have |
|00000810| 6d 6f 64 69 66 69 65 64 | 20 69 74 20 6c 69 6b 65 |modified| it like|
|00000820| 0a 58 6d 61 6e 79 20 62 | 65 66 6f 72 65 20 6d 65 |.Xmany b|efore me|
|00000830| 20 61 6e 64 20 61 6d 20 | 6e 6f 77 20 74 72 79 69 | and am |now tryi|
|00000840| 6e 67 20 74 6f 20 73 69 | 6d 70 6c 69 66 79 20 74 |ng to si|mplify t|
|00000850| 68 65 20 64 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e |he docum|entation|
|00000860| 20 61 73 20 73 6f 20 6d | 61 6e 79 0a 58 75 73 65 | as so m|any.Xuse|
|00000870| 72 73 20 68 61 76 65 20 | 72 65 71 75 65 73 74 65 |rs have |requeste|
|00000880| 64 2e 0a 58 0a 58 50 75 | 72 70 6f 73 65 3a 20 54 |d..X.XPu|rpose: T|
|00000890| 68 65 20 70 75 72 70 6f | 73 65 20 6f 66 20 6e 61 |he purpo|se of na|
|000008a0| 6d 65 64 70 20 69 73 20 | 74 6f 20 63 72 65 61 74 |medp is |to creat|
|000008b0| 65 20 61 6e 20 75 6c 74 | 72 61 20 63 6f 6f 6c 20 |e an ult|ra cool |
|000008c0| 2e 70 6c 61 6e 20 66 69 | 6c 65 20 73 6f 0a 58 20 |.plan fi|le so.X |
|000008d0| 20 20 20 20 20 20 20 20 | 74 68 61 74 20 70 65 6f | |that peo|
|000008e0| 70 6c 65 20 63 61 6e 20 | 67 65 74 20 72 61 6e 64 |ple can |get rand|
|000008f0| 6f 6d 20 2e 70 6c 61 6e | 27 73 20 77 68 65 6e 20 |om .plan|'s when |
|00000900| 74 68 65 79 20 66 69 6e | 67 65 72 20 79 6f 75 2e |they fin|ger you.|
|00000910| 20 49 74 0a 58 20 20 20 | 20 20 20 20 20 20 63 61 | It.X | ca|
|00000920| 6e 20 62 65 20 75 73 65 | 64 20 69 6e 20 61 20 76 |n be use|d in a v|
|00000930| 61 72 69 65 74 79 20 6f | 66 20 77 61 79 73 2c 20 |ariety o|f ways, |
|00000940| 61 6e 64 20 64 65 70 65 | 6e 64 69 6e 67 20 6f 6e |and depe|nding on|
|00000950| 20 68 6f 77 20 63 72 65 | 61 74 69 76 65 0a 58 20 | how cre|ative.X |
|00000960| 20 20 20 20 20 20 20 20 | 79 6f 75 20 61 72 65 2c | |you are,|
|00000970| 20 63 61 6e 20 6d 61 6b | 65 20 79 6f 75 20 72 69 | can mak|e you ri|
|00000980| 63 68 20 62 65 79 6f 6e | 64 20 79 6f 75 72 20 77 |ch beyon|d your w|
|00000990| 69 6c 64 65 73 74 20 64 | 72 65 61 6d 73 20 28 77 |ildest d|reams (w|
|000009a0| 65 6c 6c 2c 20 73 6f 72 | 74 61 29 0a 58 0a 58 43 |ell, sor|ta).X.XC|
|000009b0| 6f 6e 74 65 6e 74 73 3a | 20 20 20 4d 61 6b 65 66 |ontents:| Makef|
|000009c0| 69 6c 65 20 20 20 20 20 | 20 53 65 6c 66 2d 65 78 |ile | Self-ex|
|000009d0| 70 6c 61 6e 61 74 6f 72 | 79 20 2d 20 74 79 70 65 |planator|y - type|
|000009e0| 20 22 6d 61 6b 65 22 20 | 74 6f 20 63 6f 6d 70 69 | "make" |to compi|
|000009f0| 6c 65 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 |le.X | |
|00000a00| 6c 6f 67 66 69 6e 67 65 | 72 20 20 20 20 20 48 61 |logfinge|r Ha|
|00000a10| 72 64 6c 79 20 63 68 61 | 6e 67 65 64 20 74 68 69 |rdly cha|nged thi|
|00000a20| 73 20 2d 20 70 65 72 6c | 20 73 63 72 69 70 74 20 |s - perl| script |
|00000a30| 74 6f 20 6c 6f 67 20 77 | 68 6f 73 20 66 69 6e 67 |to log w|hos fing|
|00000a40| 65 72 69 6e 67 0a 58 20 | 20 20 20 20 20 20 20 20 |ering.X | |
|00000a50| 20 20 20 6c 66 20 20 20 | 20 20 20 20 20 20 20 20 | lf | |
|00000a60| 20 53 68 6f 72 74 20 73 | 63 72 69 70 74 20 74 6f | Short s|cript to|
|00000a70| 20 6c 65 74 20 79 6f 75 | 20 6b 6e 6f 77 20 77 68 | let you| know wh|
|00000a80| 65 6e 20 79 6f 75 20 77 | 65 72 65 20 6c 61 73 74 |en you w|ere last|
|00000a90| 20 66 69 6e 27 64 0a 58 | 20 20 20 20 20 20 20 20 | fin'd.X| |
|00000aa0| 20 20 20 20 70 6c 61 6e | 2e 31 20 20 20 20 20 20 | plan|.1 |
|00000ab0| 20 20 4d 61 6e 20 70 61 | 67 65 0a 58 20 20 20 20 | Man pa|ge.X |
|00000ac0| 20 20 20 20 20 20 20 20 | 70 6c 61 6e 2e 63 20 20 | |plan.c |
|00000ad0| 20 20 20 20 20 20 43 2d | 63 6f 64 65 20 66 6f 72 | C-|code for|
|00000ae0| 20 74 68 65 20 70 6c 61 | 6e 20 61 70 70 6c 69 63 | the pla|n applic|
|00000af0| 61 74 69 6f 6e 0a 58 20 | 20 20 20 20 20 20 20 20 |ation.X | |
|00000b00| 20 20 20 70 6c 61 6e 6e | 65 72 20 20 20 20 20 20 | plann|er |
|00000b10| 20 53 68 65 6c 6c 20 73 | 63 72 69 70 74 20 74 68 | Shell s|cript th|
|00000b20| 61 74 20 73 68 6f 77 73 | 20 61 20 63 6f 75 70 6c |at shows| a coupl|
|00000b30| 65 20 6f 66 20 6e 65 61 | 74 20 74 72 69 63 6b 73 |e of nea|t tricks|
|00000b40| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 72 65 |.X | re|
|00000b50| 61 64 6d 65 2e 6f 72 69 | 67 20 20 20 4f 72 69 67 |adme.ori|g Orig|
|00000b60| 69 6e 61 6c 20 72 65 61 | 64 20 6d 65 20 74 68 61 |inal rea|d me tha|
|00000b70| 74 20 77 61 73 20 67 65 | 74 74 69 6e 67 20 61 20 |t was ge|tting a |
|00000b80| 74 61 64 20 22 63 6f 6e | 67 65 73 74 65 64 22 0a |tad "con|gested".|
|00000b90| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 72 65 6e |X | ren|
|00000ba0| 65 77 70 6c 61 6e 20 20 | 20 20 20 53 63 72 69 70 |ewplan | Scrip|
|00000bb0| 74 20 66 6f 72 20 73 74 | 61 72 74 69 6e 67 20 75 |t for st|arting u|
|00000bc0| 70 20 70 6c 61 6e 20 63 | 6c 65 61 6e 6c 79 2e 0a |p plan c|leanly..|
|00000bd0| 58 0a 58 43 68 61 6e 67 | 65 73 3a 20 54 68 65 20 |X.XChang|es: The |
|00000be0| 6f 72 69 67 69 6e 61 6c | 20 70 6c 61 6e 20 73 65 |original| plan se|
|00000bf0| 65 6d 65 64 20 71 75 69 | 74 65 20 63 6f 6e 63 65 |emed qui|te conce|
|00000c00| 72 6e 65 64 20 77 69 74 | 68 20 77 68 6f 20 77 61 |rned wit|h who wa|
|00000c10| 73 20 66 69 6e 67 65 72 | 69 6e 67 20 79 6f 75 20 |s finger|ing you |
|00000c20| 0a 58 20 20 20 20 20 20 | 20 20 20 66 72 6f 6d 20 |.X | from |
|00000c30| 79 6f 75 72 20 6c 6f 63 | 61 6c 20 6d 61 63 68 69 |your loc|al machi|
|00000c40| 6e 65 2c 20 62 75 74 20 | 6a 75 73 74 20 6c 6f 67 |ne, but |just log|
|00000c50| 67 65 64 20 22 73 6f 6d | 65 62 6f 64 79 22 20 61 |ged "som|ebody" a|
|00000c60| 73 20 66 69 6e 67 65 72 | 69 6e 67 0a 58 20 20 20 |s finger|ing.X |
|00000c70| 20 20 20 20 20 20 79 6f | 75 20 69 66 20 69 74 20 | yo|u if it |
|00000c80| 77 61 73 20 66 72 6f 6d | 20 61 6e 6f 74 68 65 72 |was from| another|
|00000c90| 20 6d 61 63 68 69 6e 65 | 2e 20 41 6c 6c 20 69 74 | machine|. All it|
|00000ca0| 20 74 6f 6f 6b 20 77 61 | 73 20 61 20 66 65 77 20 | took wa|s a few |
|00000cb0| 61 64 64 69 74 69 6f 6e | 73 0a 58 20 20 20 20 20 |addition|s.X |
|00000cc0| 20 20 20 20 28 61 20 6c | 61 20 6e 65 74 73 74 61 | (a l|a netsta|
|00000cd0| 74 29 20 74 6f 20 6c 65 | 74 20 79 6f 75 20 66 69 |t) to le|t you fi|
|00000ce0| 67 75 72 65 20 6f 75 74 | 20 77 68 69 63 68 20 6d |gure out| which m|
|00000cf0| 61 63 68 69 6e 65 20 69 | 73 20 66 69 6e 67 65 72 |achine i|s finger|
|00000d00| 69 6e 67 20 79 6f 75 0a | 58 20 20 20 20 20 20 20 |ing you.|X |
|00000d10| 20 20 61 6e 64 20 61 20 | 66 65 77 20 6d 6f 72 65 | and a |few more|
|00000d20| 20 63 68 61 6e 67 65 73 | 20 74 6f 20 69 6d 70 72 | changes| to impr|
|00000d30| 65 73 73 20 74 68 65 20 | 66 69 6e 67 65 72 65 72 |ess the |fingerer|
|00000d40| 20 62 79 20 6c 65 74 74 | 69 6e 67 20 74 68 65 6d | by lett|ing them|
|00000d50| 0a 58 20 20 20 20 20 20 | 20 20 20 6b 6e 6f 77 20 |.X | know |
|00000d60| 74 68 65 69 72 20 68 6f | 73 74 6e 61 6d 65 2e 20 |their ho|stname. |
|00000d70| 54 68 65 73 65 20 73 65 | 74 74 69 6e 67 73 20 61 |These se|ttings a|
|00000d80| 72 65 20 72 65 63 6f 72 | 64 65 64 20 69 6e 74 6f |re recor|ded into|
|00000d90| 20 61 20 66 69 6c 65 20 | 74 68 61 74 0a 58 20 20 | a file |that.X |
|00000da0| 20 20 20 20 20 20 20 79 | 6f 75 20 63 61 6e 20 6c | y|ou can l|
|00000db0| 61 74 65 72 20 71 75 65 | 72 79 2e 0a 58 0a 58 52 |ater que|ry..X.XR|
|00000dc0| 65 71 75 69 72 65 6d 65 | 6e 74 73 3a 20 20 49 6e |equireme|nts: In|
|00000dd0| 20 6f 72 64 65 72 20 74 | 6f 20 72 75 6e 20 70 6c | order t|o run pl|
|00000de0| 61 6e 2c 20 79 6f 75 20 | 6e 65 65 64 20 62 73 64 |an, you |need bsd|
|00000df0| 2d 69 73 68 20 61 72 63 | 68 69 74 65 63 74 75 72 |-ish arc|hitectur|
|00000e00| 65 2e 20 55 73 65 72 73 | 0a 58 20 20 20 20 20 20 |e. Users|.X |
|00000e10| 20 20 20 20 20 20 20 20 | 20 72 75 6e 6e 69 6e 67 | | running|
|00000e20| 20 55 4c 54 52 49 58 20 | 61 72 65 20 6f 75 74 20 | ULTRIX |are out |
|00000e30| 6f 66 20 6c 75 63 6b 2c | 20 61 73 20 61 72 65 20 |of luck,| as are |
|00000e40| 56 4d 53 20 75 73 65 72 | 73 20 6f 66 20 63 6f 75 |VMS user|s of cou|
|00000e50| 72 73 65 2e 0a 58 0a 58 | 49 6e 73 74 72 75 63 74 |rse..X.X|Instruct|
|00000e60| 69 6f 6e 73 3a 20 20 54 | 68 65 20 73 69 6d 70 6c |ions: T|he simpl|
|00000e70| 65 73 74 20 77 61 79 20 | 74 6f 20 73 6f 72 74 20 |est way |to sort |
|00000e80| 74 68 72 6f 75 67 68 20 | 74 68 69 73 20 69 73 20 |through |this is |
|00000e90| 74 6f 20 66 69 72 73 74 | 20 65 64 69 74 0a 58 20 |to first| edit.X |
|00000ea0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 22 70 | | "p|
|00000eb0| 6c 61 6e 6e 65 72 22 2c | 22 72 65 6e 65 77 70 6c |lanner",|"renewpl|
|00000ec0| 61 6e 22 20 61 6e 64 20 | 22 6c 6f 67 66 69 6e 67 |an" and |"logfing|
|00000ed0| 65 72 22 20 74 6f 20 72 | 65 73 65 6d 62 6c 65 20 |er" to r|esemble |
|00000ee0| 79 6f 75 72 20 65 6e 76 | 69 72 6f 6e 2e 0a 58 20 |your env|iron..X |
|00000ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 61 6e | | an|
|00000f00| 64 20 79 6f 75 72 20 70 | 72 65 66 65 72 65 6e 63 |d your p|referenc|
|00000f10| 65 73 2e 20 54 68 65 6e | 2c 20 70 6c 61 63 65 20 |es. Then|, place |
|00000f20| 70 6c 61 6e 20 61 6e 64 | 20 72 65 6e 65 77 70 6c |plan and| renewpl|
|00000f30| 61 6e 20 69 6e 20 0a 58 | 20 20 20 20 20 20 20 20 |an in .X| |
|00000f40| 20 20 20 20 20 20 20 79 | 6f 75 72 20 62 69 6e 20 | y|our bin |
|00000f50| 64 69 72 65 63 74 6f 72 | 79 20 6f 72 20 61 6e 79 |director|y or any|
|00000f60| 20 64 69 72 20 74 68 61 | 74 20 79 6f 75 72 20 24 | dir tha|t your $|
|00000f70| 50 41 54 48 20 76 61 72 | 69 61 62 6c 65 20 70 6f |PATH var|iable po|
|00000f80| 69 6e 74 73 20 0a 58 20 | 20 20 20 20 20 20 20 20 |ints .X | |
|00000f90| 20 20 20 20 20 20 74 6f | 2e 20 53 69 6d 70 6c 79 | to|. Simply|
|00000fa0| 20 74 79 70 65 20 22 72 | 65 6e 65 77 70 6c 61 6e | type "r|enewplan|
|00000fb0| 22 20 61 6e 64 20 69 74 | 20 64 6f 65 73 20 74 68 |" and it| does th|
|00000fc0| 65 20 72 65 73 74 20 66 | 6f 72 20 79 6f 75 2e 0a |e rest f|or you..|
|00000fd0| 58 0a 58 51 75 65 73 74 | 69 6f 6e 73 3a 20 20 20 |X.XQuest|ions: |
|00000fe0| 20 20 46 65 65 6c 20 66 | 72 65 65 20 74 6f 20 73 | Feel f|ree to s|
|00000ff0| 65 6e 64 20 71 75 65 73 | 74 69 6f 6e 73 20 74 6f |end ques|tions to|
|00001000| 20 66 72 61 6e 6b 6c 69 | 6e 40 75 67 2e 63 73 2e | frankli|n@ug.cs.|
|00001010| 64 61 6c 2e 63 61 0a 58 | 20 20 20 20 20 20 20 20 |dal.ca.X| |
|00001020| 20 20 20 20 20 20 20 62 | 75 74 20 70 6c 65 61 73 | b|ut pleas|
|00001030| 65 20 74 72 79 20 74 6f | 20 72 65 61 64 20 74 68 |e try to| read th|
|00001040| 72 6f 75 67 68 20 61 6c | 6c 20 74 68 65 20 64 6f |rough al|l the do|
|00001050| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 61 73 20 77 |cumentat|ion as w|
|00001060| 65 6c 6c 2e 0a 58 0a 58 | 43 61 75 74 69 6f 6e 73 |ell..X.X|Cautions|
|00001070| 3a 20 20 20 20 20 20 49 | 66 20 79 6f 75 72 20 6d |: I|f your m|
|00001080| 61 63 68 69 6e 65 20 72 | 65 62 6f 6f 74 73 2c 20 |achine r|eboots, |
|00001090| 79 6f 75 20 77 69 6c 6c | 20 68 61 76 65 20 61 6e |you will| have an|
|000010a0| 20 65 6d 70 74 79 20 6e | 61 6d 65 64 20 70 69 70 | empty n|amed pip|
|000010b0| 65 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e.X | |
|000010c0| 20 20 70 6f 69 6e 74 69 | 6e 67 20 61 74 20 6e 6f | pointi|ng at no|
|000010d0| 20 70 72 6f 63 65 73 73 | 20 28 69 74 20 64 6f 65 | process| (it doe|
|000010e0| 73 6e 27 74 20 65 78 69 | 73 74 20 73 69 6e 63 65 |sn't exi|st since|
|000010f0| 20 74 68 65 20 6d 61 63 | 68 69 6e 65 20 0a 58 20 | the mac|hine .X |
|00001100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 72 65 | | re|
|00001110| 62 6f 6f 74 65 64 29 2e | 20 53 6f 2c 20 79 6f 75 |booted).| So, you|
|00001120| 20 68 61 76 65 20 74 6f | 20 72 65 73 74 61 72 74 | have to| restart|
|00001130| 20 74 68 65 20 70 6c 61 | 6e 20 70 72 6f 63 65 73 | the pla|n proces|
|00001140| 73 20 28 72 65 6e 65 77 | 70 6c 61 6e 29 0a 58 20 |s (renew|plan).X |
|00001150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 61 66 | | af|
|00001160| 74 65 72 20 61 20 72 65 | 62 6f 6f 74 2e 20 49 66 |ter a re|boot. If|
|00001170| 20 79 6f 75 20 64 6f 6e | 27 74 20 63 61 74 63 68 | you don|'t catch|
|00001180| 20 69 74 2c 20 70 65 6f | 70 6c 65 27 73 20 66 69 | it, peo|ple's fi|
|00001190| 6e 67 65 72 20 0a 58 20 | 20 20 20 20 20 20 20 20 |nger .X | |
|000011a0| 20 20 20 20 20 20 70 72 | 6f 63 65 73 73 65 73 20 | pr|ocesses |
|000011b0| 77 69 6c 6c 20 63 6c 6f | 67 20 75 70 20 79 6f 75 |will clo|g up you|
|000011c0| 72 20 66 69 6e 67 65 72 | 20 70 6f 72 74 2e 20 54 |r finger| port. T|
|000011d0| 6f 20 67 65 74 20 61 72 | 6f 75 6e 64 20 74 68 69 |o get ar|ound thi|
|000011e0| 73 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |s.X | |
|000011f0| 20 20 49 20 68 61 64 20 | 61 6e 20 22 61 74 20 2b | I had |an "at +|
|00001200| 20 31 20 68 6f 75 72 2e | 2e 2e 22 20 69 6e 63 6c | 1 hour.|.." incl|
|00001210| 75 64 65 64 20 69 6e 20 | 22 72 65 6e 65 77 70 6c |uded in |"renewpl|
|00001220| 61 6e 22 20 74 6f 20 72 | 65 2d 65 78 65 63 0a 58 |an" to r|e-exec.X|
|00001230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 72 | | r|
|00001240| 65 6e 65 77 70 6c 61 6e | 20 65 76 65 72 79 20 68 |enewplan| every h|
|00001250| 6f 75 72 20 2d 20 69 66 | 20 74 68 65 72 65 20 77 |our - if| there w|
|00001260| 61 73 20 61 20 72 65 62 | 6f 6f 74 2c 20 70 6c 61 |as a reb|oot, pla|
|00001270| 6e 20 77 6f 75 6c 64 0a | 58 20 20 20 20 20 20 20 |n would.|X |
|00001280| 20 20 20 20 20 20 20 20 | 73 74 61 72 74 20 75 70 | |start up|
|00001290| 20 6e 6f 20 6d 6f 72 65 | 20 74 68 61 6e 20 61 6e | no more| than an|
|000012a0| 20 68 6f 75 72 20 61 66 | 74 65 72 20 74 68 65 20 | hour af|ter the |
|000012b0| 72 65 62 6f 6f 74 2e 20 | 0a 58 0a 58 45 78 61 6d |reboot. |.X.XExam|
|000012c0| 70 6c 65 3a 20 20 20 20 | 20 20 20 43 68 65 63 6b |ple: | Check|
|000012d0| 20 6f 75 74 20 66 72 61 | 6e 6b 6c 69 6e 40 75 67 | out fra|nklin@ug|
|000012e0| 2e 63 73 2e 64 61 6c 2e | 63 61 20 66 6f 72 20 61 |.cs.dal.|ca for a|
|000012f0| 6e 20 65 78 61 6d 70 6c | 65 20 6f 66 20 68 6f 77 |n exampl|e of how|
|00001300| 20 74 68 65 0a 58 20 20 | 20 20 20 20 20 20 20 20 | the.X | |
|00001310| 20 20 20 20 20 6e 61 6d | 65 64 70 20 70 69 70 65 | nam|edp pipe|
|00001320| 20 63 61 6e 20 62 65 20 | 75 73 65 64 20 2d 20 68 | can be |used - h|
|00001330| 6f 70 65 66 75 6c 6c 79 | 20 69 74 27 73 20 75 70 |opefully| it's up|
|00001340| 20 61 6e 64 20 72 75 6e | 6e 69 6e 67 20 3a 29 0a | and run|ning :).|
|00001350| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X | |
|00001360| 48 6f 70 65 66 75 6c 6c | 79 20 79 6f 75 20 67 75 |Hopefull|y you gu|
|00001370| 79 73 20 77 69 6c 6c 20 | 6d 61 69 6c 20 6d 65 20 |ys will |mail me |
|00001380| 69 66 20 79 6f 75 20 67 | 65 74 20 6e 65 61 74 20 |if you g|et neat |
|00001390| 69 64 65 61 73 20 6f 66 | 0a 58 20 20 20 20 20 20 |ideas of|.X |
|000013a0| 20 20 20 20 20 20 20 20 | 20 79 6f 75 72 20 6f 77 | | your ow|
|000013b0| 6e 2e 2e 2e 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |n....END|_OF_FILE|
|000013c0| 0a 20 20 69 66 20 74 65 | 73 74 20 33 31 35 38 20 |. if te|st 3158 |
|000013d0| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 52 45 41 |-ne `wc |-c <'REA|
|000013e0| 44 4d 45 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |DME'`; t|hen. |
|000013f0| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 52 45 |echo sha|r: \"'RE|
|00001400| 41 44 4d 45 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |ADME'\" |unpacked|
|00001410| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|00001420| 21 0a 20 20 66 69 0a 20 | 20 23 20 65 6e 64 20 6f |!. fi. | # end o|
|00001430| 66 20 27 52 45 41 44 4d | 45 27 0a 66 69 0a 69 66 |f 'READM|E'.fi.if|
|00001440| 20 74 65 73 74 20 2d 66 | 20 27 4d 61 6b 65 66 69 | test -f| 'Makefi|
|00001450| 6c 65 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |le' -a "|${1}" !=|
|00001460| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00001470| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00001480| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00001490| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 4d 61 6b |ting fil|e \"'Mak|
|000014a0| 65 66 69 6c 65 27 5c 22 | 0a 65 6c 73 65 0a 20 20 |efile'\"|.else. |
|000014b0| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|000014c0| 63 74 69 6e 67 20 5c 22 | 27 4d 61 6b 65 66 69 6c |cting \"|'Makefil|
|000014d0| 65 27 5c 22 20 5c 28 31 | 34 30 31 20 63 68 61 72 |e'\" \(1|401 char|
|000014e0| 61 63 74 65 72 73 5c 29 | 0a 20 20 73 65 64 20 22 |acters\)|. sed "|
|000014f0| 73 2f 5e 58 2f 2f 22 20 | 3e 27 4d 61 6b 65 66 69 |s/^X//" |>'Makefi|
|00001500| 6c 65 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |le' <<'E|ND_OF_FI|
|00001510| 4c 45 27 0a 58 44 45 53 | 54 09 20 20 20 20 20 20 |LE'.XDES|T. |
|00001520| 3d 20 2f 68 6f 6d 65 2f | 6e 61 70 61 6c 6d 2f 62 |= /home/|napalm/b|
|00001530| 69 6e 2f 66 69 66 6f 0a | 58 0a 58 45 58 54 48 44 |in/fifo.|X.XEXTHD|
|00001540| 52 53 09 20 20 20 20 20 | 20 3d 20 2f 75 73 72 2f |RS. | = /usr/|
|00001550| 69 6e 63 6c 75 64 65 2f | 66 63 6e 74 6c 2e 68 20 |include/|fcntl.h |
|00001560| 5c 0a 58 09 09 2f 75 73 | 72 2f 69 6e 63 6c 75 64 |\.X../us|r/includ|
|00001570| 65 2f 73 69 67 6e 61 6c | 2e 68 20 5c 0a 58 09 09 |e/signal|.h \.X..|
|00001580| 2f 75 73 72 2f 69 6e 63 | 6c 75 64 65 2f 73 74 64 |/usr/inc|lude/std|
|00001590| 69 6f 2e 68 20 5c 0a 58 | 09 09 2f 75 73 72 2f 69 |io.h \.X|../usr/i|
|000015a0| 6e 63 6c 75 64 65 2f 73 | 79 73 2f 66 63 6e 74 6c |nclude/s|ys/fcntl|
|000015b0| 2e 68 20 5c 0a 58 09 09 | 2f 75 73 72 2f 69 6e 63 |.h \.X..|/usr/inc|
|000015c0| 6c 75 64 65 2f 73 79 73 | 2f 66 69 6c 65 2e 68 20 |lude/sys|/file.h |
|000015d0| 5c 0a 58 09 09 2f 75 73 | 72 2f 69 6e 63 6c 75 64 |\.X../us|r/includ|
|000015e0| 65 2f 73 79 73 2f 73 74 | 61 74 2e 68 20 5c 0a 58 |e/sys/st|at.h \.X|
|000015f0| 09 09 2f 75 73 72 2f 69 | 6e 63 6c 75 64 65 2f 73 |../usr/i|nclude/s|
|00001600| 79 73 2f 73 79 73 6d 61 | 63 72 6f 73 2e 68 20 5c |ys/sysma|cros.h \|
|00001610| 0a 58 09 09 2f 75 73 72 | 2f 69 6e 63 6c 75 64 65 |.X../usr|/include|
|00001620| 2f 73 79 73 2f 73 79 73 | 6d 61 63 72 6f 73 2e 68 |/sys/sys|macros.h|
|00001630| 20 5c 0a 58 09 09 2f 75 | 73 72 2f 69 6e 63 6c 75 | \.X../u|sr/inclu|
|00001640| 64 65 2f 73 79 73 2f 74 | 79 70 65 73 2e 68 20 5c |de/sys/t|ypes.h \|
|00001650| 0a 58 09 09 2f 75 73 72 | 2f 69 6e 63 6c 75 64 65 |.X../usr|/include|
|00001660| 2f 73 79 73 2f 74 79 70 | 65 73 2e 68 0a 58 0a 58 |/sys/typ|es.h.X.X|
|00001670| 48 44 52 53 09 20 20 20 | 20 20 20 3d 0a 58 0a 58 |HDRS. | =.X.X|
|00001680| 4c 44 46 4c 41 47 53 09 | 20 20 20 20 20 20 3d 0a |LDFLAGS.| =.|
|00001690| 58 0a 58 4c 49 42 53 09 | 20 20 20 20 20 20 3d 0a |X.XLIBS.| =.|
|000016a0| 58 0a 58 4c 49 4e 4b 45 | 52 09 20 20 20 20 20 20 |X.XLINKE|R. |
|000016b0| 3d 20 63 63 0a 58 0a 58 | 4d 41 4b 45 46 49 4c 45 |= cc.X.X|MAKEFILE|
|000016c0| 20 20 20 20 20 20 3d 20 | 4d 61 6b 65 66 69 6c 65 | = |Makefile|
|000016d0| 0a 58 0a 58 4f 42 4a 53 | 09 20 20 20 20 20 20 3d |.X.XOBJS|. =|
|000016e0| 20 70 6c 61 6e 2e 6f 0a | 58 0a 58 50 52 49 4e 54 | plan.o.|X.XPRINT|
|000016f0| 09 20 20 20 20 20 20 3d | 20 70 72 0a 58 0a 58 50 |. =| pr.X.XP|
|00001700| 52 4f 47 52 41 4d 09 20 | 20 20 20 20 20 3d 20 70 |ROGRAM. | = p|
|00001710| 6c 61 6e 0a 58 0a 58 53 | 52 43 53 09 20 20 20 20 |lan.X.XS|RCS. |
|00001720| 20 20 3d 20 70 6c 61 6e | 2e 63 0a 58 0a 58 61 6c | = plan|.c.X.Xal|
|00001730| 6c 3a 09 09 24 28 50 52 | 4f 47 52 41 4d 29 0a 58 |l:..$(PR|OGRAM).X|
|00001740| 0a 58 24 28 50 52 4f 47 | 52 41 4d 29 3a 20 20 20 |.X$(PROG|RAM): |
|00001750| 20 20 24 28 4f 42 4a 53 | 29 20 24 28 4c 49 42 53 | $(OBJS|) $(LIBS|
|00001760| 29 0a 58 09 09 40 65 63 | 68 6f 20 2d 6e 20 22 4c |).X..@ec|ho -n "L|
|00001770| 6f 61 64 69 6e 67 20 24 | 28 50 52 4f 47 52 41 4d |oading $|(PROGRAM|
|00001780| 29 20 2e 2e 2e 20 22 0a | 58 09 09 40 24 28 4c 49 |) ... ".|X..@$(LI|
|00001790| 4e 4b 45 52 29 20 24 28 | 4c 44 46 4c 41 47 53 29 |NKER) $(|LDFLAGS)|
|000017a0| 20 24 28 4f 42 4a 53 29 | 20 24 28 4c 49 42 53 29 | $(OBJS)| $(LIBS)|
|000017b0| 20 2d 6f 20 24 28 50 52 | 4f 47 52 41 4d 29 0a 58 | -o $(PR|OGRAM).X|
|000017c0| 09 09 40 65 63 68 6f 20 | 22 64 6f 6e 65 22 0a 58 |..@echo |"done".X|
|000017d0| 0a 58 63 6c 65 61 6e 3a | 3b 09 09 40 72 6d 20 2d |.Xclean:|;..@rm -|
|000017e0| 66 20 24 28 4f 42 4a 53 | 29 0a 58 0a 58 64 65 70 |f $(OBJS|).X.Xdep|
|000017f0| 65 6e 64 3a 3b 09 40 6d | 6b 6d 66 20 2d 66 20 24 |end:;.@m|kmf -f $|
|00001800| 28 4d 41 4b 45 46 49 4c | 45 29 20 50 52 4f 47 52 |(MAKEFIL|E) PROGR|
|00001810| 41 4d 3d 24 28 50 52 4f | 47 52 41 4d 29 20 44 45 |AM=$(PRO|GRAM) DE|
|00001820| 53 54 3d 24 28 44 45 53 | 54 29 0a 58 0a 58 69 6e |ST=$(DES|T).X.Xin|
|00001830| 64 65 78 3a 3b 09 09 40 | 63 74 61 67 73 20 2d 77 |dex:;..@|ctags -w|
|00001840| 78 20 24 28 48 44 52 53 | 29 20 24 28 53 52 43 53 |x $(HDRS|) $(SRCS|
|00001850| 29 0a 58 0a 58 69 6e 73 | 74 61 6c 6c 3a 09 24 28 |).X.Xins|tall:.$(|
|00001860| 50 52 4f 47 52 41 4d 29 | 0a 58 09 09 40 65 63 68 |PROGRAM)|.X..@ech|
|00001870| 6f 20 49 6e 73 74 61 6c | 6c 69 6e 67 20 24 28 50 |o Instal|ling $(P|
|00001880| 52 4f 47 52 41 4d 29 20 | 69 6e 20 24 28 44 45 53 |ROGRAM) |in $(DES|
|00001890| 54 29 0a 58 09 09 40 69 | 6e 73 74 61 6c 6c 20 2d |T).X..@i|nstall -|
|000018a0| 73 20 24 28 50 52 4f 47 | 52 41 4d 29 20 24 28 44 |s $(PROG|RAM) $(D|
|000018b0| 45 53 54 29 0a 58 0a 58 | 70 72 69 6e 74 3a 3b 09 |EST).X.X|print:;.|
|000018c0| 09 40 24 28 50 52 49 4e | 54 29 20 24 28 48 44 52 |.@$(PRIN|T) $(HDR|
|000018d0| 53 29 20 24 28 53 52 43 | 53 29 0a 58 0a 58 70 72 |S) $(SRC|S).X.Xpr|
|000018e0| 6f 67 72 61 6d 3a 20 20 | 20 20 20 20 20 20 24 28 |ogram: | $(|
|000018f0| 50 52 4f 47 52 41 4d 29 | 0a 58 0a 58 74 61 67 73 |PROGRAM)|.X.Xtags|
|00001900| 3a 20 20 20 20 20 20 20 | 20 20 20 20 24 28 48 44 |: | $(HD|
|00001910| 52 53 29 20 24 28 53 52 | 43 53 29 3b 20 40 63 74 |RS) $(SR|CS); @ct|
|00001920| 61 67 73 20 24 28 48 44 | 52 53 29 20 24 28 53 52 |ags $(HD|RS) $(SR|
|00001930| 43 53 29 0a 58 0a 58 75 | 70 64 61 74 65 3a 09 09 |CS).X.Xu|pdate:..|
|00001940| 24 28 44 45 53 54 29 2f | 24 28 50 52 4f 47 52 41 |$(DEST)/|$(PROGRA|
|00001950| 4d 29 0a 58 0a 58 24 28 | 44 45 53 54 29 2f 24 28 |M).X.X$(|DEST)/$(|
|00001960| 50 52 4f 47 52 41 4d 29 | 3a 20 24 28 53 52 43 53 |PROGRAM)|: $(SRCS|
|00001970| 29 20 24 28 4c 49 42 53 | 29 20 24 28 48 44 52 53 |) $(LIBS|) $(HDRS|
|00001980| 29 20 24 28 45 58 54 48 | 44 52 53 29 0a 58 09 09 |) $(EXTH|DRS).X..|
|00001990| 40 6d 61 6b 65 20 2d 66 | 20 24 28 4d 41 4b 45 46 |@make -f| $(MAKEF|
|000019a0| 49 4c 45 29 20 44 45 53 | 54 3d 24 28 44 45 53 54 |ILE) DES|T=$(DEST|
|000019b0| 29 20 69 6e 73 74 61 6c | 6c 0a 58 23 23 23 0a 58 |) instal|l.X###.X|
|000019c0| 70 6c 61 6e 2e 6f 3a 20 | 2f 75 73 72 2f 69 6e 63 |plan.o: |/usr/inc|
|000019d0| 6c 75 64 65 2f 73 79 73 | 2f 74 79 70 65 73 2e 68 |lude/sys|/types.h|
|000019e0| 20 2f 75 73 72 2f 69 6e | 63 6c 75 64 65 2f 73 79 | /usr/in|clude/sy|
|000019f0| 73 2f 73 79 73 6d 61 63 | 72 6f 73 2e 68 20 5c 0a |s/sysmac|ros.h \.|
|00001a00| 58 09 2f 75 73 72 2f 69 | 6e 63 6c 75 64 65 2f 73 |X./usr/i|nclude/s|
|00001a10| 79 73 2f 73 79 73 6d 61 | 63 72 6f 73 2e 68 20 2f |ys/sysma|cros.h /|
|00001a20| 75 73 72 2f 69 6e 63 6c | 75 64 65 2f 73 79 73 2f |usr/incl|ude/sys/|
|00001a30| 66 69 6c 65 2e 68 20 5c | 0a 58 09 2f 75 73 72 2f |file.h \|.X./usr/|
|00001a40| 69 6e 63 6c 75 64 65 2f | 73 79 73 2f 66 63 6e 74 |include/|sys/fcnt|
|00001a50| 6c 2e 68 20 2f 75 73 72 | 2f 69 6e 63 6c 75 64 65 |l.h /usr|/include|
|00001a60| 2f 73 79 73 2f 74 79 70 | 65 73 2e 68 20 5c 0a 58 |/sys/typ|es.h \.X|
|00001a70| 09 2f 75 73 72 2f 69 6e | 63 6c 75 64 65 2f 66 63 |./usr/in|clude/fc|
|00001a80| 6e 74 6c 2e 68 20 2f 75 | 73 72 2f 69 6e 63 6c 75 |ntl.h /u|sr/inclu|
|00001a90| 64 65 2f 73 74 64 69 6f | 2e 68 20 2f 75 73 72 2f |de/stdio|.h /usr/|
|00001aa0| 69 6e 63 6c 75 64 65 2f | 73 79 73 2f 73 74 61 74 |include/|sys/stat|
|00001ab0| 2e 68 20 5c 0a 58 09 2f | 75 73 72 2f 69 6e 63 6c |.h \.X./|usr/incl|
|00001ac0| 75 64 65 2f 73 69 67 6e | 61 6c 2e 68 0a 45 4e 44 |ude/sign|al.h.END|
|00001ad0| 5f 4f 46 5f 46 49 4c 45 | 0a 20 20 69 66 20 74 65 |_OF_FILE|. if te|
|00001ae0| 73 74 20 31 34 30 31 20 | 2d 6e 65 20 60 77 63 20 |st 1401 |-ne `wc |
|00001af0| 2d 63 20 3c 27 4d 61 6b | 65 66 69 6c 65 27 60 3b |-c <'Mak|efile'`;|
|00001b00| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00001b10| 68 61 72 3a 20 5c 22 27 | 4d 61 6b 65 66 69 6c 65 |har: \"'|Makefile|
|00001b20| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00001b30| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 20 20 |h wrong |size!. |
|00001b40| 66 69 0a 20 20 23 20 65 | 6e 64 20 6f 66 20 27 4d |fi. # e|nd of 'M|
|00001b50| 61 6b 65 66 69 6c 65 27 | 0a 66 69 0a 69 66 20 74 |akefile'|.fi.if t|
|00001b60| 65 73 74 20 2d 66 20 27 | 6c 66 27 20 2d 61 20 22 |est -f '|lf' -a "|
|00001b70| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00001b80| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00001b90| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00001ba0| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00001bb0| 65 20 5c 22 27 6c 66 27 | 5c 22 0a 65 6c 73 65 0a |e \"'lf'|\".else.|
|00001bc0| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 45 78 74 | echo s|har: Ext|
|00001bd0| 72 61 63 74 69 6e 67 20 | 5c 22 27 6c 66 27 5c 22 |racting |\"'lf'\"|
|00001be0| 20 5c 28 32 32 34 20 63 | 68 61 72 61 63 74 65 72 | \(224 c|haracter|
|00001bf0| 73 5c 29 0a 20 20 73 65 | 64 20 22 73 2f 5e 58 2f |s\). se|d "s/^X/|
|00001c00| 2f 22 20 3e 27 6c 66 27 | 20 3c 3c 27 45 4e 44 5f |/" >'lf'| <<'END_|
|00001c10| 4f 46 5f 46 49 4c 45 27 | 0a 58 23 21 2f 62 69 6e |OF_FILE'|.X#!/bin|
|00001c20| 2f 73 68 0a 58 74 69 6d | 65 69 74 3d 60 6c 73 20 |/sh.Xtim|eit=`ls |
|00001c30| 2d 6c 20 2f 75 73 65 72 | 73 2f 73 74 75 64 65 6e |-l /user|s/studen|
|00001c40| 74 73 2f 66 72 61 6e 6b | 6c 69 6e 2f 2e 64 6f 74 |ts/frank|lin/.dot|
|00001c50| 73 2f 2e 66 69 6e 67 65 | 72 65 65 73 20 7c 20 63 |s/.finge|rees | c|
|00001c60| 75 74 20 2d 63 34 32 2d | 35 34 60 0a 58 75 73 65 |ut -c42-|54`.Xuse|
|00001c70| 72 3d 60 74 61 69 6c 20 | 2d 32 20 2f 75 73 65 72 |r=`tail |-2 /user|
|00001c80| 73 2f 73 74 75 64 65 6e | 74 73 2f 66 72 61 6e 6b |s/studen|ts/frank|
|00001c90| 6c 69 6e 2f 2e 64 6f 74 | 73 2f 2e 66 69 6e 67 65 |lin/.dot|s/.finge|
|00001ca0| 72 65 65 73 20 7c 20 68 | 65 61 64 20 2d 31 20 7c |rees | h|ead -1 ||
|00001cb0| 20 63 75 74 20 2d 63 31 | 2d 38 20 7c 20 74 72 20 | cut -c1|-8 | tr |
|00001cc0| 22 2c 22 20 22 20 22 60 | 0a 58 65 63 68 6f 20 22 |"," " "`|.Xecho "|
|00001cd0| 79 6f 75 20 77 65 72 65 | 20 6c 61 73 74 20 66 69 |you were| last fi|
|00001ce0| 6e 67 65 72 65 64 20 61 | 74 3a 22 20 24 74 69 6d |ngered a|t:" $tim|
|00001cf0| 65 69 74 20 62 79 20 24 | 75 73 65 72 0a 45 4e 44 |eit by $|user.END|
|00001d00| 5f 4f 46 5f 46 49 4c 45 | 0a 20 20 69 66 20 74 65 |_OF_FILE|. if te|
|00001d10| 73 74 20 32 32 34 20 2d | 6e 65 20 60 77 63 20 2d |st 224 -|ne `wc -|
|00001d20| 63 20 3c 27 6c 66 27 60 | 3b 20 74 68 65 6e 0a 20 |c <'lf'`|; then. |
|00001d30| 20 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 5c 22 | echo |shar: \"|
|00001d40| 27 6c 66 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |'lf'\" u|npacked |
|00001d50| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|00001d60| 0a 20 20 66 69 0a 20 20 | 63 68 6d 6f 64 20 2b 78 |. fi. |chmod +x|
|00001d70| 20 27 6c 66 27 0a 20 20 | 23 20 65 6e 64 20 6f 66 | 'lf'. |# end of|
|00001d80| 20 27 6c 66 27 0a 66 69 | 0a 69 66 20 74 65 73 74 | 'lf'.fi|.if test|
|00001d90| 20 2d 66 20 27 6c 6f 67 | 66 69 6e 67 65 72 27 20 | -f 'log|finger' |
|00001da0| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00001db0| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00001dc0| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00001dd0| 63 6c 6f 62 62 65 72 20 | 65 78 69 73 74 69 6e 67 |clobber |existing|
|00001de0| 20 66 69 6c 65 20 5c 22 | 27 6c 6f 67 66 69 6e 67 | file \"|'logfing|
|00001df0| 65 72 27 5c 22 0a 65 6c | 73 65 0a 20 20 65 63 68 |er'\".el|se. ech|
|00001e00| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00001e10| 6e 67 20 5c 22 27 6c 6f | 67 66 69 6e 67 65 72 27 |ng \"'lo|gfinger'|
|00001e20| 5c 22 20 5c 28 36 30 33 | 20 63 68 61 72 61 63 74 |\" \(603| charact|
|00001e30| 65 72 73 5c 29 0a 20 20 | 73 65 64 20 22 73 2f 5e |ers\). |sed "s/^|
|00001e40| 58 2f 2f 22 20 3e 27 6c | 6f 67 66 69 6e 67 65 72 |X//" >'l|ogfinger|
|00001e50| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|00001e60| 27 0a 58 23 21 2f 75 73 | 72 2f 62 69 6e 2f 70 65 |'.X#!/us|r/bin/pe|
|00001e70| 72 6c 20 2d 2d 20 23 20 | 2d 2a 2d 50 65 72 6c 2d |rl -- # |-*-Perl-|
|00001e80| 2a 2d 0a 58 0a 58 24 6d | 65 20 3d 20 22 66 72 61 |*-.X.X$m|e = "fra|
|00001e90| 6e 6b 6c 69 6e 22 3b 0a | 58 24 6c 6f 67 66 69 6c |nklin";.|X$logfil|
|00001ea0| 65 20 3d 20 22 2f 75 73 | 65 72 73 2f 73 74 75 64 |e = "/us|ers/stud|
|00001eb0| 65 6e 74 73 2f 66 72 61 | 6e 6b 6c 69 6e 2f 2e 66 |ents/fra|nklin/.f|
|00001ec0| 69 6e 67 65 72 65 65 73 | 22 3b 0a 58 24 70 73 63 |ingerees|";.X$psc|
|00001ed0| 6f 6d 6d 61 6e 64 20 3d | 20 22 70 73 20 2d 61 75 |ommand =| "ps -au|
|00001ee0| 77 22 3b 0a 58 0a 58 6f | 70 65 6e 28 50 53 2c 20 |w";.X.Xo|pen(PS, |
|00001ef0| 22 24 70 73 63 6f 6d 6d | 61 6e 64 20 7c 22 29 3b |"$pscomm|and |");|
|00001f00| 0a 58 40 66 69 6e 67 65 | 72 73 20 3d 20 67 72 65 |.X@finge|rs = gre|
|00001f10| 70 28 2f 28 66 5c 73 2b | 24 6d 65 29 7c 28 66 69 |p(/(f\s+|$me)|(fi|
|00001f20| 6e 67 65 72 5c 73 2b 24 | 6d 65 29 2f 2c 20 3c 50 |nger\s+$|me)/, <P|
|00001f30| 53 3e 29 3b 0a 58 63 6c | 6f 73 65 28 50 53 29 3b |S>);.Xcl|ose(PS);|
|00001f40| 0a 58 0a 58 28 24 6e 75 | 6d 29 20 3d 20 75 6e 70 |.X.X($nu|m) = unp|
|00001f50| 61 63 6b 28 22 41 39 22 | 2c 20 60 77 63 20 2d 6c |ack("A9"|, `wc -l|
|00001f60| 20 24 6c 6f 67 66 69 6c | 65 60 29 3b 20 23 20 3d | $logfil|e`); # =|
|00001f70| 7e 20 73 2f 5e 5c 73 2a | 28 5c 64 2b 29 2e 2a 5c |~ s/^\s*|(\d+).*\|
|00001f80| 6e 2f 5c 31 2f 3b 0a 58 | 28 24 6e 75 6d 32 29 20 |n/\1/;.X|($num2) |
|00001f90| 3d 20 24 6e 75 6d 2f 32 | 3b 0a 58 70 72 69 6e 74 |= $num/2|;.Xprint|
|00001fa0| 66 20 22 49 20 68 61 76 | 65 20 62 65 65 6e 20 66 |f "I hav|e been f|
|00001fb0| 69 6e 67 65 72 65 64 20 | 25 64 20 74 69 6d 65 22 |ingered |%d time"|
|00001fc0| 2c 20 24 6e 75 6d 32 3b | 0a 58 70 72 69 6e 74 20 |, $num2;|.Xprint |
|00001fd0| 22 73 22 20 69 66 20 28 | 24 6e 75 6d 20 2d 20 31 |"s" if (|$num - 1|
|00001fe0| 29 3b 0a 58 70 72 69 6e | 74 20 22 20 74 6f 64 61 |);.Xprin|t " toda|
|00001ff0| 79 5c 6e 22 3b 0a 58 63 | 6c 6f 73 65 28 53 54 44 |y\n";.Xc|lose(STD|
|00002000| 4f 55 54 29 3b 0a 58 0a | 58 6f 70 65 6e 28 4c 4f |OUT);.X.|Xopen(LO|
|00002010| 47 2c 20 22 3e 3e 24 6c | 6f 67 66 69 6c 65 22 29 |G, ">>$l|ogfile")|
|00002020| 3b 0a 58 66 6f 72 65 61 | 63 68 20 24 6c 69 6e 65 |;.Xforea|ch $line|
|00002030| 20 28 40 66 69 6e 67 65 | 72 73 29 20 7b 0a 58 20 | (@finge|rs) {.X |
|00002040| 20 20 20 28 24 75 73 65 | 72 29 20 3d 20 24 6c 69 | ($use|r) = $li|
|00002050| 6e 65 20 3d 7e 20 2f 5e | 5c 73 2a 28 5c 53 2b 29 |ne =~ /^|\s*(\S+)|
|00002060| 2f 3b 0a 58 20 20 20 20 | 70 72 69 6e 74 20 4c 4f |/;.X |print LO|
|00002070| 47 20 22 24 75 73 65 72 | 2c 20 61 74 20 22 2c 20 |G "$user|, at ", |
|00002080| 60 64 61 74 65 60 3b 0a | 58 7d 0a 58 0a 58 70 72 |`date`;.|X}.X.Xpr|
|00002090| 69 6e 74 28 4c 4f 47 20 | 22 73 6f 6d 65 62 6f 64 |int(LOG |"somebod|
|000020a0| 79 2c 20 61 74 20 22 2c | 20 60 64 61 74 65 60 29 |y, at ",| `date`)|
|000020b0| 20 69 66 20 28 21 20 28 | 24 23 66 69 6e 67 65 72 | if (! (|$#finger|
|000020c0| 73 20 2b 20 31 29 29 3b | 0a 58 63 6c 6f 73 65 28 |s + 1));|.Xclose(|
|000020d0| 4c 4f 47 29 3b 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |LOG);.EN|D_OF_FIL|
|000020e0| 45 0a 20 20 69 66 20 74 | 65 73 74 20 36 30 33 20 |E. if t|est 603 |
|000020f0| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 6c 6f 67 |-ne `wc |-c <'log|
|00002100| 66 69 6e 67 65 72 27 60 | 3b 20 74 68 65 6e 0a 20 |finger'`|; then. |
|00002110| 20 20 20 65 63 68 6f 20 | 73 68 61 72 3a 20 5c 22 | echo |shar: \"|
|00002120| 27 6c 6f 67 66 69 6e 67 | 65 72 27 5c 22 20 75 6e |'logfing|er'\" un|
|00002130| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00002140| 67 20 73 69 7a 65 21 0a | 20 20 66 69 0a 20 20 63 |g size!.| fi. c|
|00002150| 68 6d 6f 64 20 2b 78 20 | 27 6c 6f 67 66 69 6e 67 |hmod +x |'logfing|
|00002160| 65 72 27 0a 20 20 23 20 | 65 6e 64 20 6f 66 20 27 |er'. # |end of '|
|00002170| 6c 6f 67 66 69 6e 67 65 | 72 27 0a 66 69 0a 69 66 |logfinge|r'.fi.if|
|00002180| 20 74 65 73 74 20 2d 66 | 20 27 70 6c 61 6e 2e 31 | test -f| 'plan.1|
|00002190| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|000021a0| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|000021b0| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|000021c0| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|000021d0| 6e 67 20 66 69 6c 65 20 | 5c 22 27 70 6c 61 6e 2e |ng file |\"'plan.|
|000021e0| 31 27 5c 22 0a 65 6c 73 | 65 0a 20 20 65 63 68 6f |1'\".els|e. echo|
|000021f0| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|00002200| 67 20 5c 22 27 70 6c 61 | 6e 2e 31 27 5c 22 20 5c |g \"'pla|n.1'\" \|
|00002210| 28 31 34 39 35 20 63 68 | 61 72 61 63 74 65 72 73 |(1495 ch|aracters|
|00002220| 5c 29 0a 20 20 73 65 64 | 20 22 73 2f 5e 58 2f 2f |\). sed| "s/^X//|
|00002230| 22 20 3e 27 70 6c 61 6e | 2e 31 27 20 3c 3c 27 45 |" >'plan|.1' <<'E|
|00002240| 4e 44 5f 4f 46 5f 46 49 | 4c 45 27 0a 58 2e 54 48 |ND_OF_FI|LE'.X.TH|
|00002250| 20 50 4c 41 4e 20 4c 20 | 22 5c 2a 28 56 29 22 20 | PLAN L |"\*(V)" |
|00002260| 22 34 42 53 44 22 0a 58 | 2e 53 48 20 4e 41 4d 45 |"4BSD".X|.SH NAME|
|00002270| 0a 58 70 6c 61 6e 20 2d | 20 72 75 6e 20 61 6e 20 |.Xplan -| run an |
|00002280| 65 78 65 63 75 74 61 62 | 6c 65 20 77 68 65 6e 20 |executab|le when |
|00002290| 61 20 73 70 65 63 69 66 | 69 65 64 20 46 49 46 4f |a specif|ied FIFO|
|000022a0| 20 69 73 20 6f 70 65 6e | 65 64 0a 58 2e 53 48 20 | is open|ed.X.SH |
|000022b0| 53 59 4e 4f 50 53 49 53 | 0a 58 2e 42 20 70 6c 61 |SYNOPSIS|.X.B pla|
|000022c0| 6e 0a 58 5b 0a 58 2e 42 | 52 20 2d 66 20 66 69 6c |n.X[.X.B|R -f fil|
|000022d0| 65 0a 58 5d 0a 58 2e 42 | 20 65 78 65 63 75 74 61 |e.X].X.B| executa|
|000022e0| 62 6c 65 0a 58 2e 53 48 | 20 44 45 53 43 52 49 50 |ble.X.SH| DESCRIP|
|000022f0| 54 49 4f 4e 0a 58 2e 49 | 20 70 6c 61 6e 0a 58 74 |TION.X.I| plan.Xt|
|00002300| 61 6b 65 73 20 74 68 65 | 20 6e 61 6d 65 20 6f 66 |akes the| name of|
|00002310| 20 61 6e 20 65 78 65 63 | 75 74 61 62 6c 65 20 70 | an exec|utable p|
|00002320| 72 6f 67 72 61 6d 20 61 | 6e 64 20 72 75 6e 73 20 |rogram a|nd runs |
|00002330| 69 74 20 6f 6e 20 61 20 | 46 49 46 4f 20 74 68 61 |it on a |FIFO tha|
|00002340| 74 0a 58 69 73 20 73 70 | 65 63 69 66 69 65 64 20 |t.Xis sp|ecified |
|00002350| 6f 6e 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 6c |on the c|ommand l|
|00002360| 69 6e 65 20 6f 72 20 6f | 6e 20 61 20 46 49 46 4f |ine or o|n a FIFO|
|00002370| 20 69 6e 20 74 68 65 20 | 75 73 65 72 27 73 20 68 | in the |user's h|
|00002380| 6f 6d 65 20 64 69 72 65 | 63 74 6f 72 79 0a 58 6e |ome dire|ctory.Xn|
|00002390| 61 6d 65 64 20 2e 70 6c | 61 6e 2e 20 20 57 68 65 |amed .pl|an. Whe|
|000023a0| 6e 65 76 65 72 20 74 68 | 65 20 46 49 46 4f 20 69 |never th|e FIFO i|
|000023b0| 73 20 61 63 63 65 73 73 | 65 64 2c 20 74 68 65 20 |s access|ed, the |
|000023c0| 6f 75 74 70 75 74 20 6f | 66 20 74 68 65 20 65 78 |output o|f the ex|
|000023d0| 65 63 75 74 61 62 6c 65 | 0a 58 70 72 6f 67 72 61 |ecutable|.Xprogra|
|000023e0| 6d 20 67 6f 65 73 20 74 | 6f 20 74 68 65 20 46 49 |m goes t|o the FI|
|000023f0| 46 4f 2e 20 20 49 74 20 | 61 6c 73 6f 20 77 72 69 |FO. It |also wri|
|00002400| 74 65 73 20 74 68 65 20 | 50 49 44 20 6f 66 20 70 |tes the |PID of p|
|00002410| 6c 61 6e 20 74 6f 20 61 | 20 66 69 6c 65 2c 20 73 |lan to a| file, s|
|00002420| 6f 0a 58 74 68 65 20 70 | 72 6f 63 65 73 73 20 63 |o.Xthe p|rocess c|
|00002430| 61 6e 20 62 65 20 6b 69 | 6c 6c 65 64 20 64 75 72 |an be ki|lled dur|
|00002440| 69 6e 67 20 6c 6f 67 6f | 75 74 2c 20 61 6e 64 20 |ing logo|ut, and |
|00002450| 69 74 20 63 68 65 63 6b | 73 20 66 6f 72 20 74 68 |it check|s for th|
|00002460| 65 20 65 78 69 73 74 65 | 6e 63 65 0a 58 6f 66 20 |e existe|nce.Xof |
|00002470| 74 68 69 73 20 66 69 6c | 65 20 74 6f 20 6d 61 6b |this fil|e to mak|
|00002480| 65 20 73 75 72 65 20 70 | 6c 61 6e 20 69 73 6e 27 |e sure p|lan isn'|
|00002490| 74 20 61 6c 72 65 61 64 | 79 20 72 75 6e 6e 69 6e |t alread|y runnin|
|000024a0| 67 2e 0a 58 2e 53 48 20 | 4f 50 54 49 4f 4e 53 0a |g..X.SH |OPTIONS.|
|000024b0| 58 2e 54 50 0a 58 2e 42 | 20 5c 2d 66 20 66 69 6c |X.TP.X.B| \-f fil|
|000024c0| 65 5f 6e 61 6d 65 0a 58 | 54 68 65 20 5c 66 42 5c |e_name.X|The \fB\|
|000024d0| 2d 66 20 66 6c 61 67 20 | 63 61 75 73 65 73 20 5c |-f flag |causes \|
|000024e0| 66 49 70 6c 61 6e 5c 66 | 52 20 74 6f 20 73 65 74 |fIplan\f|R to set|
|000024f0| 20 75 70 20 74 68 65 20 | 73 70 65 63 69 66 69 65 | up the |specifie|
|00002500| 64 20 5c 66 42 66 69 6c | 65 5f 6e 61 6d 65 5c 66 |d \fBfil|e_name\f|
|00002510| 52 0a 58 61 73 20 61 20 | 46 49 46 4f 20 72 61 74 |R.Xas a |FIFO rat|
|00002520| 68 65 72 20 74 68 61 6e | 20 74 68 65 20 64 65 66 |her than| the def|
|00002530| 61 75 6c 74 20 5c 66 42 | 24 48 4f 4d 45 2f 2e 70 |ault \fB|$HOME/.p|
|00002540| 6c 61 6e 5c 66 52 2e 0a | 58 2e 50 50 0a 58 53 6f |lan\fR..|X.PP.XSo|
|00002550| 6d 65 20 73 61 6d 70 6c | 65 20 75 73 65 73 20 6f |me sampl|e uses o|
|00002560| 66 20 5c 66 49 70 6c 61 | 6e 5c 66 52 20 77 6f 75 |f \fIpla|n\fR wou|
|00002570| 6c 64 20 62 65 3a 0a 58 | 2e 54 50 0a 58 2e 42 20 |ld be:.X|.TP.X.B |
|00002580| 70 6c 61 6e 20 2f 75 73 | 72 2f 67 61 6d 65 73 2f |plan /us|r/games/|
|00002590| 66 6f 72 74 75 6e 65 20 | 26 0a 58 54 68 69 73 20 |fortune |&.XThis |
|000025a0| 77 69 6c 6c 20 64 69 73 | 70 6c 61 79 20 61 20 72 |will dis|play a r|
|000025b0| 61 6e 64 6f 6d 6c 79 20 | 73 65 6c 65 63 74 65 64 |andomly |selected|
|000025c0| 20 66 6f 72 74 75 6e 65 | 20 61 73 20 74 68 65 20 | fortune| as the |
|000025d0| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 0a 58 79 6f 75 |contents| of.Xyou|
|000025e0| 72 20 2e 70 6c 61 6e 20 | 66 69 6c 65 20 77 68 65 |r .plan |file whe|
|000025f0| 6e 65 76 65 72 20 79 6f | 75 20 61 72 65 20 66 69 |never yo|u are fi|
|00002600| 6e 67 65 72 65 64 2e 0a | 58 2e 54 50 0a 58 2e 42 |ngered..|X.TP.X.B|
|00002610| 20 70 6c 61 6e 20 2d 66 | 20 7e 2f 2e 73 69 67 6e | plan -f| ~/.sign|
|00002620| 61 74 75 72 65 20 7e 2f | 62 69 6e 2f 67 65 6e 73 |ature ~/|bin/gens|
|00002630| 69 67 20 26 0a 58 54 68 | 69 73 20 77 69 6c 6c 20 |ig &.XTh|is will |
|00002640| 72 75 6e 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 |run the |program |
|00002650| 67 65 6e 73 69 67 20 77 | 68 65 6e 65 76 65 72 20 |gensig w|henever |
|00002660| 79 6f 75 72 20 2e 73 69 | 67 6e 61 74 75 72 65 20 |your .si|gnature |
|00002670| 66 69 6c 65 20 69 73 20 | 61 63 63 65 73 73 65 64 |file is |accessed|
|00002680| 2c 0a 58 61 6c 6c 6f 77 | 69 6e 67 20 79 6f 75 20 |,.Xallow|ing you |
|00002690| 74 6f 20 63 68 61 6e 67 | 65 20 79 6f 75 72 20 2e |to chang|e your .|
|000026a0| 73 69 67 6e 61 74 75 72 | 65 20 77 68 65 6e 65 76 |signatur|e whenev|
|000026b0| 65 72 20 79 6f 75 20 70 | 6f 73 74 2e 0a 58 2e 54 |er you p|ost..X.T|
|000026c0| 50 0a 58 2e 42 20 70 6c | 61 6e 20 7e 2f 62 69 6e |P.X.B pl|an ~/bin|
|000026d0| 2f 6c 6f 67 66 69 6e 67 | 65 72 20 26 0a 58 54 68 |/logfing|er &.XTh|
|000026e0| 69 73 20 77 69 6c 6c 20 | 72 75 6e 20 74 68 65 20 |is will |run the |
|000026f0| 70 72 6f 67 72 61 6d 20 | 6c 6f 67 66 69 6e 67 65 |program |logfinge|
|00002700| 72 20 77 68 65 6e 65 76 | 65 72 20 79 6f 75 72 20 |r whenev|er your |
|00002710| 2e 70 6c 61 6e 20 66 69 | 6c 65 20 69 73 20 61 63 |.plan fi|le is ac|
|00002720| 63 65 73 73 65 64 2c 0a | 58 61 6e 64 20 79 6f 75 |cessed,.|Xand you|
|00002730| 20 63 61 6e 20 6c 6f 67 | 20 61 6c 6c 20 69 6e 73 | can log| all ins|
|00002740| 74 61 6e 63 65 73 20 6f | 66 20 70 65 6f 70 6c 65 |tances o|f people|
|00002750| 20 66 69 6e 67 65 72 69 | 6e 67 20 79 6f 75 2e 0a | fingeri|ng you..|
|00002760| 58 2e 53 48 20 41 55 54 | 48 4f 52 0a 58 54 6f 6e |X.SH AUT|HOR.XTon|
|00002770| 79 20 52 65 6d 73 20 28 | 72 65 6d 62 6f 40 75 6e |y Rems (|rembo@un|
|00002780| 69 73 6f 66 74 2e 63 6f | 6d 29 0a 58 2e 50 50 0a |isoft.co|m).X.PP.|
|00002790| 58 4d 6f 64 69 66 69 63 | 61 74 69 6f 6e 73 20 62 |XModific|ations b|
|000027a0| 79 20 47 65 6f 66 66 20 | 4c 6f 6b 65 72 20 28 67 |y Geoff |Loker (g|
|000027b0| 65 6f 66 66 40 6d 64 6d | 73 2e 6d 6f 6f 72 65 2e |eoff@mdm|s.moore.|
|000027c0| 63 6f 6d 29 0a 58 4d 6f | 72 65 20 6d 6f 64 69 66 |com).XMo|re modif|
|000027d0| 69 63 61 74 69 6f 6e 73 | 20 62 79 20 4b 61 72 65 |ications| by Kare|
|000027e0| 6e 20 42 72 75 6e 65 72 | 20 28 6e 61 70 61 6c 6d |n Bruner| (napalm|
|000027f0| 40 75 67 63 73 2e 63 61 | 6c 74 65 63 68 2e 65 64 |@ugcs.ca|ltech.ed|
|00002800| 75 29 0a 58 2e 53 48 20 | 42 55 47 53 0a 58 59 6f |u).X.SH |BUGS.XYo|
|00002810| 75 72 20 73 79 73 74 65 | 6d 20 6d 75 73 74 20 73 |ur syste|m must s|
|00002820| 75 70 70 6f 72 74 20 6e | 61 6d 65 64 20 70 69 70 |upport n|amed pip|
|00002830| 65 73 20 69 6e 20 6f 72 | 64 65 72 20 66 6f 72 20 |es in or|der for |
|00002840| 74 68 69 73 20 74 6f 20 | 77 6f 72 6b 2e 0a 45 4e |this to |work..EN|
|00002850| 44 5f 4f 46 5f 46 49 4c | 45 0a 20 20 69 66 20 74 |D_OF_FIL|E. if t|
|00002860| 65 73 74 20 31 34 39 35 | 20 2d 6e 65 20 60 77 63 |est 1495| -ne `wc|
|00002870| 20 2d 63 20 3c 27 70 6c | 61 6e 2e 31 27 60 3b 20 | -c <'pl|an.1'`; |
|00002880| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00002890| 61 72 3a 20 5c 22 27 70 | 6c 61 6e 2e 31 27 5c 22 |ar: \"'p|lan.1'\"|
|000028a0| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|000028b0| 72 6f 6e 67 20 73 69 7a | 65 21 0a 20 20 66 69 0a |rong siz|e!. fi.|
|000028c0| 20 20 63 68 6d 6f 64 20 | 2b 78 20 27 70 6c 61 6e | chmod |+x 'plan|
|000028d0| 2e 31 27 0a 20 20 23 20 | 65 6e 64 20 6f 66 20 27 |.1'. # |end of '|
|000028e0| 70 6c 61 6e 2e 31 27 0a | 66 69 0a 69 66 20 74 65 |plan.1'.|fi.if te|
|000028f0| 73 74 20 2d 66 20 27 70 | 6c 61 6e 2e 63 27 20 2d |st -f 'p|lan.c' -|
|00002900| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00002910| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00002920| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00002930| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00002940| 66 69 6c 65 20 5c 22 27 | 70 6c 61 6e 2e 63 27 5c |file \"'|plan.c'\|
|00002950| 22 0a 65 6c 73 65 0a 20 | 20 65 63 68 6f 20 73 68 |".else. | echo sh|
|00002960| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|00002970| 22 27 70 6c 61 6e 2e 63 | 27 5c 22 20 5c 28 35 30 |"'plan.c|'\" \(50|
|00002980| 33 34 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |34 chara|cters\).|
|00002990| 20 20 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e | sed "s|/^X//" >|
|000029a0| 27 70 6c 61 6e 2e 63 27 | 20 3c 3c 27 45 4e 44 5f |'plan.c'| <<'END_|
|000029b0| 4f 46 5f 46 49 4c 45 27 | 0a 58 0a 58 2f 2a 09 54 |OF_FILE'|.X.X/*.T|
|000029c0| 48 49 53 20 49 53 20 54 | 48 45 20 55 4e 50 55 42 |HIS IS T|HE UNPUB|
|000029d0| 4c 49 53 48 45 44 20 53 | 4f 55 52 43 45 20 43 4f |LISHED S|OURCE CO|
|000029e0| 44 45 20 4f 46 20 52 45 | 4d 42 4f 09 09 2a 2f 0a |DE OF RE|MBO..*/.|
|000029f0| 58 2f 2a 09 54 68 65 20 | 63 6f 70 79 72 69 67 68 |X/*.The |copyrigh|
|00002a00| 74 20 6e 6f 74 69 63 65 | 20 61 62 6f 76 65 20 64 |t notice| above d|
|00002a10| 6f 65 73 20 6e 6f 74 20 | 65 76 69 64 65 6e 63 65 |oes not |evidence|
|00002a20| 20 61 6e 79 20 20 20 09 | 2a 2f 0a 58 2f 2a 09 61 | any .|*/.X/*.a|
|00002a30| 63 74 75 61 6c 20 6f 72 | 20 69 6e 74 65 6e 64 65 |ctual or| intende|
|00002a40| 64 20 70 75 62 6c 69 63 | 61 74 69 6f 6e 20 6f 66 |d public|ation of|
|00002a50| 20 73 75 63 68 20 73 6f | 75 72 63 65 20 63 6f 64 | such so|urce cod|
|00002a60| 65 2e 09 2a 2f 0a 58 2f | 2a 09 53 6f 2c 20 75 73 |e..*/.X/|*.So, us|
|00002a70| 65 20 69 74 20 69 66 20 | 79 6f 75 20 6c 69 6b 65 |e it if |you like|
|00002a80| 2c 20 62 75 74 20 67 69 | 76 65 20 6d 65 20 63 72 |, but gi|ve me cr|
|00002a90| 65 64 69 74 2e 09 09 2a | 2f 0a 58 0a 58 0a 58 2f |edit...*|/.X.X.X/|
|00002aa0| 2a 20 09 55 73 61 67 65 | 3a 20 70 6c 61 6e 20 5b |* .Usage|: plan [|
|00002ab0| 2d 66 20 66 69 6c 65 5f | 6e 61 6d 65 5d 20 70 72 |-f file_|name] pr|
|00002ac0| 6f 67 72 61 6d 5f 6e 61 | 6d 65 09 09 09 2a 2f 0a |ogram_na|me...*/.|
|00002ad0| 58 0a 58 0a 58 2f 2a 09 | 44 65 73 63 72 69 70 74 |X.X.X/*.|Descript|
|00002ae0| 69 6f 6e 3a 09 09 09 09 | 09 2a 2f 0a 58 0a 58 2f |ion:....|.*/.X.X/|
|00002af0| 2a 20 09 54 68 69 73 20 | 70 72 6f 67 72 61 6d 20 |* .This |program |
|00002b00| 74 61 6b 65 73 20 74 68 | 65 20 66 75 6c 6c 20 70 |takes th|e full p|
|00002b10| 61 74 68 6e 61 6d 65 20 | 6f 66 20 61 6e 09 2a 2f |athname |of an.*/|
|00002b20| 0a 58 2f 2a 20 09 65 78 | 65 63 75 74 61 62 6c 65 |.X/* .ex|ecutable|
|00002b30| 20 61 6e 64 20 72 75 6e | 73 20 69 74 20 6f 6e 20 | and run|s it on |
|00002b40| 61 20 66 69 66 6f 20 69 | 6e 20 74 68 65 20 09 2a |a fifo i|n the .*|
|00002b50| 2f 0a 58 2f 2a 09 75 73 | 65 72 27 73 20 68 6f 6d |/.X/*.us|er's hom|
|00002b60| 65 20 64 69 72 65 63 74 | 6f 72 79 20 6e 61 6d 65 |e direct|ory name|
|00002b70| 64 20 2e 70 6c 61 6e 2e | 20 20 54 68 69 73 09 2a |d .plan.| This.*|
|00002b80| 2f 0a 58 2f 2a 20 09 77 | 61 79 2c 20 77 68 65 6e |/.X/* .w|ay, when|
|00002b90| 20 66 69 6e 67 65 72 20 | 69 73 20 65 78 65 63 75 | finger |is execu|
|00002ba0| 74 65 64 2c 20 74 68 65 | 20 6f 75 74 70 75 74 09 |ted, the| output.|
|00002bb0| 2a 2f 0a 58 2f 2a 20 09 | 6f 66 20 74 68 65 20 70 |*/.X/* .|of the p|
|00002bc0| 72 6f 67 72 61 6d 20 67 | 6f 65 73 20 74 6f 20 74 |rogram g|oes to t|
|00002bd0| 68 65 20 66 69 66 6f 2e | 09 09 2a 2f 0a 58 09 0a |he fifo.|..*/.X..|
|00002be0| 58 2f 2a 09 57 72 69 74 | 74 65 6e 20 62 79 3a 20 |X/*.Writ|ten by: |
|00002bf0| 20 54 6f 6e 79 20 52 65 | 6d 73 20 09 09 09 09 2a | Tony Re|ms ....*|
|00002c00| 2f 0a 58 0a 58 2f 2a 20 | 09 53 65 6e 64 20 62 75 |/.X.X/* |.Send bu|
|00002c10| 67 73 20 61 6e 64 20 66 | 6c 61 6d 65 73 20 74 6f |gs and f|lames to|
|00002c20| 20 2f 64 65 76 2f 6e 75 | 6c 6c 20 6f 72 20 09 09 | /dev/nu|ll or ..|
|00002c30| 2a 2f 0a 58 2f 2a 20 09 | 72 65 6d 62 6f 40 75 6e |*/.X/* .|rembo@un|
|00002c40| 69 73 6f 66 74 2e 63 6f | 6d 20 09 09 09 09 2a 2f |isoft.co|m ....*/|
|00002c50| 0a 58 0a 58 2f 2a 09 4d | 6f 64 69 66 69 63 61 74 |.X.X/*.M|odificat|
|00002c60| 69 6f 6e 73 3a 09 09 09 | 09 09 2a 2f 0a 58 0a 58 |ions:...|..*/.X.X|
|00002c70| 2f 2a 09 53 65 70 74 65 | 6d 62 65 72 20 31 39 39 |/*.Septe|mber 199|
|00002c80| 31 09 09 09 09 09 2a 2f | 0a 58 2f 2a 20 20 20 20 |1.....*/|.X/* |
|00002c90| 20 20 20 20 20 20 20 28 | 62 79 20 47 65 6f 66 66 | (|by Geoff|
|00002ca0| 20 4c 6f 6b 65 72 20 67 | 65 6f 66 66 40 6d 64 6d | Loker g|eoff@mdm|
|00002cb0| 73 2e 6d 6f 6f 72 65 2e | 63 6f 6d 29 09 2a 2f 0a |s.moore.|com).*/.|
|00002cc0| 58 2f 2a 09 4d 6f 64 69 | 66 69 65 64 20 74 68 65 |X/*.Modi|fied the|
|00002cd0| 20 70 72 6f 67 72 61 6d | 20 73 6f 20 74 68 61 74 | program| so that|
|00002ce0| 20 74 68 65 20 70 61 74 | 68 20 74 6f 20 74 68 65 | the pat|h to the|
|00002cf0| 20 20 20 20 2a 2f 0a 58 | 2f 2a 09 2e 70 6c 61 6e | */.X|/*..plan|
|00002d00| 20 66 69 6c 65 20 69 73 | 20 6e 6f 74 20 68 61 72 | file is| not har|
|00002d10| 64 63 6f 64 65 64 20 69 | 6e 2e 20 20 4e 6f 77 20 |dcoded i|n. Now |
|00002d20| 61 6e 79 20 6e 75 6d 62 | 65 72 09 2a 2f 0a 58 2f |any numb|er.*/.X/|
|00002d30| 2a 09 6f 66 20 75 73 65 | 72 73 20 63 61 6e 20 75 |*.of use|rs can u|
|00002d40| 73 65 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 61 |se the p|rogram a|
|00002d50| 74 20 74 68 65 20 73 61 | 6d 65 20 74 69 6d 65 2e |t the sa|me time.|
|00002d60| 09 2a 2f 0a 58 2f 2a 09 | 49 20 61 6c 73 6f 20 6d |.*/.X/*.|I also m|
|00002d70| 6f 64 69 66 69 65 64 20 | 74 68 65 20 70 72 6f 67 |odified |the prog|
|00002d80| 72 61 6d 20 74 6f 20 75 | 73 65 20 61 6e 20 6f 70 |ram to u|se an op|
|00002d90| 74 69 6f 6e 61 6c 09 2a | 2f 0a 58 2f 2a 09 61 72 |tional.*|/.X/*.ar|
|00002da0| 67 75 6d 65 6e 74 20 74 | 6f 20 73 70 65 63 69 66 |gument t|o specif|
|00002db0| 79 20 77 68 69 63 68 20 | 66 69 6c 65 20 74 6f 20 |y which |file to |
|00002dc0| 75 73 65 2e 20 20 54 68 | 65 09 2a 2f 0a 58 2f 2a |use. Th|e.*/.X/*|
|00002dd0| 09 64 65 66 61 75 6c 74 | 20 66 69 6c 65 20 75 73 |.default| file us|
|00002de0| 65 64 20 69 73 20 73 74 | 69 6c 6c 20 74 68 65 20 |ed is st|ill the |
|00002df0| 75 73 65 72 27 73 20 2e | 70 6c 61 6e 2c 09 2a 2f |user's .|plan,.*/|
|00002e00| 0a 58 2f 2a 09 62 75 74 | 20 74 68 69 73 20 63 61 |.X/*.but| this ca|
|00002e10| 6e 20 6e 6f 77 20 61 6c | 73 6f 20 62 65 20 75 73 |n now al|so be us|
|00002e20| 65 64 20 74 6f 20 73 65 | 74 20 75 70 09 09 2a 2f |ed to se|t up..*/|
|00002e30| 0a 58 2f 2a 09 2e 73 69 | 67 6e 61 74 75 72 65 73 |.X/*..si|gnatures|
|00002e40| 20 6f 72 20 61 6e 79 20 | 6f 74 68 65 72 20 66 69 | or any |other fi|
|00002e50| 6c 65 20 74 68 65 20 75 | 73 65 72 20 77 61 6e 74 |le the u|ser want|
|00002e60| 73 2e 09 2a 2f 0a 58 0a | 58 2f 2a 09 45 76 65 6e |s..*/.X.|X/*.Even|
|00002e70| 20 6d 6f 72 65 20 6d 6f | 64 69 66 69 63 61 74 69 | more mo|dificati|
|00002e80| 6f 6e 73 09 09 09 09 2a | 2f 0a 58 0a 58 2f 2a 09 |ons....*|/.X.X/*.|
|00002e90| 4a 61 6e 75 61 72 79 20 | 31 39 39 32 09 09 09 09 |January |1992....|
|00002ea0| 09 2a 2f 0a 58 2f 2a 09 | 20 20 20 20 20 20 28 62 |.*/.X/*.| (b|
|00002eb0| 79 20 4b 61 72 65 6e 20 | 42 72 75 6e 65 72 20 6e |y Karen |Bruner n|
|00002ec0| 61 70 61 6c 6d 40 75 67 | 63 73 2e 63 61 6c 74 65 |apalm@ug|cs.calte|
|00002ed0| 63 68 2e 65 64 75 29 20 | 2a 2f 0a 58 2f 2a 09 41 |ch.edu) |*/.X/*.A|
|00002ee0| 64 64 65 64 20 70 69 64 | 5f 64 65 61 6c 20 66 75 |dded pid|_deal fu|
|00002ef0| 6e 63 74 69 6f 6e 2c 20 | 73 6f 20 70 65 6f 70 6c |nction, |so peopl|
|00002f00| 65 20 63 61 6e 20 73 74 | 69 63 6b 09 2a 2f 0a 58 |e can st|ick.*/.X|
|00002f10| 2f 2a 20 09 74 68 65 20 | 70 72 6f 67 72 61 6d 20 |/* .the |program |
|00002f20| 69 6e 20 74 68 65 69 72 | 20 2e 6c 6f 67 69 6e 2c |in their| .login,|
|00002f30| 20 61 6e 64 20 74 68 65 | 6e 20 68 61 76 65 20 69 | and the|n have i|
|00002f40| 74 09 2a 2f 0a 58 2f 2a | 09 6b 69 6c 6c 65 64 20 |t.*/.X/*|.killed |
|00002f50| 62 79 20 74 68 65 69 72 | 20 2e 6c 6f 67 6f 75 74 |by their| .logout|
|00002f60| 2e 20 20 50 72 6f 67 72 | 61 6d 20 77 69 6c 6c 20 |. Progr|am will |
|00002f70| 6e 6f 74 09 2a 2f 0a 58 | 2f 2a 09 72 75 6e 20 69 |not.*/.X|/*.run i|
|00002f80| 66 20 61 20 2e 70 6c 61 | 6e 70 69 64 20 66 69 6c |f a .pla|npid fil|
|00002f90| 65 2c 20 74 68 65 20 66 | 69 6c 65 20 77 69 74 68 |e, the f|ile with|
|00002fa0| 20 74 68 65 20 50 49 44 | 09 2a 2f 0a 58 2f 2a 09 | the PID|.*/.X/*.|
|00002fb0| 66 6f 72 20 70 6c 61 6e | 2c 20 61 6c 72 65 61 64 |for plan|, alread|
|00002fc0| 79 20 65 78 69 73 74 73 | 20 69 6e 20 74 68 65 20 |y exists| in the |
|00002fd0| 75 73 65 72 27 73 20 68 | 6f 6d 65 09 2a 2f 0a 58 |user's h|ome.*/.X|
|00002fe0| 2f 2a 09 64 69 72 65 63 | 74 6f 72 79 2e 09 09 09 |/*.direc|tory....|
|00002ff0| 09 09 2a 2f 0a 58 0a 58 | 23 69 6e 63 6c 75 64 65 |..*/.X.X|#include|
|00003000| 20 3c 73 79 73 2f 74 79 | 70 65 73 2e 68 3e 0a 58 | <sys/ty|pes.h>.X|
|00003010| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 66 69 |#include| <sys/fi|
|00003020| 6c 65 2e 68 3e 0a 58 23 | 69 6e 63 6c 75 64 65 20 |le.h>.X#|include |
|00003030| 3c 73 74 64 69 6f 2e 68 | 3e 0a 58 23 69 6e 63 6c |<stdio.h|>.X#incl|
|00003040| 75 64 65 20 3c 66 63 6e | 74 6c 2e 68 3e 0a 58 23 |ude <fcn|tl.h>.X#|
|00003050| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 73 74 61 |include |<sys/sta|
|00003060| 74 2e 68 3e 0a 58 23 69 | 6e 63 6c 75 64 65 20 3c |t.h>.X#i|nclude <|
|00003070| 73 69 67 6e 61 6c 2e 68 | 3e 0a 58 23 69 6e 63 6c |signal.h|>.X#incl|
|00003080| 75 64 65 20 3c 73 74 72 | 69 6e 67 2e 68 3e 0a 58 |ude <str|ing.h>.X|
|00003090| 0a 58 2f 2a 20 44 65 66 | 69 6e 65 73 20 2a 2f 0a |.X/* Def|ines */.|
|000030a0| 58 23 64 65 66 69 6e 65 | 20 50 45 52 4d 53 20 30 |X#define| PERMS 0|
|000030b0| 36 36 36 0a 58 23 64 65 | 66 69 6e 65 20 55 53 41 |666.X#de|fine USA|
|000030c0| 47 45 20 22 25 73 20 5b | 2d 66 20 66 69 6c 65 5f |GE "%s [|-f file_|
|000030d0| 6e 61 6d 65 5d 20 70 72 | 6f 67 72 61 6d 5f 6e 61 |name] pr|ogram_na|
|000030e0| 6d 65 5c 6e 22 0a 58 0a | 58 2f 2a 20 46 75 6e 63 |me\n".X.|X/* Func|
|000030f0| 74 69 6f 6e 20 70 72 6f | 74 6f 74 79 70 65 73 20 |tion pro|totypes |
|00003100| 2a 2f 0a 58 76 6f 69 64 | 20 73 69 67 5f 68 61 6e |*/.Xvoid| sig_han|
|00003110| 64 6c 65 72 28 29 3b 0a | 58 69 6e 74 20 70 69 64 |dler();.|Xint pid|
|00003120| 5f 64 65 61 6c 28 29 3b | 09 0a 58 0a 58 6d 61 69 |_deal();|..X.Xmai|
|00003130| 6e 20 28 61 72 67 63 2c | 20 61 72 67 76 29 0a 58 |n (argc,| argv).X|
|00003140| 69 6e 74 20 61 72 67 63 | 3b 0a 58 63 68 61 72 20 |int argc|;.Xchar |
|00003150| 2a 61 72 67 76 5b 5d 3b | 0a 58 7b 0a 58 20 20 20 |*argv[];|.X{.X |
|00003160| 20 20 20 20 20 69 6e 74 | 20 63 2c 20 66 66 6c 67 | int| c, fflg|
|00003170| 3b 0a 58 09 63 68 61 72 | 20 2a 66 69 6c 65 3b 0a |;.X.char| *file;.|
|00003180| 58 20 20 20 20 20 20 20 | 20 65 78 74 65 72 6e 20 |X | extern |
|00003190| 63 68 61 72 20 2a 6f 70 | 74 61 72 67 3b 0a 58 09 |char *op|targ;.X.|
|000031a0| 65 78 74 65 72 6e 20 69 | 6e 74 20 6f 70 74 69 6e |extern i|nt optin|
|000031b0| 64 3b 0a 58 09 69 6e 74 | 20 66 64 3b 0a 58 09 69 |d;.X.int| fd;.X.i|
|000031c0| 6e 74 20 70 69 64 3b 0a | 58 09 69 6e 74 20 73 74 |nt pid;.|X.int st|
|000031d0| 61 74 75 73 3b 0a 58 09 | 63 68 61 72 20 2a 67 65 |atus;.X.|char *ge|
|000031e0| 74 65 6e 76 28 29 2c 20 | 2a 68 6f 6d 65 2c 20 70 |tenv(), |*home, p|
|000031f0| 6c 61 6e 5b 32 35 36 5d | 2c 20 2a 73 74 72 63 61 |lan[256]|, *strca|
|00003200| 74 28 29 2c 20 2a 73 74 | 72 63 70 79 28 29 3b 0a |t(), *st|rcpy();.|
|00003210| 58 09 69 6e 74 20 70 69 | 64 5f 63 68 65 63 6b 3b |X.int pi|d_check;|
|00003220| 0a 58 09 0a 58 09 66 66 | 6c 67 20 3d 20 63 20 3d |.X..X.ff|lg = c =|
|00003230| 20 30 3b 0a 58 09 77 68 | 69 6c 65 20 28 28 63 20 | 0;.X.wh|ile ((c |
|00003240| 3d 20 67 65 74 6f 70 74 | 28 61 72 67 63 2c 20 61 |= getopt|(argc, a|
|00003250| 72 67 76 2c 20 22 66 3a | 22 29 29 20 21 3d 20 45 |rgv, "f:|")) != E|
|00003260| 4f 46 29 20 7b 0a 58 09 | 20 20 66 69 6c 65 20 3d |OF) {.X.| file =|
|00003270| 20 6f 70 74 61 72 67 3b | 0a 58 09 20 20 66 66 6c | optarg;|.X. ffl|
|00003280| 67 2b 2b 3b 0a 58 09 7d | 0a 58 0a 58 2f 2a 20 43 |g++;.X.}|.X.X/* C|
|00003290| 6f 6d 6d 65 6e 74 20 6f | 75 74 20 74 68 65 20 6e |omment o|ut the n|
|000032a0| 65 78 74 20 6c 69 6e 65 | 20 69 66 20 79 6f 75 20 |ext line| if you |
|000032b0| 64 6f 6e 27 74 20 77 61 | 6e 74 20 74 6f 20 68 61 |don't wa|nt to ha|
|000032c0| 76 65 20 50 49 44 20 72 | 65 63 6f 72 64 65 64 0a |ve PID r|ecorded.|
|000032d0| 58 20 20 20 74 6f 20 66 | 69 6c 65 20 2e 70 6c 61 |X to f|ile .pla|
|000032e0| 6e 70 69 64 20 2a 2f 0a | 58 0a 58 09 70 69 64 5f |npid */.|X.X.pid_|
|000032f0| 63 68 65 63 6b 20 3d 20 | 70 69 64 5f 64 65 61 6c |check = |pid_deal|
|00003300| 28 29 3b 20 2f 2a 20 63 | 68 65 63 6b 20 66 6f 72 |(); /* c|heck for|
|00003310| 20 2e 70 6c 61 6e 70 69 | 64 2c 20 69 66 20 6e 6f | .planpi|d, if no|
|00003320| 6e 65 2c 20 77 72 69 74 | 65 0a 58 09 09 09 09 20 |ne, writ|e.X.... |
|00003330| 20 20 2e 70 6c 61 6e 70 | 69 64 20 2a 2f 0a 58 0a | .planp|id */.X.|
|00003340| 58 2f 2a 20 55 6e 63 6f | 6d 6d 65 6e 74 20 6e 65 |X/* Unco|mment ne|
|00003350| 78 74 20 6c 69 6e 65 20 | 69 66 20 79 6f 75 20 63 |xt line |if you c|
|00003360| 6f 6d 6d 65 6e 74 65 64 | 20 6f 75 74 20 70 72 65 |ommented| out pre|
|00003370| 76 69 6f 75 73 20 6c 69 | 6e 65 20 2a 2f 0a 58 0a |vious li|ne */.X.|
|00003380| 58 2f 2a 20 20 70 69 64 | 5f 63 68 65 63 6b 20 3d |X/* pid|_check =|
|00003390| 20 31 3b 20 2a 2f 0a 58 | 0a 58 20 20 69 66 20 28 | 1; */.X|.X if (|
|000033a0| 70 69 64 5f 63 68 65 63 | 6b 20 3d 3d 20 31 29 20 |pid_chec|k == 1) |
|000033b0| 20 2f 2a 20 65 78 65 63 | 75 74 65 20 72 65 6d 61 | /* exec|ute rema|
|000033c0| 69 6e 69 6e 67 20 70 61 | 72 74 20 6f 66 20 70 72 |ining pa|rt of pr|
|000033d0| 6f 67 72 61 6d 20 69 66 | 20 2e 70 6c 61 6e 70 69 |ogram if| .planpi|
|000033e0| 64 0a 58 09 09 09 20 20 | 64 6f 65 73 20 6e 6f 74 |d.X... |does not|
|000033f0| 20 65 78 69 73 74 2c 20 | 69 2e 65 2e 2c 20 6e 6f | exist, |i.e., no|
|00003400| 20 6f 74 68 65 72 20 70 | 6c 61 6e 20 70 72 6f 63 | other p|lan proc|
|00003410| 65 73 73 20 69 73 0a 58 | 09 09 09 20 20 72 75 6e |ess is.X|... run|
|00003420| 6e 69 6e 67 20 2a 2f 0a | 58 20 20 20 20 7b 0a 58 |ning */.|X {.X|
|00003430| 09 69 66 20 28 66 66 6c | 67 29 0a 58 09 20 20 73 |.if (ffl|g).X. s|
|00003440| 74 72 63 70 79 28 70 6c | 61 6e 2c 20 66 69 6c 65 |trcpy(pl|an, file|
|00003450| 29 3b 0a 58 09 65 6c 73 | 65 20 7b 0a 58 09 20 20 |);.X.els|e {.X. |
|00003460| 68 6f 6d 65 20 3d 20 67 | 65 74 65 6e 76 28 22 48 |home = g|etenv("H|
|00003470| 4f 4d 45 22 29 3b 0a 58 | 09 20 20 73 74 72 63 70 |OME");.X|. strcp|
|00003480| 79 28 70 6c 61 6e 2c 20 | 68 6f 6d 65 29 3b 0a 58 |y(plan, |home);.X|
|00003490| 09 20 20 73 74 72 63 61 | 74 28 70 6c 61 6e 2c 20 |. strca|t(plan, |
|000034a0| 22 2f 2e 70 6c 61 6e 22 | 29 3b 0a 58 09 7d 0a 58 |"/.plan"|);.X.}.X|
|000034b0| 2f 2a 09 73 65 74 65 6e | 76 28 22 50 4c 41 4e 22 |/*.seten|v("PLAN"|
|000034c0| 2c 20 70 6c 61 6e 2c 20 | 31 29 3b 20 2a 2f 0a 58 |, plan, |1); */.X|
|000034d0| 0a 58 09 69 66 20 28 20 | 61 72 67 63 20 21 3d 20 |.X.if ( |argc != |
|000034e0| 6f 70 74 69 6e 64 20 2b | 20 31 20 29 20 7b 0a 58 |optind +| 1 ) {.X|
|000034f0| 09 09 66 70 72 69 6e 74 | 66 20 28 73 74 64 65 72 |..fprint|f (stder|
|00003500| 72 2c 20 55 53 41 47 45 | 2c 20 61 72 67 76 5b 30 |r, USAGE|, argv[0|
|00003510| 5d 29 3b 0a 58 09 09 65 | 78 69 74 28 31 29 3b 0a |]);.X..e|xit(1);.|
|00003520| 58 09 7d 20 20 2f 2a 20 | 69 66 20 2a 2f 0a 58 0a |X.} /* |if */.X.|
|00003530| 58 2f 2a 20 43 61 74 63 | 68 20 69 6e 74 65 72 72 |X/* Catc|h interr|
|00003540| 75 70 74 73 20 66 6f 72 | 20 63 6c 65 61 6e 75 70 |upts for| cleanup|
|00003550| 20 2a 2f 0a 58 09 73 69 | 67 6e 61 6c 28 53 49 47 | */.X.si|gnal(SIG|
|00003560| 54 45 52 4d 2c 20 73 69 | 67 5f 68 61 6e 64 6c 65 |TERM, si|g_handle|
|00003570| 72 29 3b 0a 58 09 73 69 | 67 6e 61 6c 28 53 49 47 |r);.X.si|gnal(SIG|
|00003580| 49 4e 54 2c 20 73 69 67 | 5f 68 61 6e 64 6c 65 72 |INT, sig|_handler|
|00003590| 29 3b 0a 58 09 73 69 67 | 6e 61 6c 28 53 49 47 48 |);.X.sig|nal(SIGH|
|000035a0| 55 50 2c 20 73 69 67 5f | 68 61 6e 64 6c 65 72 29 |UP, sig_|handler)|
|000035b0| 3b 0a 58 0a 58 09 75 6e | 6c 69 6e 6b 20 28 70 6c |;.X.X.un|link (pl|
|000035c0| 61 6e 29 3b 0a 58 0a 58 | 2f 2a 20 4d 61 6b 65 20 |an);.X.X|/* Make |
|000035d0| 74 68 65 20 66 69 66 6f | 20 2a 2f 0a 58 09 69 66 |the fifo| */.X.if|
|000035e0| 20 28 28 6d 6b 6e 6f 64 | 28 70 6c 61 6e 2c 20 53 | ((mknod|(plan, S|
|000035f0| 5f 49 46 49 46 4f 20 7c | 20 50 45 52 4d 53 2c 20 |_IFIFO || PERMS, |
|00003600| 30 29 29 20 3c 20 30 20 | 29 20 7b 0a 58 09 09 70 |0)) < 0 |) {.X..p|
|00003610| 65 72 72 6f 72 28 22 6d | 6b 6e 6f 64 22 29 3b 0a |error("m|knod");.|
|00003620| 58 09 09 65 78 69 74 28 | 32 29 3b 0a 58 09 7d 20 |X..exit(|2);.X.} |
|00003630| 20 2f 2a 20 69 66 20 2a | 2f 0a 58 0a 58 09 77 68 | /* if *|/.X.X.wh|
|00003640| 69 6c 65 20 28 31 29 20 | 7b 0a 58 09 09 69 66 20 |ile (1) |{.X..if |
|00003650| 28 28 66 64 20 3d 20 6f | 70 65 6e 28 70 6c 61 6e |((fd = o|pen(plan|
|00003660| 2c 20 4f 5f 57 52 4f 4e | 4c 59 29 29 20 3c 20 30 |, O_WRON|LY)) < 0|
|00003670| 20 29 20 7b 0a 58 09 09 | 09 70 65 72 72 6f 72 28 | ) {.X..|.perror(|
|00003680| 22 6f 70 65 6e 22 29 3b | 0a 58 09 09 09 65 78 69 |"open");|.X...exi|
|00003690| 74 28 33 29 3b 0a 58 09 | 09 7d 20 2f 2a 20 69 66 |t(3);.X.|.} /* if|
|000036a0| 20 2a 2f 0a 58 0a 58 2f | 2a 20 4f 6e 63 65 20 6f | */.X.X/|* Once o|
|000036b0| 75 72 20 6f 70 65 6e 20 | 63 6f 6d 70 6c 65 74 65 |ur open |complete|
|000036c0| 73 20 77 65 20 6b 6e 6f | 77 20 74 68 61 74 20 73 |s we kno|w that s|
|000036d0| 6f 6d 65 6f 6e 65 20 65 | 6c 73 65 20 68 61 73 0a |omeone e|lse has.|
|000036e0| 58 20 2a 20 6f 70 65 6e | 65 64 20 74 68 65 20 46 |X * open|ed the F|
|000036f0| 49 46 4f 20 66 6f 72 20 | 72 65 61 64 69 6e 67 2c |IFO for |reading,|
|00003700| 20 73 6f 20 77 65 20 63 | 61 6e 20 6b 6e 6f 77 20 | so we c|an know |
|00003710| 72 75 6e 20 6f 75 72 20 | 0a 58 20 2a 20 70 72 6f |run our |.X * pro|
|00003720| 67 72 61 6d 20 6f 6e 20 | 69 74 2e 20 20 53 6f 2c |gram on |it. So,|
|00003730| 20 77 65 20 66 6f 72 6b | 2c 20 65 78 65 63 20 6f | we fork|, exec o|
|00003740| 75 72 20 70 72 6f 67 72 | 61 6d 20 61 6e 64 0a 58 |ur progr|am and.X|
|00003750| 20 2a 20 77 61 69 74 20 | 66 6f 72 20 74 68 65 20 | * wait |for the |
|00003760| 63 68 69 6c 64 20 74 6f | 20 63 6f 6d 70 6c 65 74 |child to| complet|
|00003770| 65 2e 0a 58 20 2a 2f 0a | 58 09 09 73 77 69 74 63 |e..X */.|X..switc|
|00003780| 68 20 28 70 69 64 20 3d | 20 66 6f 72 6b 28 29 29 |h (pid =| fork())|
|00003790| 20 7b 0a 58 09 09 09 63 | 61 73 65 20 2d 31 3a 0a | {.X...c|ase -1:.|
|000037a0| 58 09 09 09 09 70 65 72 | 72 6f 72 28 22 66 6f 72 |X....per|ror("for|
|000037b0| 6b 22 29 3b 0a 58 09 09 | 09 09 65 78 69 74 28 34 |k");.X..|..exit(4|
|000037c0| 29 3b 0a 58 09 09 09 09 | 62 72 65 61 6b 3b 0a 58 |);.X....|break;.X|
|000037d0| 09 09 09 63 61 73 65 20 | 30 3a 0a 58 2f 2a 20 49 |...case |0:.X/* I|
|000037e0| 66 20 77 65 27 72 65 20 | 69 6e 20 74 68 65 20 63 |f we're |in the c|
|000037f0| 68 69 6c 64 2c 20 77 65 | 20 63 6f 70 79 20 6f 75 |hild, we| copy ou|
|00003800| 72 20 66 69 66 6f 20 74 | 6f 20 73 74 64 6f 75 74 |r fifo t|o stdout|
|00003810| 20 2a 2f 0a 58 2f 2a 20 | 61 6e 64 20 65 78 65 63 | */.X/* |and exec|
|00003820| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 67 69 76 | the pro|gram giv|
|00003830| 65 6e 20 2a 2f 0a 58 09 | 09 09 09 64 75 70 32 28 |en */.X.|...dup2(|
|00003840| 66 64 2c 20 31 29 3b 0a | 58 09 09 09 09 65 78 65 |fd, 1);.|X....exe|
|00003850| 63 6c 70 28 61 72 67 76 | 5b 6f 70 74 69 6e 64 5d |clp(argv|[optind]|
|00003860| 2c 61 72 67 76 5b 6f 70 | 74 69 6e 64 5d 2c 28 76 |,argv[op|tind],(v|
|00003870| 6f 69 64 20 2a 29 4e 55 | 4c 4c 29 3b 0a 58 09 09 |oid *)NU|LL);.X..|
|00003880| 09 09 70 65 72 72 6f 72 | 28 22 63 68 69 6c 64 20 |..perror|("child |
|00003890| 72 65 74 75 72 6e 65 64 | 22 29 3b 0a 58 09 09 09 |returned|");.X...|
|000038a0| 09 65 78 69 74 28 35 29 | 3b 0a 58 09 09 09 09 62 |.exit(5)|;.X....b|
|000038b0| 72 65 61 6b 3b 0a 58 09 | 09 09 64 65 66 61 75 6c |reak;.X.|..defaul|
|000038c0| 74 3a 0a 58 2f 2a 20 49 | 66 20 77 65 27 72 65 20 |t:.X/* I|f we're |
|000038d0| 69 6e 20 74 68 65 20 70 | 61 72 65 6e 74 2c 20 77 |in the p|arent, w|
|000038e0| 65 20 63 6c 6f 73 65 20 | 74 68 65 20 70 69 70 65 |e close |the pipe|
|000038f0| 20 61 6e 64 20 77 61 69 | 74 20 2a 2f 0a 58 09 09 | and wai|t */.X..|
|00003900| 09 09 63 6c 6f 73 65 28 | 66 64 29 3b 0a 58 09 09 |..close(|fd);.X..|
|00003910| 09 09 77 68 69 6c 65 20 | 28 77 61 69 74 28 26 73 |..while |(wait(&s|
|00003920| 74 61 74 75 73 29 20 21 | 3d 20 70 69 64 29 0a 58 |tatus) !|= pid).X|
|00003930| 09 09 09 09 09 3b 0a 58 | 09 09 09 09 62 72 65 61 |.....;.X|....brea|
|00003940| 6b 3b 0a 58 09 09 7d 20 | 2f 2a 20 73 77 69 74 63 |k;.X..} |/* switc|
|00003950| 68 20 2a 2f 0a 58 09 09 | 73 6c 65 65 70 28 32 29 |h */.X..|sleep(2)|
|00003960| 3b 0a 58 09 09 63 6c 6f | 73 65 28 66 64 29 3b 0a |;.X..clo|se(fd);.|
|00003970| 58 09 7d 20 2f 2a 20 77 | 68 69 6c 65 20 2a 2f 0a |X.} /* w|hile */.|
|00003980| 58 20 20 20 20 7d 20 20 | 2f 2a 20 65 6e 64 20 6f |X } |/* end o|
|00003990| 66 20 6d 79 20 69 66 20 | 28 70 69 64 5f 63 68 65 |f my if |(pid_che|
|000039a0| 63 6b 2e 2e 2e 20 2a 2f | 0a 58 0a 58 20 20 65 6c |ck... */|.X.X el|
|000039b0| 73 65 0a 58 20 20 20 20 | 70 72 69 6e 74 66 28 22 |se.X |printf("|
|000039c0| 70 6c 61 6e 20 61 6c 72 | 65 61 64 79 20 72 75 6e |plan alr|eady run|
|000039d0| 6e 69 6e 67 5c 6e 22 29 | 3b 0a 58 0a 58 7d 20 2f |ning\n")|;.X.X} /|
|000039e0| 2a 20 6d 61 69 6e 20 2a | 2f 0a 58 0a 58 76 6f 69 |* main *|/.X.Xvoi|
|000039f0| 64 20 73 69 67 5f 68 61 | 6e 64 6c 65 72 28 29 20 |d sig_ha|ndler() |
|00003a00| 20 2f 2a 20 63 6c 65 61 | 6e 75 70 20 2a 2f 0a 58 | /* clea|nup */.X|
|00003a10| 7b 0a 58 09 63 68 61 72 | 20 2a 70 6c 61 6e 2c 20 |{.X.char| *plan, |
|00003a20| 2a 67 65 74 65 6e 76 28 | 29 3b 0a 58 09 0a 58 09 |*getenv(|);.X..X.|
|00003a30| 70 6c 61 6e 20 3d 20 67 | 65 74 65 6e 76 28 22 50 |plan = g|etenv("P|
|00003a40| 4c 41 4e 22 29 3b 0a 58 | 0a 58 09 75 6e 6c 69 6e |LAN");.X|.X.unlin|
|00003a50| 6b 28 70 6c 61 6e 29 3b | 0a 58 09 65 78 69 74 28 |k(plan);|.X.exit(|
|00003a60| 30 29 3b 0a 58 7d 0a 58 | 0a 58 69 6e 74 20 70 69 |0);.X}.X|.Xint pi|
|00003a70| 64 5f 64 65 61 6c 28 29 | 09 2f 2a 20 66 75 6e 63 |d_deal()|./* func|
|00003a80| 74 69 6f 6e 20 66 6f 72 | 20 72 65 63 6f 72 64 69 |tion for| recordi|
|00003a90| 6e 67 20 70 69 64 20 61 | 6e 64 20 6d 61 6b 69 6e |ng pid a|nd makin|
|00003aa0| 67 20 73 75 72 65 20 70 | 72 6f 63 65 73 73 0a 58 |g sure p|rocess.X|
|00003ab0| 09 09 20 20 20 69 73 6e | 27 74 20 61 6c 72 65 61 |.. isn|'t alrea|
|00003ac0| 64 79 20 72 75 6e 6e 69 | 6e 67 20 2a 2f 0a 58 7b |dy runni|ng */.X{|
|00003ad0| 0a 58 20 20 63 68 61 72 | 20 73 61 76 65 70 69 64 |.X char| savepid|
|00003ae0| 5b 31 30 30 5d 3b 09 2f | 2a 20 73 74 72 69 6e 67 |[100];./|* string|
|00003af0| 20 66 6f 72 20 66 69 6c | 65 20 6e 61 6d 65 20 2a | for fil|e name *|
|00003b00| 2f 0a 58 20 20 46 49 4c | 45 20 2a 73 70 3b 0a 58 |/.X FIL|E *sp;.X|
|00003b10| 20 20 69 6e 74 20 63 68 | 65 63 6b 65 72 3b 09 09 | int ch|ecker;..|
|00003b20| 2f 2a 20 72 65 74 75 72 | 6e 20 76 61 6c 75 65 3a |/* retur|n value:|
|00003b30| 20 20 30 20 69 66 20 2e | 70 6c 61 6e 70 69 64 20 | 0 if .|planpid |
|00003b40| 65 78 69 73 74 73 2c 20 | 61 6e 64 0a 58 09 09 09 |exists, |and.X...|
|00003b50| 20 20 20 70 72 6f 67 72 | 61 6d 20 73 68 6f 75 6c | progr|am shoul|
|00003b60| 64 6e 27 74 20 62 65 20 | 72 75 6e 2c 20 31 20 69 |dn't be |run, 1 i|
|00003b70| 66 20 6e 6f 74 20 2a 2f | 0a 58 20 20 63 68 61 72 |f not */|.X char|
|00003b80| 20 2a 68 6f 6d 65 3b 0a | 58 0a 58 20 20 68 6f 6d | *home;.|X.X hom|
|00003b90| 65 20 3d 20 67 65 74 65 | 6e 76 28 22 48 4f 4d 45 |e = gete|nv("HOME|
|00003ba0| 22 29 3b 09 09 2f 2a 20 | 70 75 74 20 73 61 76 65 |");../* |put save|
|00003bb0| 20 6e 61 6d 65 20 66 6f | 72 20 66 69 6c 65 20 2a | name fo|r file *|
|00003bc0| 2f 0a 58 20 20 73 74 72 | 63 70 79 28 73 61 76 65 |/.X str|cpy(save|
|00003bd0| 70 69 64 2c 20 68 6f 6d | 65 29 3b 09 09 2f 2a 20 |pid, hom|e);../* |
|00003be0| 69 6e 20 73 61 76 65 70 | 69 64 20 2a 2f 0a 58 20 |in savep|id */.X |
|00003bf0| 20 73 74 72 63 61 74 28 | 73 61 76 65 70 69 64 2c | strcat(|savepid,|
|00003c00| 20 22 2f 2e 70 6c 61 6e | 70 69 64 22 29 3b 0a 58 | "/.plan|pid");.X|
|00003c10| 0a 58 20 20 69 66 20 28 | 28 73 70 20 3d 20 66 6f |.X if (|(sp = fo|
|00003c20| 70 65 6e 28 73 61 76 65 | 70 69 64 2c 20 22 72 22 |pen(save|pid, "r"|
|00003c30| 29 29 20 21 3d 20 4e 55 | 4c 4c 29 20 2f 2a 20 74 |)) != NU|LL) /* t|
|00003c40| 65 73 74 20 66 6f 72 20 | 65 78 69 73 74 65 6e 63 |est for |existenc|
|00003c50| 65 20 6f 66 20 0a 58 09 | 09 09 09 09 20 20 20 20 |e of .X.|.... |
|00003c60| 20 2e 70 6c 61 6e 70 69 | 64 20 62 79 20 74 72 79 | .planpi|d by try|
|00003c70| 69 6e 67 20 74 6f 20 6f | 70 65 6e 0a 58 09 09 09 |ing to o|pen.X...|
|00003c80| 09 09 20 20 20 20 20 74 | 68 65 20 66 69 6c 65 20 |.. t|he file |
|00003c90| 66 6f 72 20 72 65 61 64 | 69 6e 67 20 2a 2f 0a 58 |for read|ing */.X|
|00003ca0| 20 20 20 20 63 68 65 63 | 6b 65 72 20 3d 20 30 3b | chec|ker = 0;|
|00003cb0| 20 09 2f 2a 20 72 65 74 | 75 72 6e 20 61 20 7a 65 | ./* ret|urn a ze|
|00003cc0| 72 6f 20 69 66 20 72 65 | 61 64 20 77 61 73 20 73 |ro if re|ad was s|
|00003cd0| 75 63 63 65 73 73 66 75 | 6c 2c 20 69 2e 65 2e 2c |uccessfu|l, i.e.,|
|00003ce0| 0a 58 09 09 09 20 20 20 | 66 69 6c 65 20 61 6c 72 |.X... |file alr|
|00003cf0| 65 61 64 79 20 65 78 69 | 73 74 73 20 2a 2f 0a 58 |eady exi|sts */.X|
|00003d00| 09 0a 58 20 20 65 6c 73 | 65 0a 58 20 20 20 20 63 |..X els|e.X c|
|00003d10| 68 65 63 6b 65 72 20 3d | 20 31 3b 09 2f 2a 20 66 |hecker =| 1;./* f|
|00003d20| 69 6c 65 20 64 6f 65 73 | 6e 27 74 20 65 78 69 73 |ile does|n't exis|
|00003d30| 74 2c 20 72 65 74 75 72 | 6e 20 61 20 31 20 74 6f |t, retur|n a 1 to|
|00003d40| 20 65 78 65 63 75 74 65 | 0a 58 09 09 09 20 20 20 | execute|.X... |
|00003d50| 74 68 65 20 72 65 73 74 | 20 6f 66 20 74 68 65 20 |the rest| of the |
|00003d60| 70 72 6f 67 72 61 6d 20 | 2a 2f 0a 58 20 20 66 63 |program |*/.X fc|
|00003d70| 6c 6f 73 65 28 73 70 29 | 3b 0a 58 0a 58 20 20 69 |lose(sp)|;.X.X i|
|00003d80| 66 20 28 63 68 65 63 6b | 65 72 20 3d 3d 20 31 29 |f (check|er == 1)|
|00003d90| 0a 58 20 20 20 20 7b 0a | 58 20 20 20 20 20 20 73 |.X {.|X s|
|00003da0| 70 20 3d 20 66 6f 70 65 | 6e 28 73 61 76 65 70 69 |p = fope|n(savepi|
|00003db0| 64 2c 20 22 77 22 29 3b | 0a 58 20 20 20 20 20 20 |d, "w");|.X |
|00003dc0| 66 70 72 69 6e 74 66 28 | 73 70 2c 20 22 25 64 22 |fprintf(|sp, "%d"|
|00003dd0| 2c 20 67 65 74 70 69 64 | 28 29 29 3b 20 09 2f 2a |, getpid|()); ./*|
|00003de0| 20 70 75 74 73 20 50 49 | 44 20 66 6f 72 20 70 6c | puts PI|D for pl|
|00003df0| 61 6e 20 69 6e 74 6f 20 | 66 69 6c 65 20 2a 2f 0a |an into |file */.|
|00003e00| 58 20 20 20 20 20 20 66 | 63 6c 6f 73 65 28 73 70 |X f|close(sp|
|00003e10| 29 3b 0a 58 20 20 20 20 | 7d 0a 58 0a 58 20 20 72 |);.X |}.X.X r|
|00003e20| 65 74 75 72 6e 20 63 68 | 65 63 6b 65 72 3b 0a 58 |eturn ch|ecker;.X|
|00003e30| 7d 20 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 20 |} .END_O|F_FILE. |
|00003e40| 20 69 66 20 74 65 73 74 | 20 35 30 33 34 20 2d 6e | if test| 5034 -n|
|00003e50| 65 20 60 77 63 20 2d 63 | 20 3c 27 70 6c 61 6e 2e |e `wc -c| <'plan.|
|00003e60| 63 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |c'`; the|n. ec|
|00003e70| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 70 6c 61 6e |ho shar:| \"'plan|
|00003e80| 2e 63 27 5c 22 20 75 6e | 70 61 63 6b 65 64 20 77 |.c'\" un|packed w|
|00003e90| 69 74 68 20 77 72 6f 6e | 67 20 73 69 7a 65 21 0a |ith wron|g size!.|
|00003ea0| 20 20 66 69 0a 20 20 23 | 20 65 6e 64 20 6f 66 20 | fi. #| end of |
|00003eb0| 27 70 6c 61 6e 2e 63 27 | 0a 66 69 0a 69 66 20 74 |'plan.c'|.fi.if t|
|00003ec0| 65 73 74 20 2d 66 20 27 | 70 6c 61 6e 2e 68 65 61 |est -f '|plan.hea|
|00003ed0| 64 65 72 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |der' -a |"${1}" !|
|00003ee0| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|00003ef0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00003f00| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|00003f10| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 70 6c |sting fi|le \"'pl|
|00003f20| 61 6e 2e 68 65 61 64 65 | 72 27 5c 22 0a 65 6c 73 |an.heade|r'\".els|
|00003f30| 65 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 45 |e. echo| shar: E|
|00003f40| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 70 6c 61 |xtractin|g \"'pla|
|00003f50| 6e 2e 68 65 61 64 65 72 | 27 5c 22 20 5c 28 37 33 |n.header|'\" \(73|
|00003f60| 31 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 20 |1 charac|ters\). |
|00003f70| 20 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 | sed "s/|^X//" >'|
|00003f80| 70 6c 61 6e 2e 68 65 61 | 64 65 72 27 20 3c 3c 27 |plan.hea|der' <<'|
|00003f90| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 54 68 |END_OF_F|ILE'.XTh|
|00003fa0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 69 73 20 74 |e follow|ing is t|
|00003fb0| 68 65 20 62 65 73 74 20 | 69 6d 70 6c 65 6d 65 6e |he best |implemen|
|00003fc0| 74 61 74 69 6f 6e 20 6f | 66 20 61 20 6e 61 6d 65 |tation o|f a name|
|00003fd0| 64 20 70 69 70 65 20 49 | 20 68 61 76 65 20 79 65 |d pipe I| have ye|
|00003fe0| 74 0a 58 66 6f 75 6e 64 | 2e 20 49 74 20 63 61 6e |t.Xfound|. It can|
|00003ff0| 20 62 65 20 75 73 65 64 | 20 66 6f 72 20 67 65 6e | be used| for gen|
|00004000| 65 72 61 74 69 6e 67 20 | 61 20 72 61 6e 64 6f 6d |erating |a random|
|00004010| 20 2e 70 6c 61 6e 2c 20 | 2e 73 69 67 6e 61 74 75 | .plan, |.signatu|
|00004020| 72 65 2c 20 0a 58 65 74 | 63 2e 20 49 74 20 68 61 |re, .Xet|c. It ha|
|00004030| 73 20 62 65 65 6e 20 6d | 6f 64 69 66 69 65 64 20 |s been m|odified |
|00004040| 61 6e 64 20 69 6d 70 72 | 6f 76 65 64 20 75 70 6f |and impr|oved upo|
|00004050| 6e 20 62 79 20 61 20 6e | 75 6d 62 65 72 20 6f 66 |n by a n|umber of|
|00004060| 20 61 75 74 68 6f 72 73 | 2c 20 0a 58 61 6e 64 20 | authors|, .Xand |
|00004070| 49 20 68 61 76 65 20 73 | 65 65 6e 20 66 69 74 20 |I have s|een fit |
|00004080| 74 6f 20 72 65 70 61 63 | 6b 61 67 65 20 69 74 20 |to repac|kage it |
|00004090| 77 69 74 68 20 61 20 73 | 69 6d 70 6c 69 73 74 69 |with a s|implisti|
|000040a0| 63 20 6d 65 61 6e 73 20 | 6f 66 0a 58 69 6e 73 74 |c means |of.Xinst|
|000040b0| 61 6c 6c 61 74 69 6f 6e | 2c 20 61 6e 64 20 61 20 |allation|, and a |
|000040c0| 63 6f 6f 6c 20 74 72 69 | 63 6b 20 6f 72 20 74 77 |cool tri|ck or tw|
|000040d0| 6f 2e 20 49 20 68 6f 70 | 65 20 74 68 61 74 20 70 |o. I hop|e that p|
|000040e0| 65 6f 70 6c 65 20 77 69 | 6c 6c 20 75 73 65 0a 58 |eople wi|ll use.X|
|000040f0| 69 74 20 77 69 73 65 6c | 79 2c 20 62 65 63 61 75 |it wisel|y, becau|
|00004100| 73 65 20 69 74 20 63 61 | 6e 20 6d 65 73 73 20 75 |se it ca|n mess u|
|00004110| 70 20 6d 61 63 68 69 6e | 65 73 20 28 72 65 61 64 |p machin|es (read|
|00004120| 20 64 6f 63 73 29 20 69 | 66 20 79 6f 75 20 75 73 | docs) i|f you us|
|00004130| 65 20 69 74 0a 58 69 6d | 70 72 6f 70 65 72 6c 79 |e it.Xim|properly|
|00004140| 2e 20 0a 58 0a 58 20 20 | 20 44 69 72 65 63 74 20 |. .X.X | Direct |
|00004150| 71 75 65 73 74 69 6f 6e | 73 20 74 6f 20 66 72 61 |question|s to fra|
|00004160| 6e 6b 6c 69 6e 40 75 67 | 2e 63 73 2e 64 61 6c 2e |nklin@ug|.cs.dal.|
|00004170| 63 61 0a 58 20 20 20 48 | 6f 70 65 20 79 6f 75 20 |ca.X H|ope you |
|00004180| 66 69 6e 64 20 69 74 20 | 69 6e 74 65 72 65 73 74 |find it |interest|
|00004190| 69 6e 67 2e 2e 2e 0a 58 | 0a 58 53 74 65 76 65 0a |ing....X|.XSteve.|
|000041a0| 58 0a 58 70 2e 73 2e 20 | 6f 66 20 63 6f 75 72 73 |X.Xp.s. |of cours|
|000041b0| 65 2c 20 69 74 27 73 20 | 61 20 75 75 65 6e 63 6f |e, it's |a uuenco|
|000041c0| 64 65 64 20 61 6e 64 20 | 7a 69 70 70 65 64 20 66 |ded and |zipped f|
|000041d0| 69 6c 65 2e 20 50 65 72 | 68 61 70 73 20 61 73 20 |ile. Per|haps as |
|000041e0| 70 61 72 74 20 6f 66 0a | 58 79 6f 75 72 20 74 65 |part of.|Xyour te|
|000041f0| 73 74 20 74 6f 20 64 65 | 65 6d 20 79 6f 75 72 20 |st to de|em your |
|00004200| 77 6f 72 74 68 69 6e 65 | 73 73 2c 20 49 20 68 61 |worthine|ss, I ha|
|00004210| 76 65 20 75 73 65 64 20 | 74 68 65 20 6c 61 74 65 |ve used |the late|
|00004220| 73 74 20 76 65 72 73 69 | 6f 6e 20 6f 66 0a 58 22 |st versi|on of.X"|
|00004230| 7a 69 70 22 20 74 6f 20 | 61 72 63 68 69 76 65 20 |zip" to |archive |
|00004240| 69 74 2e 20 49 66 20 79 | 6f 75 20 63 61 6e 27 74 |it. If y|ou can't|
|00004250| 20 75 6e 7a 69 70 20 74 | 68 69 73 2c 20 79 6f 75 | unzip t|his, you|
|00004260| 20 70 72 6f 62 61 62 6c | 79 20 73 68 6f 75 6c 64 | probabl|y should|
|00004270| 6e 27 74 0a 58 62 65 20 | 69 6e 73 74 61 6c 6c 69 |n't.Xbe |installi|
|00004280| 6e 67 20 69 74 20 3a 29 | 0a 45 4e 44 5f 4f 46 5f |ng it :)|.END_OF_|
|00004290| 46 49 4c 45 0a 20 20 69 | 66 20 74 65 73 74 20 37 |FILE. i|f test 7|
|000042a0| 33 31 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |31 -ne `|wc -c <'|
|000042b0| 70 6c 61 6e 2e 68 65 61 | 64 65 72 27 60 3b 20 74 |plan.hea|der'`; t|
|000042c0| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|000042d0| 72 3a 20 5c 22 27 70 6c | 61 6e 2e 68 65 61 64 65 |r: \"'pl|an.heade|
|000042e0| 72 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |r'\" unp|acked wi|
|000042f0| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 20 |th wrong| size!. |
|00004300| 20 66 69 0a 20 20 23 20 | 65 6e 64 20 6f 66 20 27 | fi. # |end of '|
|00004310| 70 6c 61 6e 2e 68 65 61 | 64 65 72 27 0a 66 69 0a |plan.hea|der'.fi.|
|00004320| 69 66 20 74 65 73 74 20 | 2d 66 20 27 70 6c 61 6e |if test |-f 'plan|
|00004330| 6e 65 72 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |ner' -a |"${1}" !|
|00004340| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|00004350| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00004360| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|00004370| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 70 6c |sting fi|le \"'pl|
|00004380| 61 6e 6e 65 72 27 5c 22 | 0a 65 6c 73 65 0a 20 20 |anner'\"|.else. |
|00004390| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|000043a0| 63 74 69 6e 67 20 5c 22 | 27 70 6c 61 6e 6e 65 72 |cting \"|'planner|
|000043b0| 27 5c 22 20 5c 28 38 37 | 37 20 63 68 61 72 61 63 |'\" \(87|7 charac|
|000043c0| 74 65 72 73 5c 29 0a 20 | 20 73 65 64 20 22 73 2f |ters\). | sed "s/|
|000043d0| 5e 58 2f 2f 22 20 3e 27 | 70 6c 61 6e 6e 65 72 27 |^X//" >'|planner'|
|000043e0| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 46 49 4c 45 27 | <<'END_|OF_FILE'|
|000043f0| 0a 58 23 21 2f 62 69 6e | 2f 73 68 0a 58 70 65 72 |.X#!/bin|/sh.Xper|
|00004400| 6c 20 24 48 4f 4d 45 2f | 62 69 6e 2f 6e 61 6d 65 |l $HOME/|bin/name|
|00004410| 64 70 2f 6c 6f 67 66 69 | 6e 67 65 72 0a 58 23 20 |dp/logfi|nger.X# |
|00004420| 20 54 68 69 73 20 70 72 | 65 76 69 6f 75 73 20 6c | This pr|evious l|
|00004430| 69 6e 65 20 70 6f 69 6e | 74 73 20 74 6f 20 74 68 |ine poin|ts to th|
|00004440| 65 20 6c 6f 67 66 69 6e | 67 65 72 20 73 63 72 69 |e logfin|ger scri|
|00004450| 70 74 0a 58 0a 58 57 48 | 4f 3d 60 6e 65 74 73 74 |pt.X.XWH|O=`netst|
|00004460| 61 74 20 2d 6e 20 7c 20 | 68 65 61 64 20 2d 32 30 |at -n | |head -20|
|00004470| 20 7c 20 67 72 65 70 20 | 45 53 54 41 42 4c 49 53 | | grep |ESTABLIS|
|00004480| 48 45 44 20 7c 20 67 72 | 65 70 20 31 32 39 2e 31 |HED | gr|ep 129.1|
|00004490| 37 33 2e 34 2e 34 2e 37 | 39 20 7c 20 68 65 61 64 |73.4.4.7|9 | head|
|000044a0| 20 2d 31 20 7c 20 61 77 | 6b 20 27 7b 20 70 3d 4e | -1 | aw|k '{ p=N|
|000044b0| 46 2d 31 3b 70 72 69 6e | 74 66 20 22 25 73 5c 6e |F-1;prin|tf "%s\n|
|000044c0| 22 2c 24 70 7d 27 20 7c | 20 61 77 6b 20 2d 46 2e |",$p}' || awk -F.|
|000044d0| 20 27 7b 70 72 69 6e 74 | 66 20 22 25 73 2e 25 73 | '{print|f "%s.%s|
|000044e0| 2e 25 73 2e 25 73 5c 6e | 22 2c 24 31 2c 24 32 2c |.%s.%s\n|",$1,$2,|
|000044f0| 24 33 2c 24 34 7d 27 60 | 0a 58 23 20 20 20 20 20 |$3,$4}'`|.X# |
|00004500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004510| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004530| 5e 5e 5e 5e 5e 5e 5e 5e | 5e 5e 5e 5e 5e 0a 58 23 |^^^^^^^^|^^^^^.X#|
|00004540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004560| 20 20 54 68 69 73 20 69 | 73 20 74 68 65 20 66 69 | This i|s the fi|
|00004570| 6e 67 65 72 20 70 6f 72 | 74 2e 20 59 6f 75 72 20 |nger por|t. Your |
|00004580| 49 50 20 6e 75 6d 62 65 | 72 0a 58 23 20 20 20 20 |IP numbe|r.X# |
|00004590| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000045a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 70 6c | | pl|
|000045b0| 75 73 20 2e 37 39 20 28 | 74 68 65 20 66 69 6e 67 |us .79 (|the fing|
|000045c0| 65 72 20 70 6f 72 74 20 | 73 75 66 66 69 78 29 0a |er port |suffix).|
|000045d0| 58 23 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X# | |
|000045e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000045f0| 20 20 20 20 43 68 61 6e | 67 65 20 74 68 65 20 49 | Chan|ge the I|
|00004600| 50 20 6e 75 6d 62 65 72 | 20 74 6f 20 72 65 66 6c |P number| to refl|
|00004610| 65 63 74 20 79 6f 75 72 | 73 0a 58 0a 58 69 66 20 |ect your|s.X.Xif |
|00004620| 5b 20 2d 7a 20 22 24 57 | 48 4f 22 20 5d 0a 58 20 |[ -z "$W|HO" ].X |
|00004630| 20 20 74 68 65 6e 20 57 | 48 4f 3d 27 31 32 39 2e | then W|HO='129.|
|00004640| 31 37 33 2e 34 2e 34 27 | 0a 58 66 69 0a 58 0a 58 |173.4.4'|.Xfi.X.X|
|00004650| 23 20 20 49 66 20 69 74 | 20 64 6f 65 73 6e 27 74 |# If it| doesn't|
|00004660| 20 63 61 74 63 68 20 61 | 6e 79 20 49 50 20 6e 75 | catch a|ny IP nu|
|00004670| 6d 62 65 72 20 66 69 6e | 67 65 72 69 6e 67 20 79 |mber fin|gering y|
|00004680| 6f 75 20 74 68 65 6e 20 | 69 74 20 6d 75 73 74 20 |ou then |it must |
|00004690| 62 65 20 61 20 6c 6f 63 | 61 6c 0a 58 23 20 20 66 |be a loc|al.X# f|
|000046a0| 69 6e 67 65 72 0a 58 0a | 58 48 4f 53 54 3d 60 68 |inger.X.|XHOST=`h|
|000046b0| 6f 73 74 20 24 57 48 4f | 20 32 3e 2f 64 65 76 2f |ost $WHO| 2>/dev/|
|000046c0| 6e 75 6c 6c 7c 20 67 72 | 65 70 20 4e 61 6d 65 20 |null| gr|ep Name |
|000046d0| 7c 20 61 77 6b 20 27 7b | 20 70 72 69 6e 74 66 20 || awk '{| printf |
|000046e0| 22 25 73 5c 6e 22 2c 24 | 32 20 7d 27 60 0a 58 65 |"%s\n",$|2 }'`.Xe|
|000046f0| 63 68 6f 20 22 20 20 20 | 20 20 22 20 24 57 48 4f |cho " | " $WHO|
|00004700| 20 22 2d 3e 22 20 24 48 | 4f 53 54 20 3e 3e 20 24 | "->" $H|OST >> $|
|00004710| 48 4f 4d 45 2f 2e 66 69 | 6e 67 65 72 65 65 73 0a |HOME/.fi|ngerees.|
|00004720| 58 65 63 68 6f 20 22 59 | 6f 75 27 72 65 20 66 69 |Xecho "Y|ou're fi|
|00004730| 6e 67 65 72 69 6e 67 20 | 6d 65 20 66 72 6f 6d 20 |ngering |me from |
|00004740| 22 24 57 48 4f 20 22 2c | 20 77 68 69 63 68 20 69 |"$WHO ",| which i|
|00004750| 73 20 22 24 48 4f 53 54 | 0a 58 54 49 4d 45 3d 60 |s "$HOST|.XTIME=`|
|00004760| 64 61 74 65 20 27 2b 25 | 48 3a 25 4d 2c 20 25 44 |date '+%|H:%M, %D|
|00004770| 27 60 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 20 |'`.END_O|F_FILE. |
|00004780| 20 69 66 20 74 65 73 74 | 20 38 37 37 20 2d 6e 65 | if test| 877 -ne|
|00004790| 20 60 77 63 20 2d 63 20 | 3c 27 70 6c 61 6e 6e 65 | `wc -c |<'planne|
|000047a0| 72 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |r'`; the|n. ec|
|000047b0| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 70 6c 61 6e |ho shar:| \"'plan|
|000047c0| 6e 65 72 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |ner'\" u|npacked |
|000047d0| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|000047e0| 0a 20 20 66 69 0a 20 20 | 63 68 6d 6f 64 20 2b 78 |. fi. |chmod +x|
|000047f0| 20 27 70 6c 61 6e 6e 65 | 72 27 0a 20 20 23 20 65 | 'planne|r'. # e|
|00004800| 6e 64 20 6f 66 20 27 70 | 6c 61 6e 6e 65 72 27 0a |nd of 'p|lanner'.|
|00004810| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 72 |fi.if te|st -f 'r|
|00004820| 65 61 64 6d 65 2e 6f 72 | 69 67 27 20 2d 61 20 22 |eadme.or|ig' -a "|
|00004830| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00004840| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00004850| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00004860| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00004870| 65 20 5c 22 27 72 65 61 | 64 6d 65 2e 6f 72 69 67 |e \"'rea|dme.orig|
|00004880| 27 5c 22 0a 65 6c 73 65 | 0a 20 20 65 63 68 6f 20 |'\".else|. echo |
|00004890| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|000048a0| 20 5c 22 27 72 65 61 64 | 6d 65 2e 6f 72 69 67 27 | \"'read|me.orig'|
|000048b0| 5c 22 20 5c 28 35 36 36 | 38 20 63 68 61 72 61 63 |\" \(566|8 charac|
|000048c0| 74 65 72 73 5c 29 0a 20 | 20 73 65 64 20 22 73 2f |ters\). | sed "s/|
|000048d0| 5e 58 2f 2f 22 20 3e 27 | 72 65 61 64 6d 65 2e 6f |^X//" >'|readme.o|
|000048e0| 72 69 67 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |rig' <<'|END_OF_F|
|000048f0| 49 4c 45 27 0a 58 41 6c | 6c 20 49 20 64 69 64 20 |ILE'.XAl|l I did |
|00004900| 77 61 73 20 74 6f 20 70 | 75 74 20 69 6e 20 61 20 |was to p|ut in a |
|00004910| 66 75 6e 63 74 69 6f 6e | 20 74 68 61 74 20 6b 65 |function| that ke|
|00004920| 65 70 73 20 74 72 61 63 | 6b 20 6f 66 20 74 68 65 |eps trac|k of the|
|00004930| 20 50 49 44 20 66 6f 72 | 0a 58 70 6c 61 6e 20 62 | PID for|.Xplan b|
|00004940| 79 20 77 72 69 74 69 6e | 67 20 69 74 20 74 6f 20 |y writin|g it to |
|00004950| 61 20 66 69 6c 65 20 63 | 61 6c 6c 65 64 20 22 2e |a file c|alled ".|
|00004960| 70 6c 61 6e 70 69 64 22 | 20 69 6e 20 79 6f 75 72 |planpid"| in your|
|00004970| 20 68 6f 6d 65 20 64 69 | 72 65 63 74 6f 72 79 2e | home di|rectory.|
|00004980| 0a 58 4e 6f 77 20 79 6f | 75 20 72 75 6e 20 70 6c |.XNow yo|u run pl|
|00004990| 61 6e 20 69 6e 20 79 6f | 75 72 20 2e 6c 6f 67 69 |an in yo|ur .logi|
|000049a0| 6e 2c 20 61 6e 64 2c 20 | 74 6f 20 6b 69 6c 6c 20 |n, and, |to kill |
|000049b0| 74 68 65 20 70 72 6f 63 | 65 73 73 20 77 68 65 6e |the proc|ess when|
|000049c0| 20 79 6f 75 20 6c 6f 67 | 0a 58 6f 75 74 2c 20 70 | you log|.Xout, p|
|000049d0| 75 74 20 73 6f 6d 65 74 | 68 69 6e 67 20 6c 69 6b |ut somet|hing lik|
|000049e0| 65 20 74 68 69 73 20 69 | 6e 20 79 6f 75 72 20 2e |e this i|n your .|
|000049f0| 6c 6f 67 6f 75 74 3a 0a | 58 0a 58 09 6b 69 6c 6c |logout:.|X.X.kill|
|00004a00| 20 60 63 61 74 20 2f 68 | 6f 6d 65 2f 6d 69 6e 65 | `cat /h|ome/mine|
|00004a10| 2f 2e 70 6c 61 6e 70 69 | 64 60 0a 58 09 72 6d 20 |/.planpi|d`.X.rm |
|00004a20| 2d 66 20 2f 68 6f 6d 65 | 2f 6d 69 6e 65 2f 2e 70 |-f /home|/mine/.p|
|00004a30| 6c 61 6e 70 69 64 0a 58 | 0a 58 59 6f 75 20 68 61 |lanpid.X|.XYou ha|
|00004a40| 76 65 20 74 6f 20 72 65 | 6d 6f 76 65 20 74 68 65 |ve to re|move the|
|00004a50| 20 2e 70 6c 61 6e 70 69 | 64 20 28 6f 72 20 6d 6f | .planpi|d (or mo|
|00004a60| 64 69 66 79 20 74 68 65 | 20 63 6f 64 65 29 2c 20 |dify the| code), |
|00004a70| 62 65 63 61 75 73 65 20 | 74 68 65 20 0a 58 70 72 |because |the .Xpr|
|00004a80| 6f 67 72 61 6d 20 77 69 | 6c 6c 20 6e 6f 74 20 72 |ogram wi|ll not r|
|00004a90| 75 6e 20 69 66 20 61 20 | 70 6c 61 6e 20 69 73 20 |un if a |plan is |
|00004aa0| 61 6c 72 65 61 64 79 20 | 72 75 6e 6e 69 6e 67 2c |already |running,|
|00004ab0| 20 77 68 69 63 68 20 69 | 74 20 61 73 73 75 6d 65 | which i|t assume|
|00004ac0| 73 0a 58 77 68 65 6e 20 | 69 74 20 66 69 6e 64 73 |s.Xwhen |it finds|
|00004ad0| 20 61 20 2e 70 6c 61 6e | 70 69 64 20 66 69 6c 65 | a .plan|pid file|
|00004ae0| 20 61 6c 72 65 61 64 79 | 20 74 68 65 72 65 2e 0a | already| there..|
|00004af0| 58 0a 58 49 66 20 73 6f | 6d 65 6f 6e 65 20 77 61 |X.XIf so|meone wa|
|00004b00| 6e 74 65 64 20 74 6f 20 | 72 75 6e 20 6d 75 6c 74 |nted to |run mult|
|00004b10| 69 70 6c 65 20 70 6c 61 | 6e 73 2c 20 6d 61 79 62 |iple pla|ns, mayb|
|00004b20| 65 20 6f 6e 65 20 66 6f | 72 20 61 20 2e 73 69 67 |e one fo|r a .sig|
|00004b30| 6e 61 74 75 72 65 0a 58 | 61 6e 64 20 61 6e 6f 74 |nature.X|and anot|
|00004b40| 68 65 72 20 66 6f 72 20 | 61 20 2e 70 6c 61 6e 2c |her for |a .plan,|
|00004b50| 20 74 68 65 20 73 61 76 | 65 20 6e 61 6d 65 20 66 | the sav|e name f|
|00004b60| 6f 72 20 74 68 65 20 50 | 49 44 20 63 6f 75 6c 64 |or the P|ID could|
|00004b70| 20 62 65 20 63 68 61 6e | 67 65 64 2c 0a 58 61 6e | be chan|ged,.Xan|
|00004b80| 64 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 63 6f |d the pr|ogram co|
|00004b90| 6d 70 69 6c 65 64 20 74 | 77 69 63 65 20 28 74 68 |mpiled t|wice (th|
|00004ba0| 65 20 62 69 6e 61 72 79 | 20 69 73 20 6e 6f 74 20 |e binary| is not |
|00004bb0| 74 68 61 74 20 62 69 67 | 2c 20 7e 34 30 4b 20 6f |that big|, ~40K o|
|00004bc0| 6e 0a 58 74 68 65 20 48 | 50 20 34 32 35 27 73 20 |n.Xthe H|P 425's |
|00004bd0| 49 20 75 73 65 64 29 2c | 20 6f 72 2c 20 69 66 20 |I used),| or, if |
|00004be0| 73 6f 6d 65 6f 6e 65 20 | 69 73 20 72 65 61 6c 6c |someone |is reall|
|00004bf0| 79 20 6d 6f 74 69 76 61 | 74 65 64 2c 20 74 68 65 |y motiva|ted, the|
|00004c00| 79 20 63 6f 75 6c 64 0a | 58 61 64 64 20 61 20 63 |y could.|Xadd a c|
|00004c10| 6f 6d 6d 61 6e 64 20 6c | 69 6e 65 20 61 72 67 75 |ommand l|ine argu|
|00004c20| 6d 65 6e 74 20 66 6f 72 | 20 74 68 65 20 73 61 76 |ment for| the sav|
|00004c30| 65 20 6e 61 6d 65 2e 0a | 58 0a 58 53 75 72 65 2c |e name..|X.XSure,|
|00004c40| 20 6d 79 20 6d 6f 64 69 | 66 69 63 61 74 69 6f 6e | my modi|fication|
|00004c50| 20 69 73 6e 27 74 20 76 | 65 72 79 20 63 6f 6d 70 | isn't v|ery comp|
|00004c60| 6c 65 78 2c 20 62 75 74 | 20 69 74 20 64 6f 65 73 |lex, but| it does|
|00004c70| 20 77 68 61 74 20 49 20 | 6e 65 65 64 65 64 0a 58 | what I |needed.X|
|00004c80| 69 74 20 74 6f 20 64 6f | 2c 20 61 6e 64 20 6d 61 |it to do|, and ma|
|00004c90| 79 62 65 20 73 6f 6d 65 | 6f 6e 65 20 65 6c 73 65 |ybe some|one else|
|00004ca0| 20 63 61 6e 20 75 73 65 | 20 69 74 2e 0a 58 0a 58 | can use| it..X.X|
|00004cb0| 4b 61 72 65 6e 09 28 6e | 61 70 61 6c 6d 40 75 67 |Karen.(n|apalm@ug|
|00004cc0| 63 73 2e 63 61 6c 74 65 | 63 68 2e 65 64 75 29 0a |cs.calte|ch.edu).|
|00004cd0| 58 0a 58 2a 2a 2a 2a 20 | 20 41 64 64 69 74 69 6f |X.X**** | Additio|
|00004ce0| 6e 73 20 62 79 20 47 65 | 6f 66 66 20 4c 6f 6b 65 |ns by Ge|off Loke|
|00004cf0| 72 20 2a 2a 2a 2a 0a 58 | 0a 58 49 20 68 61 76 65 |r ****.X|.XI have|
|00004d00| 20 6d 6f 64 69 66 69 65 | 64 20 54 6f 6e 79 20 52 | modifie|d Tony R|
|00004d10| 65 6d 73 27 20 63 6f 64 | 65 20 66 6f 72 20 70 6c |ems' cod|e for pl|
|00004d20| 61 6e 20 61 20 62 69 74 | 20 74 6f 20 67 65 74 20 |an a bit| to get |
|00004d30| 72 69 64 20 6f 66 20 74 | 68 65 0a 58 6e 65 63 65 |rid of t|he.Xnece|
|00004d40| 73 73 69 74 79 20 66 6f | 72 20 68 61 72 64 2d 63 |ssity fo|r hard-c|
|00004d50| 6f 64 69 6e 67 20 69 6e | 20 74 68 65 20 66 69 6c |oding in| the fil|
|00004d60| 65 20 6e 61 6d 65 20 74 | 6f 20 62 65 20 73 65 74 |e name t|o be set|
|00004d70| 20 75 70 20 61 73 20 61 | 20 46 49 46 4f 2e 0a 58 | up as a| FIFO..X|
|00004d80| 54 68 65 20 70 72 6f 67 | 72 61 6d 20 77 69 6c 6c |The prog|ram will|
|00004d90| 20 6e 6f 77 20 61 63 63 | 65 70 74 20 61 6e 20 6f | now acc|ept an o|
|00004da0| 70 74 69 6f 6e 61 6c 20 | 61 72 67 75 6d 65 6e 74 |ptional |argument|
|00004db0| 20 74 68 61 74 20 73 70 | 65 63 69 66 69 65 73 20 | that sp|ecifies |
|00004dc0| 74 68 65 0a 58 6e 61 6d | 65 20 6f 66 20 74 68 65 |the.Xnam|e of the|
|00004dd0| 20 46 49 46 4f 20 74 6f | 20 62 65 20 75 73 65 64 | FIFO to| be used|
|00004de0| 2e 20 20 49 66 20 74 68 | 61 74 20 61 72 67 75 6d |. If th|at argum|
|00004df0| 65 6e 74 20 69 73 20 6e | 6f 74 20 73 65 74 2c 20 |ent is n|ot set, |
|00004e00| 74 68 65 20 64 65 66 61 | 75 6c 74 0a 58 46 49 46 |the defa|ult.XFIF|
|00004e10| 4f 20 69 73 20 24 48 4f | 4d 45 2f 2e 70 6c 61 6e |O is $HO|ME/.plan|
|00004e20| 2e 0a 58 0a 58 49 6e 20 | 6f 72 64 65 72 20 74 6f |..X.XIn |order to|
|00004e30| 20 75 73 65 20 74 68 69 | 73 20 70 72 6f 67 72 61 | use thi|s progra|
|00004e40| 6d 2c 20 79 6f 75 72 20 | 4f 2f 53 20 6e 65 65 64 |m, your |O/S need|
|00004e50| 73 20 74 6f 20 73 75 70 | 70 6f 72 74 20 6e 61 6d |s to sup|port nam|
|00004e60| 65 64 20 70 69 70 65 73 | 2e 0a 58 59 6f 75 20 61 |ed pipes|..XYou a|
|00004e70| 6c 73 6f 20 6e 65 65 64 | 20 74 6f 20 6c 69 6e 6b |lso need| to link|
|00004e80| 20 69 6e 20 67 65 74 6f | 70 74 20 66 6f 72 20 74 | in geto|pt for t|
|00004e90| 68 65 20 63 68 61 6e 67 | 65 73 20 74 6f 20 77 6f |he chang|es to wo|
|00004ea0| 72 6b 2e 0a 58 0a 58 41 | 6e 79 20 65 78 65 63 75 |rk..X.XA|ny execu|
|00004eb0| 74 61 62 6c 65 20 70 72 | 6f 67 72 61 6d 20 63 61 |table pr|ogram ca|
|00004ec0| 6e 20 62 65 20 73 65 74 | 20 75 70 20 74 6f 20 72 |n be set| up to r|
|00004ed0| 75 6e 20 77 68 65 6e 20 | 74 68 65 20 73 70 65 63 |un when |the spec|
|00004ee0| 69 66 69 65 64 20 46 49 | 46 4f 20 69 73 0a 58 6f |ified FI|FO is.Xo|
|00004ef0| 70 65 6e 65 64 2c 20 62 | 75 74 20 64 6f 6e 27 74 |pened, b|ut don't|
|00004f00| 20 66 6f 72 67 65 74 20 | 74 68 61 74 20 74 68 65 | forget |that the|
|00004f10| 20 70 72 6f 67 72 61 6d | 20 79 6f 75 20 73 70 65 | program| you spe|
|00004f20| 63 69 66 79 20 74 6f 20 | 72 75 6e 20 69 73 20 62 |cify to |run is b|
|00004f30| 65 69 6e 67 0a 58 72 75 | 6e 20 75 6e 64 65 72 20 |eing.Xru|n under |
|00004f40| 79 6f 75 72 20 75 73 65 | 72 69 64 2e 0a 58 0a 58 |your use|rid..X.X|
|00004f50| 2a 2a 2a 2a 20 20 4f 72 | 69 67 69 6e 61 6c 20 52 |**** Or|iginal R|
|00004f60| 45 41 44 4d 45 20 2a 2a | 2a 2a 0a 58 0a 58 44 61 |EADME **|**.X.XDa|
|00004f70| 74 65 3a 20 54 68 75 2c | 20 31 31 20 41 70 72 20 |te: Thu,| 11 Apr |
|00004f80| 39 31 20 31 34 3a 30 39 | 3a 31 30 20 4d 53 54 0a |91 14:09|:10 MST.|
|00004f90| 58 46 72 6f 6d 3a 20 4a | 69 6d 20 41 72 6d 73 74 |XFrom: J|im Armst|
|00004fa0| 72 6f 6e 67 20 3c 61 72 | 6d 73 74 72 6f 6e 40 63 |rong <ar|mstron@c|
|00004fb0| 73 2e 61 72 69 7a 6f 6e | 61 2e 65 64 75 3e 0a 58 |s.arizon|a.edu>.X|
|00004fc0| 53 75 62 6a 65 63 74 3a | 20 52 45 3a 20 66 69 6e |Subject:| RE: fin|
|00004fd0| 67 65 72 65 65 20 2e 2e | 2e 0a 58 0a 58 3e 20 3e |geree ..|..X.X> >|
|00004fe0| 41 62 6f 75 74 20 61 20 | 6d 6f 6e 74 68 20 61 67 |About a |month ag|
|00004ff0| 6f 20 74 68 65 72 65 20 | 77 61 73 20 61 20 73 61 |o there |was a sa|
|00005000| 6d 70 6c 65 20 70 72 6f | 67 72 61 6d 20 70 6f 73 |mple pro|gram pos|
|00005010| 74 65 64 20 74 6f 20 74 | 68 69 73 20 6e 65 77 73 |ted to t|his news|
|00005020| 67 72 6f 75 70 20 74 68 | 61 74 0a 58 3e 20 3e 73 |group th|at.X> >s|
|00005030| 65 74 20 75 70 20 61 20 | 46 49 46 4f 20 6e 61 6d |et up a |FIFO nam|
|00005040| 65 64 20 70 69 70 65 20 | 61 73 20 79 6f 75 72 20 |ed pipe |as your |
|00005050| 2e 70 6c 61 6e 20 66 69 | 6c 65 2e 20 20 49 20 6d |.plan fi|le. I m|
|00005060| 6f 64 69 66 69 65 64 20 | 74 68 65 20 63 6f 64 65 |odified |the code|
|00005070| 20 74 6f 20 73 65 74 20 | 75 70 0a 58 3e 20 3e 61 | to set |up.X> >a|
|00005080| 20 73 69 6d 70 6c 65 20 | 28 70 65 72 68 61 70 73 | simple |(perhaps|
|00005090| 20 6e 61 69 76 65 29 20 | 66 69 6e 67 65 72 20 6d | naive) |finger m|
|000050a0| 6f 6e 69 74 6f 72 20 66 | 6f 72 20 75 73 65 72 73 |onitor f|or users|
|000050b0| 20 6f 6e 20 6d 79 20 6d | 61 63 68 69 6e 65 2e 20 | on my m|achine. |
|000050c0| 20 54 68 65 20 70 72 6f | 63 65 73 73 0a 58 3e 20 | The pro|cess.X> |
|000050d0| 64 6f 20 79 6f 75 20 73 | 74 69 6c 6c 20 68 61 76 |do you s|till hav|
|000050e0| 65 20 74 68 65 20 73 6f | 75 72 63 65 20 66 6f 72 |e the so|urce for|
|000050f0| 20 69 74 3f 20 77 6f 75 | 6c 64 20 79 6f 75 20 73 | it? wou|ld you s|
|00005100| 65 6e 64 20 69 74 20 74 | 6f 20 6d 65 3f 0a 58 0a |end it t|o me?.X.|
|00005110| 58 48 65 72 65 20 69 73 | 20 74 68 65 20 61 72 74 |XHere is| the art|
|00005120| 69 63 6c 65 20 77 68 69 | 63 68 20 61 70 70 65 61 |icle whi|ch appea|
|00005130| 72 65 64 20 69 6e 20 63 | 6f 6d 70 2e 75 6e 69 78 |red in c|omp.unix|
|00005140| 2e 71 75 65 73 74 69 6f | 6e 73 20 61 20 77 68 69 |.questio|ns a whi|
|00005150| 6c 65 20 62 61 63 6b 2e | 20 20 49 74 0a 58 63 6f |le back.| It.Xco|
|00005160| 6e 74 61 69 6e 73 20 67 | 65 6e 65 72 69 63 20 63 |ntains g|eneric c|
|00005170| 6f 64 65 20 74 68 61 74 | 20 77 69 6c 6c 20 72 75 |ode that| will ru|
|00005180| 6e 20 61 6e 79 20 70 72 | 6f 67 72 61 6d 20 79 6f |n any pr|ogram yo|
|00005190| 75 20 77 61 6e 74 20 77 | 68 65 6e 65 76 65 72 20 |u want w|henever |
|000051a0| 61 20 63 65 72 74 61 69 | 6e 0a 58 66 69 6c 65 20 |a certai|n.Xfile |
|000051b0| 69 73 20 61 63 63 65 73 | 73 65 64 20 28 69 2e 65 |is acces|sed (i.e|
|000051c0| 2e 20 74 68 65 20 2e 70 | 6c 61 6e 20 66 69 6c 65 |. the .p|lan file|
|000051d0| 20 69 6e 20 74 68 69 73 | 20 63 61 73 65 29 2e 20 | in this| case). |
|000051e0| 20 41 6c 6c 20 79 6f 75 | 20 68 61 76 65 20 74 6f | All you| have to|
|000051f0| 20 64 6f 20 69 73 0a 58 | 63 6f 6d 70 69 6c 65 20 | do is.X|compile |
|00005200| 69 74 20 28 69 74 20 63 | 72 65 61 74 65 73 20 61 |it (it c|reates a|
|00005210| 6e 20 65 78 65 63 75 74 | 61 62 6c 65 20 63 61 6c |n execut|able cal|
|00005220| 6c 65 64 20 27 70 6c 61 | 6e 27 29 20 61 6e 64 20 |led 'pla|n') and |
|00005230| 74 68 65 6e 20 74 6f 20 | 67 65 74 20 69 74 0a 58 |then to |get it.X|
|00005240| 72 75 6e 6e 69 6e 67 20 | 73 61 79 20 27 70 6c 61 |running |say 'pla|
|00005250| 6e 20 61 2e 6f 75 74 20 | 26 27 20 77 68 65 72 65 |n a.out |&' where|
|00005260| 20 61 2e 6f 75 74 20 69 | 73 20 73 6f 6d 65 20 70 | a.out i|s some p|
|00005270| 72 6f 67 72 61 6d 20 79 | 6f 75 20 68 61 76 65 20 |rogram y|ou have |
|00005280| 77 72 69 74 74 65 6e 2e | 0a 58 49 20 64 6f 6e 27 |written.|.XI don'|
|00005290| 74 20 68 61 76 65 20 6d | 79 20 70 72 6f 67 72 61 |t have m|y progra|
|000052a0| 6d 20 61 6e 79 20 6d 6f | 72 65 2c 20 62 75 74 20 |m any mo|re, but |
|000052b0| 62 61 73 69 63 61 6c 6c | 79 20 77 68 61 74 20 49 |basicall|y what I|
|000052c0| 20 64 69 64 20 77 61 73 | 20 61 20 70 73 20 61 75 | did was| a ps au|
|000052d0| 0a 58 77 69 74 68 69 6e | 20 74 68 61 74 20 70 72 |.Xwithin| that pr|
|000052e0| 6f 67 72 61 6d 2e 20 20 | 49 74 20 75 73 65 64 20 |ogram. |It used |
|000052f0| 65 67 72 65 70 20 74 6f | 20 73 65 61 72 63 68 20 |egrep to| search |
|00005300| 66 6f 72 20 73 6f 6d 65 | 6f 6e 65 20 63 75 72 72 |for some|one curr|
|00005310| 65 6e 74 6c 79 20 66 69 | 6e 67 65 72 69 6e 67 0a |ently fi|ngering.|
|00005320| 58 6d 65 20 61 6e 64 20 | 61 70 70 65 6e 64 65 64 |Xme and |appended|
|00005330| 20 74 68 65 20 6f 75 74 | 70 75 74 20 74 6f 20 61 | the out|put to a|
|00005340| 20 66 69 6c 65 2e 20 20 | 54 6f 20 67 65 74 20 72 | file. |To get r|
|00005350| 65 61 6c 6c 79 20 66 61 | 6e 63 79 20 79 6f 75 20 |eally fa|ncy you |
|00005360| 63 6f 75 6c 64 20 74 68 | 65 6e 0a 58 72 65 61 64 |could th|en.Xread|
|00005370| 20 66 72 6f 6d 20 74 68 | 61 74 20 66 69 6c 65 20 | from th|at file |
|00005380| 74 6f 20 66 69 6e 64 20 | 6f 75 74 20 65 78 61 63 |to find |out exac|
|00005390| 74 6c 79 20 77 68 6f 20 | 69 74 20 69 73 20 28 61 |tly who |it is (a|
|000053a0| 6c 6c 20 69 6e 20 74 68 | 65 20 73 61 6d 65 20 70 |ll in th|e same p|
|000053b0| 72 6f 67 72 61 6d 29 0a | 58 61 6e 64 20 70 72 69 |rogram).|Xand pri|
|000053c0| 6e 74 20 6f 75 74 20 61 | 20 6e 69 63 65 20 70 65 |nt out a| nice pe|
|000053d0| 72 73 6f 6e 61 6c 20 6d | 65 73 73 61 67 65 20 74 |rsonal m|essage t|
|000053e0| 6f 20 77 68 6f 65 76 65 | 72 20 69 73 20 66 69 6e |o whoeve|r is fin|
|000053f0| 67 65 72 69 6e 67 20 79 | 6f 75 20 61 73 20 70 61 |gering y|ou as pa|
|00005400| 72 74 0a 58 6f 66 20 77 | 68 61 74 20 6c 6f 6f 6b |rt.Xof w|hat look|
|00005410| 73 20 74 6f 20 62 65 20 | 79 6f 75 72 20 2e 70 6c |s to be |your .pl|
|00005420| 61 6e 20 66 69 6c 65 2e | 20 20 41 20 63 6f 75 70 |an file.| A coup|
|00005430| 6c 65 20 6f 66 20 74 68 | 69 6e 67 73 20 74 6f 20 |le of th|ings to |
|00005440| 77 61 74 63 68 20 6f 75 | 74 20 66 6f 72 3a 0a 58 |watch ou|t for:.X|
|00005450| 49 66 20 74 68 65 20 66 | 69 6e 67 65 72 20 69 73 |If the f|inger is|
|00005460| 20 72 65 6d 6f 74 65 2c | 20 74 68 65 20 70 73 20 | remote,| the ps |
|00005470| 61 75 20 77 6f 6e 27 74 | 20 66 69 6e 64 20 61 6e |au won't| find an|
|00005480| 79 74 68 69 6e 67 2e 20 | 20 41 6c 73 6f 2c 20 69 |ything. | Also, i|
|00005490| 66 20 74 77 6f 20 70 65 | 6f 70 6c 65 0a 58 66 69 |f two pe|ople.Xfi|
|000054a0| 6e 67 65 72 20 79 6f 75 | 20 61 74 20 74 68 65 20 |nger you| at the |
|000054b0| 73 61 6d 65 20 74 69 6d | 65 20 79 6f 75 20 6d 61 |same tim|e you ma|
|000054c0| 79 20 72 75 6e 20 69 6e | 74 6f 20 74 72 6f 75 62 |y run in|to troub|
|000054d0| 6c 65 2c 20 62 75 74 20 | 49 20 64 69 64 6e 27 74 |le, but |I didn't|
|000054e0| 20 74 72 79 0a 58 65 78 | 70 65 72 69 6d 65 6e 74 | try.Xex|periment|
|000054f0| 69 6e 67 20 77 69 74 68 | 20 74 68 69 73 20 74 6f |ing with| this to|
|00005500| 6f 20 6d 75 63 68 2e 20 | 20 49 20 61 6c 73 6f 20 |o much. | I also |
|00005510| 66 6f 75 6e 64 20 69 74 | 20 68 65 6c 70 66 75 6c |found it| helpful|
|00005520| 20 74 6f 20 74 69 6d 65 | 73 74 61 6d 70 20 61 0a | to time|stamp a.|
|00005530| 58 64 61 74 65 20 74 6f | 20 74 68 65 20 66 69 6c |Xdate to| the fil|
|00005540| 65 2c 20 74 6f 6f 20 28 | 49 20 75 73 65 64 20 6c |e, too (|I used l|
|00005550| 6f 63 61 6c 74 69 6d 65 | 28 29 20 66 6f 72 20 65 |ocaltime|() for e|
|00005560| 66 66 69 63 69 65 6e 63 | 79 29 2e 20 20 54 68 69 |fficienc|y). Thi|
|00005570| 73 20 6d 61 6b 65 73 20 | 69 74 0a 58 65 61 73 69 |s makes |it.Xeasi|
|00005580| 65 72 20 74 6f 20 6c 6f | 6f 6b 20 62 61 63 6b 20 |er to lo|ok back |
|00005590| 6c 61 74 65 72 20 61 74 | 20 74 68 65 20 66 69 6c |later at| the fil|
|000055a0| 65 20 61 6e 64 20 73 65 | 65 20 77 68 6f 27 73 20 |e and se|e who's |
|000055b0| 62 65 65 6e 20 66 69 6e | 67 65 72 69 6e 67 20 79 |been fin|gering y|
|000055c0| 6f 75 20 61 6e 64 0a 58 | 77 68 65 6e 20 77 68 69 |ou and.X|when whi|
|000055d0| 6c 65 20 79 6f 75 20 77 | 65 72 65 20 6e 6f 74 20 |le you w|ere not |
|000055e0| 6c 6f 67 67 65 64 20 6f | 6e 2e 20 20 49 74 20 61 |logged o|n. It a|
|000055f0| 6c 73 6f 20 68 65 6c 70 | 66 75 6c 20 69 6e 20 64 |lso help|ful in d|
|00005600| 65 62 75 67 67 69 6e 67 | 20 79 6f 75 72 20 70 72 |ebugging| your pr|
|00005610| 6f 67 72 61 6d 2e 0a 58 | 0a 58 53 6f 20 73 65 74 |ogram..X|.XSo set|
|00005620| 20 75 70 20 74 68 69 73 | 20 63 6f 64 65 20 61 6e | up this| code an|
|00005630| 64 20 65 78 70 65 72 69 | 6d 65 6e 74 20 77 69 74 |d experi|ment wit|
|00005640| 68 20 64 69 66 66 65 72 | 65 6e 74 20 70 72 6f 67 |h differ|ent prog|
|00005650| 72 61 6d 73 2e 20 20 4a | 75 73 74 20 62 65 20 63 |rams. J|ust be c|
|00005660| 72 65 61 74 69 76 65 0a | 58 61 6e 64 20 73 65 65 |reative.|Xand see|
|00005670| 20 77 68 61 74 20 65 6c | 73 65 20 79 6f 75 20 63 | what el|se you c|
|00005680| 61 6e 20 64 6f 20 77 69 | 74 68 20 69 74 2e 20 20 |an do wi|th it. |
|00005690| 4f 6e 65 20 69 64 65 61 | 20 49 20 75 73 65 64 20 |One idea| I used |
|000056a0| 66 6f 72 20 61 20 77 68 | 69 6c 65 20 69 73 20 6d |for a wh|ile is m|
|000056b0| 61 6b 69 6e 67 0a 58 69 | 74 20 70 72 69 6e 74 20 |aking.Xi|t print |
|000056c0| 61 20 64 69 66 66 65 72 | 65 6e 74 20 71 75 6f 74 |a differ|ent quot|
|000056d0| 65 20 65 61 63 68 20 74 | 69 6d 65 2e 20 20 54 68 |e each t|ime. Th|
|000056e0| 65 20 70 6f 73 73 69 62 | 69 6c 69 74 65 73 20 61 |e possib|ilites a|
|000056f0| 72 65 20 65 6e 64 6c 65 | 73 73 2e 20 20 45 6e 6a |re endle|ss. Enj|
|00005700| 6f 79 2e 0a 58 0a 58 4a | 69 6d 0a 58 0a 58 0a 58 |oy..X.XJ|im.X.X.X|
|00005710| 41 72 74 69 63 6c 65 20 | 33 31 32 37 30 20 6f 66 |Article |31270 of|
|00005720| 20 63 6f 6d 70 2e 75 6e | 69 78 2e 71 75 65 73 74 | comp.un|ix.quest|
|00005730| 69 6f 6e 73 3a 0a 58 46 | 72 6f 6d 3a 20 72 65 6d |ions:.XF|rom: rem|
|00005740| 62 6f 40 75 6e 69 73 6f | 66 74 2e 55 55 43 50 20 |bo@uniso|ft.UUCP |
|00005750| 28 54 6f 6e 79 20 52 65 | 6d 73 29 0a 58 4e 65 77 |(Tony Re|ms).XNew|
|00005760| 73 67 72 6f 75 70 73 3a | 20 63 6f 6d 70 2e 75 6e |sgroups:| comp.un|
|00005770| 69 78 2e 71 75 65 73 74 | 69 6f 6e 73 0a 58 53 75 |ix.quest|ions.XSu|
|00005780| 62 6a 65 63 74 3a 20 52 | 65 3a 20 46 69 6e 67 65 |bject: R|e: Finge|
|00005790| 72 0a 58 44 61 74 65 3a | 20 32 32 20 46 65 62 20 |r.XDate:| 22 Feb |
|000057a0| 39 31 20 30 32 3a 34 34 | 3a 31 37 20 47 4d 54 0a |91 02:44|:17 GMT.|
|000057b0| 58 52 65 70 6c 79 2d 54 | 6f 3a 20 72 65 6d 62 6f |XReply-T|o: rembo|
|000057c0| 40 75 6e 69 73 6f 66 74 | 2e 55 55 43 50 20 28 54 |@unisoft|.UUCP (T|
|000057d0| 6f 6e 79 20 52 65 6d 73 | 29 0a 58 4f 72 67 61 6e |ony Rems|).XOrgan|
|000057e0| 69 7a 61 74 69 6f 6e 3a | 20 55 6e 69 53 6f 66 74 |ization:| UniSoft|
|000057f0| 20 43 6f 72 70 6f 72 61 | 74 69 6f 6e 20 2d 2d 20 | Corpora|tion -- |
|00005800| 55 4e 49 58 20 52 20 55 | 73 2e 0a 58 0a 58 49 6e |UNIX R U|s..X.XIn|
|00005810| 20 61 72 74 69 63 6c 65 | 20 3c 33 37 36 37 35 40 | article| <37675@|
|00005820| 6e 65 74 6e 65 77 73 2e | 75 70 65 6e 6e 2e 65 64 |netnews.|upenn.ed|
|00005830| 75 3e 20 6d 69 6e 7a 68 | 69 40 65 6e 69 61 63 2e |u> minzh|i@eniac.|
|00005840| 73 65 61 73 2e 75 70 65 | 6e 6e 2e 65 64 75 20 28 |seas.upe|nn.edu (|
|00005850| 4d 69 6e 2d 5a 68 69 20 | 53 68 61 6f 29 20 77 72 |Min-Zhi |Shao) wr|
|00005860| 69 74 65 73 3a 0a 58 3e | 0a 58 3e 20 20 20 20 57 |ites:.X>|.X> W|
|00005870| 68 65 6e 20 49 20 66 69 | 6e 67 65 72 65 64 20 6f |hen I fi|ngered o|
|00005880| 75 72 20 73 79 73 74 65 | 6d 20 61 64 6d 69 6e 69 |ur syste|m admini|
|00005890| 73 74 72 61 74 6f 72 2c | 20 49 20 67 6f 74 20 74 |strator,| I got t|
|000058a0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 72 65 73 |he follo|wing res|
|000058b0| 75 6c 74 3a 0a 58 3e 0a | 58 3e 5f 5f 5f 5f 5f 5f |ult:.X>.|X>______|
|000058c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000058d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000058e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000058f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005900| 5f 5f 5f 0a 58 3e 4c 6f | 67 69 6e 20 6e 61 6d 65 |___.X>Lo|gin name|
|00005910| 3a 20 67 61 72 64 65 6c | 6c 61 20 20 09 09 09 49 |: gardel|la ...I|
|00005920| 6e 20 72 65 61 6c 20 6c | 69 66 65 3a 20 45 64 20 |n real l|ife: Ed |
|00005930| 47 61 72 64 65 6c 6c 61 | 20 5b 43 45 54 53 5d 0a |Gardella| [CETS].|
|00005940| 58 3e 44 69 72 65 63 74 | 6f 72 79 3a 20 2f 68 6f |X>Direct|ory: /ho|
|00005950| 6d 65 2f 63 65 74 73 2f | 67 61 72 64 65 6c 6c 61 |me/cets/|gardella|
|00005960| 20 20 20 20 20 20 09 53 | 68 65 6c 6c 3a 20 2f 75 | .S|hell: /u|
|00005970| 73 72 2f 6c 6f 63 61 6c | 2f 62 69 6e 2f 62 61 73 |sr/local|/bin/bas|
|00005980| 68 0a 58 3e 4f 6e 20 73 | 69 6e 63 65 20 46 65 62 |h.X>On s|ince Feb|
|00005990| 20 31 35 20 31 39 3a 34 | 39 3a 30 34 20 6f 6e 20 | 15 19:4|9:04 on |
|000059a0| 74 74 79 70 31 20 66 72 | 6f 6d 20 54 53 54 45 53 |ttyp1 fr|om TSTES|
|000059b0| 54 2e 53 45 41 53 2e 55 | 50 45 4e 0a 58 3e 31 34 |T.SEAS.U|PEN.X>14|
|000059c0| 20 6d 69 6e 75 74 65 73 | 20 49 64 6c 65 20 54 69 | minutes| Idle Ti|
|000059d0| 6d 65 0a 58 3e 4e 6f 20 | 75 6e 72 65 61 64 20 6d |me.X>No |unread m|
|000059e0| 61 69 6c 0a 58 3e 50 72 | 6f 6a 65 63 74 3a 20 53 |ail.X>Pr|oject: S|
|000059f0| 79 73 74 65 6d 20 41 64 | 6d 69 6e 69 73 74 72 61 |ystem Ad|ministra|
|00005a00| 74 6f 72 20 65 6e 69 61 | 63 2e 73 65 61 73 2e 75 |tor enia|c.seas.u|
|00005a10| 70 65 6e 6e 2e 65 64 75 | 0a 58 3e 50 6c 61 6e 3a |penn.edu|.X>Plan:|
|00005a20| 0a 58 3e 20 20 20 20 20 | 20 20 20 20 4d 65 61 6e |.X> | Mean|
|00005a30| 64 65 72 20 61 62 6f 75 | 74 20 75 6e 74 69 6c 20 |der abou|t until |
|00005a40| 73 6f 6d 65 74 68 69 6e | 67 20 69 6e 74 65 72 65 |somethin|g intere|
|00005a50| 73 74 69 6e 67 20 63 6f | 6d 65 73 20 61 6c 6f 6e |sting co|mes alon|
|00005a60| 67 2e 0a 58 3e 0a 58 3e | 4f 66 66 69 63 65 3a 20 |g..X>.X>|Office: |
|00005a70| 31 35 34 20 4d 6f 6f 72 | 65 20 42 75 69 6c 64 69 |154 Moor|e Buildi|
|00005a80| 6e 67 20 20 20 20 20 20 | 20 20 20 20 20 57 6f 72 |ng | Wor|
|00005a90| 6b 20 50 68 6f 6e 65 3a | 20 38 39 38 2d 32 34 39 |k Phone:| 898-249|
|00005aa0| 31 0a 58 3e 20 20 20 20 | 20 20 20 20 20 20 20 20 |1.X> | |
|00005ab0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ac0| 20 20 20 20 20 20 20 20 | 20 48 6f 6d 65 20 50 68 | | Home Ph|
|00005ad0| 6f 6e 65 3a 20 33 38 37 | 2d 34 31 30 34 0a 58 3e |one: 387|-4104.X>|
|00005ae0| 0a 58 3e 49 20 68 61 76 | 65 20 62 65 65 6e 20 66 |.X>I hav|e been f|
|00005af0| 69 6e 67 65 72 65 64 20 | 33 20 74 69 6d 65 73 20 |ingered |3 times |
|00005b00| 74 6f 64 61 79 0a 58 3e | 5f 5f 5f 5f 5f 5f 5f 5f |today.X>|________|
|00005b10| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005b20| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005b30| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005b40| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005b50| 5f 0a 58 3e 0a 58 3e 74 | 68 65 20 2e 70 6c 61 6e |_.X>.X>t|he .plan|
|00005b60| 20 66 69 6c 65 20 69 6e | 20 68 69 73 20 68 6f 6d | file in| his hom|
|00005b70| 65 20 64 69 72 65 63 74 | 6f 72 79 20 6c 6f 6f 6b |e direct|ory look|
|00005b80| 73 20 6c 69 6b 65 3a 0a | 58 3e 0a 58 3e 70 72 77 |s like:.|X>.X>prw|
|00005b90| 2d 72 2d 2d 72 2d 2d 20 | 20 31 20 67 61 72 64 65 |-r--r-- | 1 garde|
|00005ba0| 6c 6c 61 20 20 20 20 20 | 20 20 20 30 20 46 65 62 |lla | 0 Feb|
|00005bb0| 20 31 35 20 32 33 3a 34 | 38 20 2f 68 6f 6d 65 2f | 15 23:4|8 /home/|
|00005bc0| 63 65 74 73 2f 67 61 72 | 64 65 6c 6c 61 2f 2e 70 |cets/gar|della/.p|
|00005bd0| 6c 61 6e 0a 58 3e 5e 0a | 58 0a 58 41 73 20 79 6f |lan.X>^.|X.XAs yo|
|00005be0| 75 20 68 61 76 65 20 66 | 6f 75 6e 64 20 6f 75 74 |u have f|ound out|
|00005bf0| 20 62 79 20 6e 6f 77 2c | 20 49 27 6d 20 73 75 72 | by now,| I'm sur|
|00005c00| 65 2c 20 74 68 65 20 70 | 20 6d 65 61 6e 73 20 74 |e, the p| means t|
|00005c10| 68 61 74 20 74 68 69 73 | 20 69 73 20 0a 58 61 20 |hat this| is .Xa |
|00005c20| 6e 61 6d 65 64 20 70 69 | 70 65 20 61 6b 61 20 61 |named pi|pe aka a|
|00005c30| 20 46 49 46 4f 2e 20 20 | 49 66 20 79 6f 75 27 64 | FIFO. |If you'd|
|00005c40| 20 6c 69 6b 65 20 74 6f | 20 64 6f 20 74 68 69 73 | like to| do this|
|00005c50| 20 79 6f 75 72 73 65 6c | 66 2c 20 68 65 72 65 0a | yoursel|f, here.|
|00005c60| 58 69 73 20 61 20 6c 69 | 74 74 6c 65 20 70 72 6f |Xis a li|ttle pro|
|00005c70| 67 72 61 6d 20 49 20 77 | 72 6f 74 65 20 74 6f 20 |gram I w|rote to |
|00005c80| 64 6f 20 69 74 20 28 73 | 65 65 20 74 68 65 20 63 |do it (s|ee the c|
|00005c90| 6f 6d 6d 65 6e 74 73 20 | 61 74 20 74 68 65 0a 58 |omments |at the.X|
|00005ca0| 74 68 65 20 62 65 67 69 | 6e 6e 69 6e 67 20 6f 66 |the begi|nning of|
|00005cb0| 20 74 68 65 20 70 6c 61 | 6e 2e 63 20 66 69 6c 65 | the pla|n.c file|
|00005cc0| 20 66 6f 72 20 75 73 61 | 67 65 20 69 6e 66 6f 29 | for usa|ge info)|
|00005cd0| 3a 20 20 0a 58 0a 58 48 | 65 72 65 27 73 20 74 68 |: .X.XH|ere's th|
|00005ce0| 65 20 73 68 61 72 20 6f | 66 20 6d 79 20 70 6c 61 |e shar o|f my pla|
|00005cf0| 6e 20 70 72 6f 67 72 61 | 6d 2c 20 6a 75 73 74 20 |n progra|m, just |
|00005d00| 63 75 74 20 75 70 20 75 | 6e 74 69 6c 20 69 74 20 |cut up u|ntil it |
|00005d10| 73 61 79 73 0a 58 22 63 | 75 74 20 68 65 72 65 22 |says.X"c|ut here"|
|00005d20| 2c 20 61 6e 64 20 74 68 | 65 6e 20 74 79 70 65 20 |, and th|en type |
|00005d30| 27 73 68 20 66 69 6c 65 | 6e 61 6d 65 27 20 75 73 |'sh file|name' us|
|00005d40| 69 6e 67 20 77 68 61 74 | 65 76 65 72 20 66 69 6c |ing what|ever fil|
|00005d50| 65 6e 61 6d 65 0a 58 79 | 6f 75 20 73 61 76 65 20 |ename.Xy|ou save |
|00005d60| 69 74 20 61 73 2e 20 20 | 49 66 20 79 6f 75 20 75 |it as. |If you u|
|00005d70| 73 65 20 27 70 6c 61 6e | 27 20 69 74 20 77 69 6c |se 'plan|' it wil|
|00005d80| 6c 20 67 65 74 20 6f 76 | 65 72 77 72 69 74 74 65 |l get ov|erwritte|
|00005d90| 6e 2e 0a 58 0a 58 54 68 | 65 20 63 6f 64 65 20 68 |n..X.XTh|e code h|
|00005da0| 65 72 65 20 73 68 6f 75 | 6c 64 20 63 6f 6d 70 69 |ere shou|ld compi|
|00005db0| 6c 65 20 77 2f 6f 20 61 | 6e 79 20 70 72 6f 62 6c |le w/o a|ny probl|
|00005dc0| 65 6d 73 20 6f 6e 20 61 | 6e 79 20 42 53 44 20 6d |ems on a|ny BSD m|
|00005dd0| 61 63 68 69 6e 65 2c 0a | 58 49 20 68 61 76 65 20 |achine,.|XI have |
|00005de0| 74 72 69 65 64 20 69 74 | 20 6f 6e 20 61 20 53 75 |tried it| on a Su|
|00005df0| 6e 2c 20 56 61 78 20 37 | 35 30 2c 20 61 6e 64 20 |n, Vax 7|50, and |
|00005e00| 50 79 72 61 6d 69 64 20 | 39 30 78 2e 20 20 49 74 |Pyramid |90x. It|
|00005e10| 20 73 68 6f 75 6c 64 0a | 58 61 6c 73 6f 20 77 6f | should.|Xalso wo|
|00005e20| 72 6b 20 70 72 6f 70 65 | 72 6c 79 20 6f 6e 20 61 |rk prope|rly on a|
|00005e30| 6e 79 20 53 56 52 34 2e | 30 20 6d 61 63 68 69 6e |ny SVR4.|0 machin|
|00005e40| 65 2e 20 20 0a 58 0a 58 | 54 68 65 20 63 6f 64 65 |e. .X.X|The code|
|00005e50| 20 69 73 20 70 72 65 74 | 74 79 20 68 65 61 76 69 | is pret|ty heavi|
|00005e60| 6c 79 20 63 6f 6d 6d 65 | 6e 74 65 64 20 73 6f 20 |ly comme|nted so |
|00005e70| 69 74 20 73 68 6f 75 6c | 64 20 62 65 20 73 65 6c |it shoul|d be sel|
|00005e80| 66 0a 58 65 78 70 6c 61 | 6e 61 74 6f 72 79 2e 20 |f.Xexpla|natory. |
|00005e90| 20 0a 58 0a 58 4e 6f 74 | 65 20 74 68 61 74 20 79 | .X.XNot|e that y|
|00005ea0| 6f 75 20 73 68 6f 75 6c | 64 20 70 75 74 20 61 20 |ou shoul|d put a |
|00005eb0| 2d 44 46 49 4c 45 4e 41 | 4d 45 3d 22 79 6f 75 72 |-DFILENA|ME="your|
|00005ec0| 5f 68 6f 6d 65 5f 64 69 | 72 2f 2e 70 6c 61 6e 22 |_home_di|r/.plan"|
|00005ed0| 0a 58 74 6f 20 67 65 74 | 20 69 74 20 74 6f 20 70 |.Xto get| it to p|
|00005ee0| 75 74 20 79 6f 75 72 20 | 70 61 74 68 20 69 6e 2c |ut your |path in,|
|00005ef0| 20 6f 72 20 79 6f 75 20 | 63 61 6e 20 6a 75 73 74 | or you |can just|
|00005f00| 20 65 64 69 74 20 74 68 | 65 20 0a 58 73 6f 75 72 | edit th|e .Xsour|
|00005f10| 63 65 20 61 6e 64 20 63 | 68 61 6e 67 65 20 74 68 |ce and c|hange th|
|00005f20| 65 20 76 61 6c 75 65 20 | 6f 66 20 46 49 4c 45 4e |e value |of FILEN|
|00005f30| 41 4d 45 20 70 65 72 6d | 61 6e 65 6e 74 6c 79 2e |AME perm|anently.|
|00005f40| 20 20 0a 58 0a 58 49 66 | 20 79 6f 75 20 68 61 76 | .X.XIf| you hav|
|00005f50| 65 20 61 6e 79 20 70 72 | 6f 62 6c 65 6d 73 20 67 |e any pr|oblems g|
|00005f60| 65 74 74 69 6e 67 20 69 | 74 20 63 6f 6d 70 69 6c |etting i|t compil|
|00005f70| 65 64 2c 20 6a 75 73 74 | 20 73 65 6e 64 20 6d 65 |ed, just| send me|
|00005f80| 20 6d 61 69 6c 2e 0a 58 | 0a 58 45 6e 6a 6f 79 2e | mail..X|.XEnjoy.|
|00005f90| 20 20 0a 58 0a 58 2d 54 | 6f 6e 79 0a 58 0a 45 4e | .X.X-T|ony.X.EN|
|00005fa0| 44 5f 4f 46 5f 46 49 4c | 45 0a 20 20 69 66 20 74 |D_OF_FIL|E. if t|
|00005fb0| 65 73 74 20 35 36 36 38 | 20 2d 6e 65 20 60 77 63 |est 5668| -ne `wc|
|00005fc0| 20 2d 63 20 3c 27 72 65 | 61 64 6d 65 2e 6f 72 69 | -c <'re|adme.ori|
|00005fd0| 67 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |g'`; the|n. ec|
|00005fe0| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 72 65 61 64 |ho shar:| \"'read|
|00005ff0| 6d 65 2e 6f 72 69 67 27 | 5c 22 20 75 6e 70 61 63 |me.orig'|\" unpac|
|00006000| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|00006010| 69 7a 65 21 0a 20 20 66 | 69 0a 20 20 23 20 65 6e |ize!. f|i. # en|
|00006020| 64 20 6f 66 20 27 72 65 | 61 64 6d 65 2e 6f 72 69 |d of 're|adme.ori|
|00006030| 67 27 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |g'.fi.if| test -f|
|00006040| 20 27 72 65 6e 65 77 70 | 6c 61 6e 27 20 2d 61 20 | 'renewp|lan' -a |
|00006050| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00006060| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00006070| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00006080| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00006090| 6c 65 20 5c 22 27 72 65 | 6e 65 77 70 6c 61 6e 27 |le \"'re|newplan'|
|000060a0| 5c 22 0a 65 6c 73 65 0a | 20 20 65 63 68 6f 20 73 |\".else.| echo s|
|000060b0| 68 61 72 3a 20 45 78 74 | 72 61 63 74 69 6e 67 20 |har: Ext|racting |
|000060c0| 5c 22 27 72 65 6e 65 77 | 70 6c 61 6e 27 5c 22 20 |\"'renew|plan'\" |
|000060d0| 5c 28 33 35 37 20 63 68 | 61 72 61 63 74 65 72 73 |\(357 ch|aracters|
|000060e0| 5c 29 0a 20 20 73 65 64 | 20 22 73 2f 5e 58 2f 2f |\). sed| "s/^X//|
|000060f0| 22 20 3e 27 72 65 6e 65 | 77 70 6c 61 6e 27 20 3c |" >'rene|wplan' <|
|00006100| 3c 27 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 27 0a 58 |<'END_OF|_FILE'.X|
|00006110| 23 21 2f 62 69 6e 2f 73 | 68 0a 58 20 20 20 20 69 |#!/bin/s|h.X i|
|00006120| 66 20 5b 20 2d 66 20 24 | 48 4f 4d 45 2f 2e 70 6c |f [ -f $|HOME/.pl|
|00006130| 61 6e 70 69 64 20 5d 20 | 3b 20 74 68 65 6e 0a 58 |anpid ] |; then.X|
|00006140| 20 20 20 20 20 20 20 20 | 6b 69 6c 6c 20 2d 39 20 | |kill -9 |
|00006150| 60 63 61 74 20 24 48 4f | 4d 45 2f 2e 70 6c 61 6e |`cat $HO|ME/.plan|
|00006160| 70 69 64 60 20 3e 2f 64 | 65 76 2f 6e 75 6c 6c 20 |pid` >/d|ev/null |
|00006170| 32 3e 26 31 20 3b 0a 58 | 20 20 20 20 20 20 20 20 |2>&1 ;.X| |
|00006180| 72 6d 20 2d 66 20 24 48 | 4f 4d 45 2f 2e 70 6c 61 |rm -f $H|OME/.pla|
|00006190| 6e 20 24 48 4f 4d 45 2f | 2e 70 6c 61 6e 70 69 64 |n $HOME/|.planpid|
|000061a0| 20 3e 2f 64 65 76 2f 6e | 75 6c 6c 20 32 3e 26 31 | >/dev/n|ull 2>&1|
|000061b0| 20 3b 0a 58 20 20 20 20 | 66 69 0a 58 20 20 20 20 | ;.X |fi.X |
|000061c0| 69 66 20 5b 20 21 20 2d | 66 20 24 48 4f 4d 45 2f |if [ ! -|f $HOME/|
|000061d0| 2e 66 69 6e 67 65 72 65 | 65 73 20 5d 20 3b 20 74 |.fingere|es ] ; t|
|000061e0| 68 65 6e 0a 58 20 20 20 | 20 20 20 20 20 65 63 68 |hen.X | ech|
|000061f0| 6f 20 22 20 22 20 3e 24 | 48 4f 4d 45 2f 2e 66 69 |o " " >$|HOME/.fi|
|00006200| 6e 67 65 72 65 65 73 20 | 20 3b 0a 58 20 20 20 20 |ngerees | ;.X |
|00006210| 66 69 3b 0a 58 20 20 20 | 20 24 48 4f 4d 45 2f 62 |fi;.X | $HOME/b|
|00006220| 69 6e 2f 6e 61 6d 65 64 | 70 2f 70 6c 61 6e 20 2d |in/named|p/plan -|
|00006230| 66 20 24 48 4f 4d 45 2f | 2e 70 6c 61 6e 20 24 48 |f $HOME/|.plan $H|
|00006240| 4f 4d 45 2f 62 69 6e 2f | 6e 61 6d 65 64 70 2f 70 |OME/bin/|namedp/p|
|00006250| 6c 61 6e 6e 65 72 20 26 | 20 73 6c 65 65 70 20 32 |lanner &| sleep 2|
|00006260| 3b 0a 58 20 20 20 20 63 | 68 6d 6f 64 20 61 2b 72 |;.X c|hmod a+r|
|00006270| 20 24 48 4f 4d 45 2f 2e | 70 6c 61 6e 0a 58 0a 45 | $HOME/.|plan.X.E|
|00006280| 4e 44 5f 4f 46 5f 46 49 | 4c 45 0a 20 20 69 66 20 |ND_OF_FI|LE. if |
|00006290| 74 65 73 74 20 33 35 37 | 20 2d 6e 65 20 60 77 63 |test 357| -ne `wc|
|000062a0| 20 2d 63 20 3c 27 72 65 | 6e 65 77 70 6c 61 6e 27 | -c <'re|newplan'|
|000062b0| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|000062c0| 20 73 68 61 72 3a 20 5c | 22 27 72 65 6e 65 77 70 | shar: \|"'renewp|
|000062d0| 6c 61 6e 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |lan'\" u|npacked |
|000062e0| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|000062f0| 0a 20 20 66 69 0a 20 20 | 63 68 6d 6f 64 20 2b 78 |. fi. |chmod +x|
|00006300| 20 27 72 65 6e 65 77 70 | 6c 61 6e 27 0a 20 20 23 | 'renewp|lan'. #|
|00006310| 20 65 6e 64 20 6f 66 20 | 27 72 65 6e 65 77 70 6c | end of |'renewpl|
|00006320| 61 6e 27 0a 66 69 0a 65 | 63 68 6f 20 73 68 61 72 |an'.fi.e|cho shar|
|00006330| 3a 20 45 6e 64 20 6f 66 | 20 61 72 63 68 69 76 65 |: End of| archive|
|00006340| 20 31 20 5c 28 6f 66 20 | 31 5c 29 2e 0a 63 70 20 | 1 \(of |1\)..cp |
|00006350| 2f 64 65 76 2f 6e 75 6c | 6c 20 61 72 6b 31 69 73 |/dev/nul|l ark1is|
|00006360| 64 6f 6e 65 0a 4d 49 53 | 53 49 4e 47 3d 22 22 0a |done.MIS|SING="".|
|00006370| 66 6f 72 20 49 20 69 6e | 20 31 20 3b 20 64 6f 0a |for I in| 1 ; do.|
|00006380| 20 20 20 20 69 66 20 74 | 65 73 74 20 21 20 2d 66 | if t|est ! -f|
|00006390| 20 61 72 6b 24 7b 49 7d | 69 73 64 6f 6e 65 20 3b | ark${I}|isdone ;|
|000063a0| 20 74 68 65 6e 0a 09 4d | 49 53 53 49 4e 47 3d 22 | then..M|ISSING="|
|000063b0| 24 7b 4d 49 53 53 49 4e | 47 7d 20 24 7b 49 7d 22 |${MISSIN|G} ${I}"|
|000063c0| 0a 20 20 20 20 66 69 0a | 64 6f 6e 65 0a 69 66 20 |. fi.|done.if |
|000063d0| 74 65 73 74 20 22 24 7b | 4d 49 53 53 49 4e 47 7d |test "${|MISSING}|
|000063e0| 22 20 3d 20 22 22 20 3b | 20 74 68 65 6e 0a 20 20 |" = "" ;| then. |
|000063f0| 20 20 65 63 68 6f 20 59 | 6f 75 20 68 61 76 65 20 | echo Y|ou have |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.