home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: 4085
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| C source, 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 50 61 |.sources|.misc.Pa|
|00000020| 74 68 3a 20 73 70 61 72 | 6b 79 21 6b 65 6e 74 0a |th: spar|ky!kent.|
|00000030| 46 72 6f 6d 3a 20 67 73 | 34 74 40 76 69 72 67 69 |From: gs|4t@virgi|
|00000040| 6e 69 61 2e 65 64 75 20 | 28 47 6e 61 6e 61 73 65 |nia.edu |(Gnanase|
|00000050| 6b 61 72 61 6e 20 20 53 | 77 61 6d 69 6e 61 74 68 |karan S|waminath|
|00000060| 61 6e 29 0a 53 75 62 6a | 65 63 74 3a 20 20 76 33 |an).Subj|ect: v3|
|00000070| 33 69 30 38 30 3a 20 20 | 6e 68 75 70 20 2d 20 61 |3i080: |nhup - a|
|00000080| 6e 6f 74 68 65 72 20 6e | 6f 68 75 70 20 70 72 6f |nother n|ohup pro|
|00000090| 67 72 61 6d 2c 20 50 61 | 72 74 30 31 2f 30 31 0a |gram, Pa|rt01/01.|
|000000a0| 4d 65 73 73 61 67 65 2d | 49 44 3a 20 3c 31 39 39 |Message-|ID: <199|
|000000b0| 32 4e 6f 76 31 39 2e 30 | 33 32 30 31 37 2e 32 37 |2Nov19.0|32017.27|
|000000c0| 33 36 30 40 73 70 61 72 | 6b 79 2e 69 6d 64 2e 73 |360@spar|ky.imd.s|
|000000d0| 74 65 72 6c 69 6e 67 2e | 63 6f 6d 3e 0a 46 6f 6c |terling.|com>.Fol|
|000000e0| 6c 6f 77 75 70 2d 54 6f | 3a 20 63 6f 6d 70 2e 73 |lowup-To|: comp.s|
|000000f0| 6f 75 72 63 65 73 2e 64 | 0a 58 2d 4d 64 34 2d 53 |ources.d|.X-Md4-S|
|00000100| 69 67 6e 61 74 75 72 65 | 3a 20 38 65 66 64 66 35 |ignature|: 8efdf5|
|00000110| 35 36 34 36 62 30 38 64 | 31 37 61 33 32 64 33 31 |5646b08d|17a32d31|
|00000120| 63 62 35 63 36 35 32 32 | 66 35 0a 4b 65 79 77 6f |cb5c6522|f5.Keywo|
|00000130| 72 64 73 3a 20 6e 6f 68 | 75 70 20 6e 68 75 70 20 |rds: noh|up nhup |
|00000140| 73 69 67 6e 61 6c 0a 53 | 65 6e 64 65 72 3a 20 6b |signal.S|ender: k|
|00000150| 65 6e 74 40 73 70 61 72 | 6b 79 2e 69 6d 64 2e 73 |ent@spar|ky.imd.s|
|00000160| 74 65 72 6c 69 6e 67 2e | 63 6f 6d 20 28 4b 65 6e |terling.|com (Ken|
|00000170| 74 20 4c 61 6e 64 66 69 | 65 6c 64 29 0a 4f 72 67 |t Landfi|eld).Org|
|00000180| 61 6e 69 7a 61 74 69 6f | 6e 3a 20 55 6e 69 76 2e |anizatio|n: Univ.|
|00000190| 20 6f 66 20 56 69 72 67 | 69 6e 69 61 0a 44 61 74 | of Virg|inia.Dat|
|000001a0| 65 3a 20 54 68 75 2c 20 | 31 39 20 4e 6f 76 20 31 |e: Thu, |19 Nov 1|
|000001b0| 39 39 32 20 30 33 3a 32 | 30 3a 31 37 20 47 4d 54 |992 03:2|0:17 GMT|
|000001c0| 0a 41 70 70 72 6f 76 65 | 64 3a 20 6b 65 6e 74 40 |.Approve|d: kent@|
|000001d0| 73 70 61 72 6b 79 2e 69 | 6d 64 2e 73 74 65 72 6c |sparky.i|md.sterl|
|000001e0| 69 6e 67 2e 63 6f 6d 0a | 4c 69 6e 65 73 3a 20 31 |ing.com.|Lines: 1|
|000001f0| 33 31 0a 0a 53 75 62 6d | 69 74 74 65 64 2d 62 79 |31..Subm|itted-by|
|00000200| 3a 20 67 73 34 74 40 76 | 69 72 67 69 6e 69 61 2e |: gs4t@v|irginia.|
|00000210| 65 64 75 20 28 47 6e 61 | 6e 61 73 65 6b 61 72 61 |edu (Gna|nasekara|
|00000220| 6e 20 20 53 77 61 6d 69 | 6e 61 74 68 61 6e 29 0a |n Swami|nathan).|
|00000230| 50 6f 73 74 69 6e 67 2d | 6e 75 6d 62 65 72 3a 20 |Posting-|number: |
|00000240| 56 6f 6c 75 6d 65 20 33 | 33 2c 20 49 73 73 75 65 |Volume 3|3, Issue|
|00000250| 20 38 30 0a 41 72 63 68 | 69 76 65 2d 6e 61 6d 65 | 80.Arch|ive-name|
|00000260| 3a 20 6e 68 75 70 2f 70 | 61 72 74 30 31 0a 45 6e |: nhup/p|art01.En|
|00000270| 76 69 72 6f 6e 6d 65 6e | 74 3a 20 55 4e 49 58 0a |vironmen|t: UNIX.|
|00000280| 0a 6e 68 75 70 20 65 78 | 65 63 75 74 65 73 20 74 |.nhup ex|ecutes t|
|00000290| 68 65 20 63 6f 6d 6d 61 | 6e 64 20 77 69 74 68 20 |he comma|nd with |
|000002a0| 74 68 65 20 67 69 76 65 | 6e 20 61 72 67 75 6d 65 |the give|n argume|
|000002b0| 6e 74 73 0a 69 6e 20 74 | 68 65 20 62 61 63 6b 67 |nts.in t|he backg|
|000002c0| 72 6f 75 6e 64 20 20 61 | 6e 64 20 72 65 74 75 72 |round a|nd retur|
|000002d0| 6e 73 20 69 6d 6d 65 64 | 69 61 74 65 6c 79 20 77 |ns immed|iately w|
|000002e0| 69 74 68 6f 75 74 20 0a | 77 61 69 74 69 6e 67 20 |ithout .|waiting |
|000002f0| 20 66 6f 72 20 74 68 65 | 20 20 63 6f 6d 6d 61 6e | for the| comman|
|00000300| 64 20 74 6f 20 63 6f 6d | 70 6c 65 74 65 2e 20 20 |d to com|plete. |
|00000310| 41 6c 73 6f 2c 20 20 74 | 68 65 0a 70 72 6f 63 65 |Also, t|he.proce|
|00000320| 73 73 20 65 78 65 63 75 | 74 69 6e 67 20 74 68 65 |ss execu|ting the|
|00000330| 20 63 6f 6d 6d 61 6e 64 | 20 69 73 20 20 69 6d 6d | command| is imm|
|00000340| 75 6e 65 20 74 6f 20 68 | 61 6e 67 75 70 0a 28 48 |une to h|angup.(H|
|00000350| 55 50 29 20 61 6e 64 20 | 71 75 69 74 20 28 51 55 |UP) and |quit (QU|
|00000360| 49 54 29 20 73 69 67 6e | 61 6c 73 2e 0a 0a 55 6e |IT) sign|als...Un|
|00000370| 6c 69 6b 65 20 20 6e 6f | 68 75 70 2c 20 20 6e 68 |like no|hup, nh|
|00000380| 75 70 20 64 6f 65 73 20 | 6e 6f 74 20 72 65 64 69 |up does |not redi|
|00000390| 72 65 63 74 20 74 68 65 | 20 20 73 74 64 6f 75 74 |rect the| stdout|
|000003a0| 0a 61 6e 64 20 20 74 68 | 65 20 73 74 64 65 72 72 |.and th|e stderr|
|000003b0| 20 6f 66 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 | of the |command |
|000003c0| 74 6f 20 20 6e 6f 68 75 | 70 2e 6f 75 74 20 66 69 |to nohu|p.out fi|
|000003d0| 6c 65 2e 0a 49 6e 73 74 | 65 61 64 2c 20 69 74 20 |le..Inst|ead, it |
|000003e0| 6c 65 61 76 65 73 20 74 | 68 65 20 6f 70 74 69 6f |leaves t|he optio|
|000003f0| 6e 20 74 6f 20 74 68 65 | 20 75 73 65 72 2e 20 49 |n to the| user. I|
|00000400| 66 20 20 74 68 65 0a 75 | 73 65 72 20 66 61 69 6c |f the.u|ser fail|
|00000410| 73 20 74 6f 20 73 70 65 | 63 69 66 79 20 61 6e 79 |s to spe|cify any|
|00000420| 2c 20 74 68 65 20 73 74 | 64 6f 75 74 20 61 6e 64 |, the st|dout and|
|00000430| 20 74 68 65 20 73 74 64 | 2d 0a 65 72 72 20 61 72 | the std|-.err ar|
|00000440| 65 20 72 65 64 69 72 65 | 63 74 65 64 20 74 6f 20 |e redire|cted to |
|00000450| 2f 64 65 76 2f 6e 75 6c | 6c 2e 0a 2d 2d 2d 2d 2d |/dev/nul|l..-----|
|00000460| 2d 2d 2d 2d 2d 0a 23 21 | 20 2f 62 69 6e 2f 73 68 |-----.#!| /bin/sh|
|00000470| 0a 23 20 54 68 69 73 20 | 69 73 20 61 20 73 68 65 |.# This |is a she|
|00000480| 6c 6c 20 61 72 63 68 69 | 76 65 2e 20 20 52 65 6d |ll archi|ve. Rem|
|00000490| 6f 76 65 20 61 6e 79 74 | 68 69 6e 67 20 62 65 66 |ove anyt|hing bef|
|000004a0| 6f 72 65 20 74 68 69 73 | 20 6c 69 6e 65 2c 20 74 |ore this| line, t|
|000004b0| 68 65 6e 20 66 65 65 64 | 20 69 74 0a 23 20 69 6e |hen feed| it.# in|
|000004c0| 74 6f 20 61 20 73 68 65 | 6c 6c 20 76 69 61 20 22 |to a she|ll via "|
|000004d0| 73 68 20 66 69 6c 65 22 | 20 6f 72 20 73 69 6d 69 |sh file"| or simi|
|000004e0| 6c 61 72 2e 20 20 54 6f | 20 6f 76 65 72 77 72 69 |lar. To| overwri|
|000004f0| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|00000500| 73 2c 0a 23 20 74 79 70 | 65 20 22 73 68 20 66 69 |s,.# typ|e "sh fi|
|00000510| 6c 65 20 2d 63 22 2e 0a | 23 20 43 6f 6e 74 65 6e |le -c"..|# Conten|
|00000520| 74 73 3a 20 20 4d 61 6b | 65 66 69 6c 65 20 6e 68 |ts: Mak|efile nh|
|00000530| 75 70 2e 63 0a 23 20 57 | 72 61 70 70 65 64 20 62 |up.c.# W|rapped b|
|00000540| 79 20 6b 65 6e 74 40 73 | 70 61 72 6b 79 20 6f 6e |y kent@s|parky on|
|00000550| 20 57 65 64 20 4e 6f 76 | 20 31 38 20 32 31 3a 31 | Wed Nov| 18 21:1|
|00000560| 34 3a 34 38 20 31 39 39 | 32 0a 50 41 54 48 3d 2f |4:48 199|2.PATH=/|
|00000570| 62 69 6e 3a 2f 75 73 72 | 2f 62 69 6e 3a 2f 75 73 |bin:/usr|/bin:/us|
|00000580| 72 2f 75 63 62 3a 2f 75 | 73 72 2f 6c 6f 63 61 6c |r/ucb:/u|sr/local|
|00000590| 2f 62 69 6e 3a 2f 75 73 | 72 2f 6c 62 69 6e 20 3b |/bin:/us|r/lbin ;|
|000005a0| 20 65 78 70 6f 72 74 20 | 50 41 54 48 0a 65 63 68 | export |PATH.ech|
|000005b0| 6f 20 49 66 20 74 68 69 | 73 20 61 72 63 68 69 76 |o If thi|s archiv|
|000005c0| 65 20 69 73 20 63 6f 6d | 70 6c 65 74 65 2c 20 79 |e is com|plete, y|
|000005d0| 6f 75 20 77 69 6c 6c 20 | 73 65 65 20 74 68 65 20 |ou will |see the |
|000005e0| 66 6f 6c 6c 6f 77 69 6e | 67 20 6d 65 73 73 61 67 |followin|g messag|
|000005f0| 65 3a 0a 65 63 68 6f 20 | 27 20 20 20 20 20 20 20 |e:.echo |' |
|00000600| 20 20 20 22 73 68 61 72 | 3a 20 45 6e 64 20 6f 66 | "shar|: End of|
|00000610| 20 61 72 63 68 69 76 65 | 2e 22 27 0a 69 66 20 74 | archive|."'.if t|
|00000620| 65 73 74 20 2d 66 20 27 | 4d 61 6b 65 66 69 6c 65 |est -f '|Makefile|
|00000630| 27 20 2d 61 20 22 24 7b | 31 7d 22 20 21 3d 20 22 |' -a "${|1}" != "|
|00000640| 2d 63 22 20 3b 20 74 68 | 65 6e 20 0a 20 20 65 63 |-c" ; th|en . ec|
|00000650| 68 6f 20 73 68 61 72 3a | 20 57 69 6c 6c 20 6e 6f |ho shar:| Will no|
|00000660| 74 20 63 6c 6f 62 62 65 | 72 20 65 78 69 73 74 69 |t clobbe|r existi|
|00000670| 6e 67 20 66 69 6c 65 20 | 5c 22 27 4d 61 6b 65 66 |ng file |\"'Makef|
|00000680| 69 6c 65 27 5c 22 0a 65 | 6c 73 65 0a 20 20 65 63 |ile'\".e|lse. ec|
|00000690| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|000006a0| 69 6e 67 20 5c 22 27 4d | 61 6b 65 66 69 6c 65 27 |ing \"'M|akefile'|
|000006b0| 5c 22 20 5c 28 37 39 20 | 63 68 61 72 61 63 74 65 |\" \(79 |characte|
|000006c0| 72 73 5c 29 0a 20 20 73 | 65 64 20 22 73 2f 5e 58 |rs\). s|ed "s/^X|
|000006d0| 2f 2f 22 20 3e 27 4d 61 | 6b 65 66 69 6c 65 27 20 |//" >'Ma|kefile' |
|000006e0| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|000006f0| 58 43 43 3d 67 63 63 0a | 58 0a 58 0a 58 6e 68 75 |XCC=gcc.|X.X.Xnhu|
|00000700| 70 3a 20 6e 68 75 70 2e | 63 0a 58 09 24 28 43 43 |p: nhup.|c.X.$(CC|
|00000710| 29 20 2d 6f 20 6e 68 75 | 70 20 6e 68 75 70 2e 63 |) -o nhu|p nhup.c|
|00000720| 0a 58 0a 58 69 6e 73 74 | 61 6c 6c 3a 20 6e 68 75 |.X.Xinst|all: nhu|
|00000730| 70 0a 58 09 63 70 20 6e | 68 75 70 20 2f 62 69 6e |p.X.cp n|hup /bin|
|00000740| 2f 6e 68 75 70 20 0a 45 | 4e 44 5f 4f 46 5f 46 49 |/nhup .E|ND_OF_FI|
|00000750| 4c 45 0a 20 20 69 66 20 | 74 65 73 74 20 37 39 20 |LE. if |test 79 |
|00000760| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 4d 61 6b |-ne `wc |-c <'Mak|
|00000770| 65 66 69 6c 65 27 60 3b | 20 74 68 65 6e 0a 20 20 |efile'`;| then. |
|00000780| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 5c 22 27 | echo s|har: \"'|
|00000790| 4d 61 6b 65 66 69 6c 65 | 27 5c 22 20 75 6e 70 61 |Makefile|'\" unpa|
|000007a0| 63 6b 65 64 20 77 69 74 | 68 20 77 72 6f 6e 67 20 |cked wit|h wrong |
|000007b0| 73 69 7a 65 21 0a 20 20 | 66 69 0a 20 20 23 20 65 |size!. |fi. # e|
|000007c0| 6e 64 20 6f 66 20 27 4d | 61 6b 65 66 69 6c 65 27 |nd of 'M|akefile'|
|000007d0| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|000007e0| 6e 68 75 70 2e 63 27 20 | 2d 61 20 22 24 7b 31 7d |nhup.c' |-a "${1}|
|000007f0| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00000800| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00000810| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00000820| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00000830| 27 6e 68 75 70 2e 63 27 | 5c 22 0a 65 6c 73 65 0a |'nhup.c'|\".else.|
|00000840| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 45 78 74 | echo s|har: Ext|
|00000850| 72 61 63 74 69 6e 67 20 | 5c 22 27 6e 68 75 70 2e |racting |\"'nhup.|
|00000860| 63 27 5c 22 20 5c 28 31 | 36 34 34 20 63 68 61 72 |c'\" \(1|644 char|
|00000870| 61 63 74 65 72 73 5c 29 | 0a 20 20 73 65 64 20 22 |acters\)|. sed "|
|00000880| 73 2f 5e 58 2f 2f 22 20 | 3e 27 6e 68 75 70 2e 63 |s/^X//" |>'nhup.c|
|00000890| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|000008a0| 27 0a 58 2f 2a 09 0a 58 | 09 4e 41 4d 45 0a 58 09 |'.X/*..X|.NAME.X.|
|000008b0| 09 6e 68 75 70 20 2d 2d | 20 72 75 6e 20 61 20 63 |.nhup --| run a c|
|000008c0| 6f 6d 6d 61 6e 64 20 69 | 6d 6d 75 6e 65 20 74 6f |ommand i|mmune to|
|000008d0| 20 68 61 6e 67 75 70 73 | 20 61 6e 64 20 71 75 69 | hangups| and qui|
|000008e0| 74 73 2e 0a 58 0a 58 09 | 53 59 4e 4f 50 53 49 53 |ts..X.X.|SYNOPSIS|
|000008f0| 0a 58 09 09 6e 68 75 70 | 20 63 6f 6d 6d 61 6e 64 |.X..nhup| command|
|00000900| 20 5b 20 61 72 67 75 6d | 65 6e 74 73 20 5d 0a 58 | [ argum|ents ].X|
|00000910| 0a 58 09 44 45 53 43 52 | 49 50 54 49 4f 4e 0a 58 |.X.DESCR|IPTION.X|
|00000920| 09 09 6e 68 75 70 20 65 | 78 65 63 75 74 65 73 20 |..nhup e|xecutes |
|00000930| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 77 69 74 68 |the comm|and with|
|00000940| 20 74 68 65 20 67 69 76 | 65 6e 20 61 72 67 75 6d | the giv|en argum|
|00000950| 65 6e 74 73 0a 58 09 09 | 69 6e 20 74 68 65 20 62 |ents.X..|in the b|
|00000960| 61 63 6b 67 72 6f 75 6e | 64 20 20 61 6e 64 20 72 |ackgroun|d and r|
|00000970| 65 74 75 72 6e 73 20 69 | 6d 6d 65 64 69 61 74 65 |eturns i|mmediate|
|00000980| 6c 79 20 77 69 74 68 6f | 75 74 20 0a 58 09 09 77 |ly witho|ut .X..w|
|00000990| 61 69 74 69 6e 67 20 20 | 66 6f 72 20 74 68 65 20 |aiting |for the |
|000009a0| 20 63 6f 6d 6d 61 6e 64 | 20 74 6f 20 63 6f 6d 70 | command| to comp|
|000009b0| 6c 65 74 65 2e 20 20 41 | 6c 73 6f 2c 20 20 74 68 |lete. A|lso, th|
|000009c0| 65 0a 58 09 09 70 72 6f | 63 65 73 73 20 65 78 65 |e.X..pro|cess exe|
|000009d0| 63 75 74 69 6e 67 20 74 | 68 65 20 63 6f 6d 6d 61 |cuting t|he comma|
|000009e0| 6e 64 20 69 73 20 20 69 | 6d 6d 75 6e 65 20 74 6f |nd is i|mmune to|
|000009f0| 20 68 61 6e 67 75 70 0a | 58 09 09 28 48 55 50 29 | hangup.|X..(HUP)|
|00000a00| 20 61 6e 64 20 71 75 69 | 74 20 28 51 55 49 54 29 | and qui|t (QUIT)|
|00000a10| 20 73 69 67 6e 61 6c 73 | 2e 0a 58 0a 58 09 09 55 | signals|..X.X..U|
|00000a20| 6e 6c 69 6b 65 20 20 6e | 6f 68 75 70 2c 20 20 6e |nlike n|ohup, n|
|00000a30| 68 75 70 20 64 6f 65 73 | 20 6e 6f 74 20 72 65 64 |hup does| not red|
|00000a40| 69 72 65 63 74 20 74 68 | 65 20 20 73 74 64 6f 75 |irect th|e stdou|
|00000a50| 74 0a 58 09 09 61 6e 64 | 20 20 74 68 65 20 73 74 |t.X..and| the st|
|00000a60| 64 65 72 72 20 6f 66 20 | 74 68 65 20 63 6f 6d 6d |derr of |the comm|
|00000a70| 61 6e 64 20 74 6f 20 20 | 6e 6f 68 75 70 2e 6f 75 |and to |nohup.ou|
|00000a80| 74 20 66 69 6c 65 2e 0a | 58 09 09 49 6e 73 74 65 |t file..|X..Inste|
|00000a90| 61 64 2c 20 69 74 20 6c | 65 61 76 65 73 20 74 68 |ad, it l|eaves th|
|00000aa0| 65 20 6f 70 74 69 6f 6e | 20 74 6f 20 74 68 65 20 |e option| to the |
|00000ab0| 75 73 65 72 2e 20 49 66 | 20 20 74 68 65 0a 58 09 |user. If| the.X.|
|00000ac0| 09 75 73 65 72 20 66 61 | 69 6c 73 20 74 6f 20 73 |.user fa|ils to s|
|00000ad0| 70 65 63 69 66 79 20 61 | 6e 79 2c 20 74 68 65 20 |pecify a|ny, the |
|00000ae0| 73 74 64 6f 75 74 20 61 | 6e 64 20 74 68 65 20 73 |stdout a|nd the s|
|00000af0| 74 64 2d 0a 58 09 09 65 | 72 72 20 61 72 65 20 72 |td-.X..e|rr are r|
|00000b00| 65 64 69 72 65 63 74 65 | 64 20 74 6f 20 2f 64 65 |edirecte|d to /de|
|00000b10| 76 2f 6e 75 6c 6c 2e 0a | 58 0a 58 09 45 58 41 4d |v/null..|X.X.EXAM|
|00000b20| 50 4c 45 53 0a 58 09 20 | 20 20 20 25 20 6e 68 75 |PLES.X. | % nhu|
|00000b30| 70 20 70 72 6f 67 31 20 | 7c 20 70 72 6f 67 32 0a |p prog1 || prog2.|
|00000b40| 58 09 09 52 75 6e 20 20 | 70 72 6f 67 31 20 61 6e |X..Run |prog1 an|
|00000b50| 64 20 20 70 69 70 65 20 | 20 69 74 73 20 6f 75 74 |d pipe | its out|
|00000b60| 70 75 74 20 74 6f 20 70 | 72 6f 67 32 20 20 61 6e |put to p|rog2 an|
|00000b70| 64 20 72 65 2d 0a 58 09 | 09 64 69 72 65 63 74 20 |d re-.X.|.direct |
|00000b80| 74 68 65 20 73 74 64 65 | 72 72 20 6f 66 20 70 72 |the stde|rr of pr|
|00000b90| 6f 67 31 20 74 6f 20 2f | 64 65 76 2f 6e 75 6c 6c |og1 to /|dev/null|
|00000ba0| 2e 0a 58 0a 58 09 20 20 | 20 20 25 20 6e 68 75 70 |..X.X. | % nhup|
|00000bb0| 20 70 72 6f 67 31 20 3e | 20 74 65 73 74 20 32 3e | prog1 >| test 2>|
|00000bc0| 20 74 65 73 74 65 72 72 | 0a 58 09 09 52 75 6e 20 | testerr|.X..Run |
|00000bd0| 70 72 6f 67 31 20 20 62 | 79 20 64 69 72 65 63 74 |prog1 b|y direct|
|00000be0| 69 6e 67 20 69 74 73 20 | 73 74 64 6f 75 74 20 74 |ing its |stdout t|
|00000bf0| 6f 20 74 65 73 74 20 61 | 6e 64 20 69 74 73 0a 58 |o test a|nd its.X|
|00000c00| 09 09 73 74 64 65 72 72 | 20 74 6f 20 74 65 73 74 |..stderr| to test|
|00000c10| 65 72 72 2e 0a 58 09 09 | 0a 58 09 20 20 20 20 25 |err..X..|.X. %|
|00000c20| 20 6e 68 75 70 20 70 72 | 6f 67 31 0a 58 09 09 52 | nhup pr|og1.X..R|
|00000c30| 75 6e 20 70 72 6f 67 31 | 20 20 62 79 20 64 69 72 |un prog1| by dir|
|00000c40| 65 63 74 69 6e 67 20 69 | 74 73 20 73 74 64 6f 75 |ecting i|ts stdou|
|00000c50| 74 20 61 6e 64 20 20 69 | 74 73 20 73 74 64 65 72 |t and i|ts stder|
|00000c60| 72 0a 58 09 09 74 6f 20 | 2f 64 65 76 2f 6e 75 6c |r.X..to |/dev/nul|
|00000c70| 6c 0a 58 0a 58 09 53 45 | 45 20 41 4c 53 4f 0a 58 |l.X.X.SE|E ALSO.X|
|00000c80| 09 09 6e 6f 68 75 70 28 | 31 29 2c 20 73 69 67 6e |..nohup(|1), sign|
|00000c90| 61 6c 28 33 29 0a 58 0a | 58 09 42 55 47 53 0a 58 |al(3).X.|X.BUGS.X|
|00000ca0| 09 09 53 65 6e 64 20 74 | 68 65 6d 20 74 6f 20 47 |..Send t|hem to G|
|00000cb0| 6e 61 6e 61 73 65 6b 61 | 72 61 6e 20 53 77 61 6d |nanaseka|ran Swam|
|00000cc0| 69 6e 61 74 68 61 6e 20 | 3c 67 73 34 74 40 76 69 |inathan |<gs4t@vi|
|00000cd0| 72 67 69 6e 69 61 2e 65 | 64 75 3e 0a 58 2a 2f 0a |rginia.e|du>.X*/.|
|00000ce0| 58 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 75 6e 69 |X.X#incl|ude <uni|
|00000cf0| 73 74 64 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |std.h>.X|#include|
|00000d00| 20 3c 66 63 6e 74 6c 2e | 68 3e 0a 58 23 69 6e 63 | <fcntl.|h>.X#inc|
|00000d10| 6c 75 64 65 20 3c 73 74 | 64 69 6f 2e 68 3e 0a 58 |lude <st|dio.h>.X|
|00000d20| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 6c 69 62 |#include| <stdlib|
|00000d30| 2e 68 3e 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 73 |.h>.X#in|clude <s|
|00000d40| 79 73 2f 73 69 67 6e 61 | 6c 2e 68 3e 0a 58 0a 58 |ys/signa|l.h>.X.X|
|00000d50| 73 74 61 74 69 63 20 76 | 6f 69 64 20 65 72 72 6f |static v|oid erro|
|00000d60| 72 28 63 6f 6e 73 74 20 | 63 68 61 72 2a 20 61 31 |r(const |char* a1|
|00000d70| 29 20 7b 20 70 65 72 72 | 6f 72 28 61 31 29 3b 20 |) { perr|or(a1); |
|00000d80| 65 78 69 74 28 31 29 3b | 20 7d 0a 58 0a 58 69 6e |exit(1);| }.X.Xin|
|00000d90| 74 20 6d 61 69 6e 28 69 | 6e 74 20 61 63 2c 20 63 |t main(i|nt ac, c|
|00000da0| 68 61 72 2a 2a 20 61 76 | 29 0a 58 7b 0a 58 09 69 |har** av|).X{.X.i|
|00000db0| 6e 74 20 70 20 3d 20 66 | 6f 72 6b 28 29 3b 0a 58 |nt p = f|ork();.X|
|00000dc0| 09 69 66 20 28 70 20 3d | 3d 20 2d 31 29 0a 58 09 |.if (p =|= -1).X.|
|00000dd0| 09 65 72 72 6f 72 28 61 | 76 5b 30 5d 29 3b 0a 58 |.error(a|v[0]);.X|
|00000de0| 09 69 66 20 28 70 20 3d | 3d 20 30 29 20 7b 0a 58 |.if (p =|= 0) {.X|
|00000df0| 09 09 2f 2a 20 63 68 69 | 6c 64 20 70 72 6f 63 65 |../* chi|ld proce|
|00000e00| 73 73 20 2a 2f 0a 58 09 | 09 69 6e 74 20 66 64 20 |ss */.X.|.int fd |
|00000e10| 3d 20 6f 70 65 6e 28 22 | 2f 64 65 76 2f 6e 75 6c |= open("|/dev/nul|
|00000e20| 6c 22 2c 20 4f 5f 57 52 | 4f 4e 4c 59 29 3b 0a 58 |l", O_WR|ONLY);.X|
|00000e30| 0a 58 09 09 73 69 67 6e | 61 6c 28 53 49 47 48 55 |.X..sign|al(SIGHU|
|00000e40| 50 2c 20 53 49 47 5f 49 | 47 4e 29 3b 0a 58 09 09 |P, SIG_I|GN);.X..|
|00000e50| 73 69 67 6e 61 6c 28 53 | 49 47 51 55 49 54 2c 20 |signal(S|IGQUIT, |
|00000e60| 53 49 47 5f 49 47 4e 29 | 3b 0a 58 0a 58 09 09 69 |SIG_IGN)|;.X.X..i|
|00000e70| 66 20 28 20 69 73 61 74 | 74 79 28 53 54 44 4f 55 |f ( isat|ty(STDOU|
|00000e80| 54 5f 46 49 4c 45 4e 4f | 29 20 26 26 20 64 75 70 |T_FILENO|) && dup|
|00000e90| 32 28 66 64 2c 20 53 54 | 44 4f 55 54 5f 46 49 4c |2(fd, ST|DOUT_FIL|
|00000ea0| 45 4e 4f 29 20 3d 3d 20 | 2d 31 20 29 0a 58 09 09 |ENO) == |-1 ).X..|
|00000eb0| 09 65 72 72 6f 72 28 61 | 76 5b 30 5d 29 3b 0a 58 |.error(a|v[0]);.X|
|00000ec0| 09 09 69 66 20 28 20 69 | 73 61 74 74 79 28 53 54 |..if ( i|satty(ST|
|00000ed0| 44 45 52 52 5f 46 49 4c | 45 4e 4f 29 20 26 26 20 |DERR_FIL|ENO) && |
|00000ee0| 64 75 70 32 28 66 64 2c | 20 53 54 44 45 52 52 5f |dup2(fd,| STDERR_|
|00000ef0| 46 49 4c 45 4e 4f 29 20 | 3d 3d 20 2d 31 20 29 0a |FILENO) |== -1 ).|
|00000f00| 58 09 09 09 65 72 72 6f | 72 28 61 76 5b 30 5d 29 |X...erro|r(av[0])|
|00000f10| 3b 0a 58 09 09 0a 58 09 | 09 65 78 65 63 76 70 28 |;.X...X.|.execvp(|
|00000f20| 61 76 5b 31 5d 2c 20 61 | 76 2b 31 29 3b 0a 58 09 |av[1], a|v+1);.X.|
|00000f30| 09 65 72 72 6f 72 28 61 | 76 5b 31 5d 29 3b 0a 58 |.error(a|v[1]);.X|
|00000f40| 09 7d 0a 58 09 72 65 74 | 75 72 6e 20 30 3b 0a 58 |.}.X.ret|urn 0;.X|
|00000f50| 7d 0a 58 0a 58 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |}.X.X.EN|D_OF_FIL|
|00000f60| 45 0a 20 20 69 66 20 74 | 65 73 74 20 31 36 34 34 |E. if t|est 1644|
|00000f70| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 27 6e 68 | -ne `wc| -c <'nh|
|00000f80| 75 70 2e 63 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |up.c'`; |then. |
|00000f90| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 6e | echo sh|ar: \"'n|
|00000fa0| 68 75 70 2e 63 27 5c 22 | 20 75 6e 70 61 63 6b 65 |hup.c'\"| unpacke|
|00000fb0| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00000fc0| 65 21 0a 20 20 66 69 0a | 20 20 23 20 65 6e 64 20 |e!. fi.| # end |
|00000fd0| 6f 66 20 27 6e 68 75 70 | 2e 63 27 0a 66 69 0a 65 |of 'nhup|.c'.fi.e|
|00000fe0| 63 68 6f 20 73 68 61 72 | 3a 20 45 6e 64 20 6f 66 |cho shar|: End of|
|00000ff0| 20 61 72 63 68 69 76 65 | 2e 0a 65 78 69 74 20 30 | archive|..exit 0|
|00001000| 0a 65 78 69 74 20 30 20 | 23 20 4a 75 73 74 20 69 |.exit 0 |# Just i|
|00001010| 6e 20 63 61 73 65 2e 2e | 2e 0a |n case..|.. |
+--------+-------------------------+-------------------------+--------+--------+