home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
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
| 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 61 6c 61 6e | 40 74 68 61 72 72 2e 55 |om: alan|@tharr.U|
|00000030| 55 43 50 20 28 41 6c 61 | 6e 20 53 61 75 6e 64 65 |UCP (Ala|n Saunde|
|00000040| 72 73 29 0a 53 75 62 6a | 65 63 74 3a 20 20 76 32 |rs).Subj|ect: v2|
|00000050| 35 69 30 32 32 3a 20 20 | 51 42 41 54 43 48 20 2d |5i022: |QBATCH -|
|00000060| 20 61 20 71 75 65 75 65 | 64 20 62 61 74 63 68 20 | a queue|d batch |
|00000070| 70 72 6f 63 65 73 73 69 | 6e 67 20 73 79 73 74 65 |processi|ng syste|
|00000080| 6d 20 66 6f 72 20 55 4e | 49 58 2c 20 50 61 72 74 |m for UN|IX, Part|
|00000090| 30 33 2f 30 36 0a 4d 65 | 73 73 61 67 65 2d 49 44 |03/06.Me|ssage-ID|
|000000a0| 3a 20 3c 31 39 39 31 4e | 6f 76 35 2e 30 33 34 37 |: <1991N|ov5.0347|
|000000b0| 35 33 2e 35 30 30 37 40 | 73 70 61 72 6b 79 2e 69 |53.5007@|sparky.i|
|000000c0| 6d 64 2e 73 74 65 72 6c | 69 6e 67 2e 63 6f 6d 3e |md.sterl|ing.com>|
|000000d0| 0a 58 2d 4d 64 34 2d 53 | 69 67 6e 61 74 75 72 65 |.X-Md4-S|ignature|
|000000e0| 3a 20 30 33 38 33 34 34 | 66 31 65 66 66 39 30 32 |: 038344|f1eff902|
|000000f0| 61 66 65 33 63 36 61 65 | 36 36 65 31 39 66 63 38 |afe3c6ae|66e19fc8|
|00000100| 37 31 0a 44 61 74 65 3a | 20 54 75 65 2c 20 35 20 |71.Date:| Tue, 5 |
|00000110| 4e 6f 76 20 31 39 39 31 | 20 30 33 3a 34 37 3a 35 |Nov 1991| 03:47:5|
|00000120| 33 20 47 4d 54 0a 41 70 | 70 72 6f 76 65 64 3a 20 |3 GMT.Ap|proved: |
|00000130| 6b 65 6e 74 40 73 70 61 | 72 6b 79 2e 69 6d 64 2e |kent@spa|rky.imd.|
|00000140| 73 74 65 72 6c 69 6e 67 | 2e 63 6f 6d 0a 0a 53 75 |sterling|.com..Su|
|00000150| 62 6d 69 74 74 65 64 2d | 62 79 3a 20 61 6c 61 6e |bmitted-|by: alan|
|00000160| 40 74 68 61 72 72 2e 55 | 55 43 50 20 28 41 6c 61 |@tharr.U|UCP (Ala|
|00000170| 6e 20 53 61 75 6e 64 65 | 72 73 29 0a 50 6f 73 74 |n Saunde|rs).Post|
|00000180| 69 6e 67 2d 6e 75 6d 62 | 65 72 3a 20 56 6f 6c 75 |ing-numb|er: Volu|
|00000190| 6d 65 20 32 35 2c 20 49 | 73 73 75 65 20 32 32 0a |me 25, I|ssue 22.|
|000001a0| 41 72 63 68 69 76 65 2d | 6e 61 6d 65 3a 20 51 42 |Archive-|name: QB|
|000001b0| 41 54 43 48 2f 70 61 72 | 74 30 33 0a 45 6e 76 69 |ATCH/par|t03.Envi|
|000001c0| 72 6f 6e 6d 65 6e 74 3a | 20 55 4e 49 58 0a 0a 23 |ronment:| UNIX..#|
|000001d0| 21 20 2f 62 69 6e 2f 73 | 68 0a 23 20 54 68 69 73 |! /bin/s|h.# This|
|000001e0| 20 69 73 20 61 20 73 68 | 65 6c 6c 20 61 72 63 68 | is a sh|ell arch|
|000001f0| 69 76 65 2e 20 20 52 65 | 6d 6f 76 65 20 61 6e 79 |ive. Re|move any|
|00000200| 74 68 69 6e 67 20 62 65 | 66 6f 72 65 20 74 68 69 |thing be|fore thi|
|00000210| 73 20 6c 69 6e 65 2c 20 | 74 68 65 6e 20 75 6e 70 |s line, |then unp|
|00000220| 61 63 6b 0a 23 20 69 74 | 20 62 79 20 73 61 76 69 |ack.# it| by savi|
|00000230| 6e 67 20 69 74 20 69 6e | 74 6f 20 61 20 66 69 6c |ng it in|to a fil|
|00000240| 65 20 61 6e 64 20 74 79 | 70 69 6e 67 20 22 73 68 |e and ty|ping "sh|
|00000250| 20 66 69 6c 65 22 2e 20 | 20 54 6f 20 6f 76 65 72 | file". | To over|
|00000260| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 0a 23 |write ex|isting.#|
|00000270| 20 66 69 6c 65 73 2c 20 | 74 79 70 65 20 22 73 68 | files, |type "sh|
|00000280| 20 66 69 6c 65 20 2d 63 | 22 2e 20 20 59 6f 75 20 | file -c|". You |
|00000290| 63 61 6e 20 61 6c 73 6f | 20 66 65 65 64 20 74 68 |can also| feed th|
|000002a0| 69 73 20 61 73 20 73 74 | 61 6e 64 61 72 64 20 69 |is as st|andard i|
|000002b0| 6e 70 75 74 20 76 69 61 | 0a 23 20 75 6e 73 68 61 |nput via|.# unsha|
|000002c0| 72 2c 20 6f 72 20 62 79 | 20 74 79 70 69 6e 67 20 |r, or by| typing |
|000002d0| 22 73 68 20 3c 66 69 6c | 65 22 2c 20 65 2e 67 2e |"sh <fil|e", e.g.|
|000002e0| 2e 20 20 49 66 20 74 68 | 69 73 20 61 72 63 68 69 |. If th|is archi|
|000002f0| 76 65 20 69 73 20 63 6f | 6d 70 6c 65 74 65 2c 20 |ve is co|mplete, |
|00000300| 79 6f 75 0a 23 20 77 69 | 6c 6c 20 73 65 65 20 74 |you.# wi|ll see t|
|00000310| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 6d 65 73 |he follo|wing mes|
|00000320| 73 61 67 65 20 61 74 20 | 74 68 65 20 65 6e 64 3a |sage at |the end:|
|00000330| 0a 23 09 09 22 45 6e 64 | 20 6f 66 20 61 72 63 68 |.#.."End| of arch|
|00000340| 69 76 65 20 33 20 28 6f | 66 20 36 29 2e 22 0a 23 |ive 3 (o|f 6).".#|
|00000350| 20 43 6f 6e 74 65 6e 74 | 73 3a 20 20 44 45 53 43 | Content|s: DESC|
|00000360| 52 49 50 54 49 4f 4e 20 | 49 4e 53 54 41 4c 4c 20 |RIPTION |INSTALL |
|00000370| 64 6f 63 2f 63 68 61 70 | 2e 30 32 20 64 6f 63 2f |doc/chap|.02 doc/|
|00000380| 63 68 61 70 2e 30 37 20 | 64 6f 63 2f 63 68 61 70 |chap.07 |doc/chap|
|00000390| 2e 30 38 0a 23 20 20 20 | 64 6f 63 2f 63 68 61 70 |.08.# |doc/chap|
|000003a0| 2e 30 39 20 6d 61 6e 2f | 71 62 61 74 63 68 2e 6c |.09 man/|qbatch.l|
|000003b0| 20 73 72 63 2f 4d 61 6b | 65 66 69 6c 65 20 73 72 | src/Mak|efile sr|
|000003c0| 63 2f 71 63 2e 63 20 73 | 72 63 2f 71 6c 2e 63 0a |c/qc.c s|rc/ql.c.|
|000003d0| 23 20 57 72 61 70 70 65 | 64 20 62 79 20 72 6f 6f |# Wrappe|d by roo|
|000003e0| 74 40 76 66 69 62 5f 64 | 20 6f 6e 20 54 68 75 20 |t@vfib_d| on Thu |
|000003f0| 4f 63 74 20 33 31 20 31 | 35 3a 34 36 3a 33 39 20 |Oct 31 1|5:46:39 |
|00000400| 31 39 39 31 0a 50 41 54 | 48 3d 2f 62 69 6e 3a 2f |1991.PAT|H=/bin:/|
|00000410| 75 73 72 2f 62 69 6e 3a | 2f 75 73 72 2f 75 63 62 |usr/bin:|/usr/ucb|
|00000420| 20 3b 20 65 78 70 6f 72 | 74 20 50 41 54 48 0a 69 | ; expor|t PATH.i|
|00000430| 66 20 74 65 73 74 20 2d | 66 20 27 44 45 53 43 52 |f test -|f 'DESCR|
|00000440| 49 50 54 49 4f 4e 27 20 | 2d 61 20 22 24 7b 31 7d |IPTION' |-a "${1}|
|00000450| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00000460| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00000470| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00000480| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00000490| 27 44 45 53 43 52 49 50 | 54 49 4f 4e 27 5c 22 0a |'DESCRIP|TION'\".|
|000004a0| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|000004b0| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 44 45 |Extracti|ng \"'DE|
|000004c0| 53 43 52 49 50 54 49 4f | 4e 27 5c 22 20 5c 28 35 |SCRIPTIO|N'\" \(5|
|000004d0| 35 38 30 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |580 char|acters\)|
|000004e0| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 |.sed "s/|^X//" >'|
|000004f0| 44 45 53 43 52 49 50 54 | 49 4f 4e 27 20 3c 3c 27 |DESCRIPT|ION' <<'|
|00000500| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 0a 58 |END_OF_F|ILE'.X.X|
|00000510| 20 20 20 20 20 54 68 65 | 20 51 42 41 54 43 48 20 | The| QBATCH |
|00000520| 73 79 73 74 65 6d 20 61 | 6e 64 20 69 74 73 20 72 |system a|nd its r|
|00000530| 65 6c 61 74 65 64 20 70 | 72 6f 67 72 61 6d 73 20 |elated p|rograms |
|00000540| 77 65 72 65 0a 58 20 20 | 20 20 20 77 72 69 74 74 |were.X | writt|
|00000550| 65 6e 20 62 79 20 41 6c | 61 6e 20 44 2e 20 53 61 |en by Al|an D. Sa|
|00000560| 75 6e 64 65 72 73 20 61 | 6e 64 20 61 72 65 0a 58 |unders a|nd are.X|
|00000570| 20 20 20 20 20 43 6f 70 | 79 72 69 67 68 74 20 28 | Cop|yright (|
|00000580| 63 29 20 56 69 74 61 20 | 53 65 72 76 69 63 65 73 |c) Vita |Services|
|00000590| 20 4c 74 64 2e 20 31 39 | 39 30 20 61 6e 64 0a 58 | Ltd. 19|90 and.X|
|000005a0| 20 20 20 20 20 43 6f 70 | 79 72 69 67 68 74 20 28 | Cop|yright (|
|000005b0| 63 29 20 56 69 74 61 20 | 46 69 62 72 65 73 20 4c |c) Vita |Fibres L|
|000005c0| 74 64 2e 20 31 39 39 31 | 0a 58 20 20 20 20 20 0a |td. 1991|.X .|
|000005d0| 58 20 20 20 20 20 50 4c | 45 41 53 45 20 72 65 61 |X PL|EASE rea|
|000005e0| 64 20 74 68 65 20 4e 4f | 54 49 43 45 20 66 69 6c |d the NO|TICE fil|
|000005f0| 65 20 66 6f 72 20 64 65 | 74 61 69 6c 73 2e 0a 58 |e for de|tails..X|
|00000600| 0a 51 42 41 54 43 48 20 | 69 73 20 61 20 76 65 72 |.QBATCH |is a ver|
|00000610| 73 61 74 69 6c 65 20 71 | 75 65 75 65 64 20 62 61 |satile q|ueued ba|
|00000620| 74 63 68 20 70 72 6f 63 | 65 73 73 69 6e 67 20 73 |tch proc|essing s|
|00000630| 79 73 74 65 6d 20 66 6f | 72 20 2a 4e 49 58 2e 0a |ystem fo|r *NIX..|
|00000640| 58 0a 58 45 61 63 68 20 | 71 75 65 75 65 20 63 6f |X.XEach |queue co|
|00000650| 6e 73 69 73 74 73 20 6f | 66 20 61 20 66 69 6c 65 |nsists o|f a file|
|00000660| 20 63 6f 6e 74 61 69 6e | 69 6e 67 20 69 6e 66 6f | contain|ing info|
|00000670| 72 6d 61 74 69 6f 6e 20 | 61 62 6f 75 74 20 74 68 |rmation |about th|
|00000680| 65 20 71 75 65 75 65 0a | 69 74 73 65 6c 66 2c 20 |e queue.|itself, |
|00000690| 61 6e 64 20 61 62 6f 75 | 74 20 61 6c 6c 20 6a 6f |and abou|t all jo|
|000006a0| 62 73 20 63 75 72 72 65 | 6e 74 6c 79 20 70 72 65 |bs curre|ntly pre|
|000006b0| 73 65 6e 74 20 69 6e 20 | 74 68 65 20 71 75 65 75 |sent in |the queu|
|000006c0| 65 2e 20 20 57 68 65 6e | 20 74 68 65 0a 70 72 6f |e. When| the.pro|
|000006d0| 67 72 61 6d 20 27 71 70 | 27 20 69 73 20 72 75 6e |gram 'qp|' is run|
|000006e0| 20 66 6f 72 20 61 20 67 | 69 76 65 6e 20 71 75 65 | for a g|iven que|
|000006f0| 75 65 2c 20 69 74 20 77 | 69 6c 6c 20 66 6f 72 6b |ue, it w|ill fork|
|00000700| 20 61 20 63 68 69 6c 64 | 20 70 72 6f 63 65 73 73 | a child| process|
|00000710| 20 66 6f 72 0a 65 61 63 | 68 20 6a 6f 62 20 69 6e | for.eac|h job in|
|00000720| 20 74 68 65 20 71 75 65 | 75 65 20 69 6e 20 74 75 | the que|ue in tu|
|00000730| 72 6e 2c 20 61 6e 64 20 | 77 61 69 74 20 66 6f 72 |rn, and |wait for|
|00000740| 20 69 74 20 74 6f 20 63 | 6f 6d 70 6c 65 74 65 2e | it to c|omplete.|
|00000750| 20 20 49 66 20 74 68 65 | 72 65 0a 61 72 65 20 6e | If the|re.are n|
|00000760| 6f 20 6a 6f 62 73 20 70 | 72 65 73 65 6e 74 20 69 |o jobs p|resent i|
|00000770| 6e 20 74 68 65 20 71 75 | 65 75 65 2c 20 71 70 20 |n the qu|eue, qp |
|00000780| 77 69 6c 6c 20 77 61 69 | 74 20 66 6f 72 20 61 20 |will wai|t for a |
|00000790| 73 69 67 6e 61 6c 20 66 | 72 6f 6d 20 6f 6e 65 20 |signal f|rom one |
|000007a0| 6f 66 0a 74 68 65 20 73 | 75 70 70 6f 72 74 20 70 |of.the s|upport p|
|000007b0| 72 6f 67 72 61 6d 73 2c | 20 77 68 69 63 68 20 77 |rograms,| which w|
|000007c0| 69 6c 6c 20 27 74 65 6c | 6c 27 20 69 74 20 74 68 |ill 'tel|l' it th|
|000007d0| 61 74 20 61 6e 6f 74 68 | 65 72 20 6a 6f 62 20 68 |at anoth|er job h|
|000007e0| 61 73 20 6a 6f 69 6e 65 | 64 0a 74 68 65 20 71 75 |as joine|d.the qu|
|000007f0| 65 75 65 2c 20 6f 72 20 | 74 68 61 74 20 69 74 20 |eue, or |that it |
|00000800| 73 68 6f 75 6c 64 20 74 | 65 72 6d 69 6e 61 74 65 |should t|erminate|
|00000810| 2e 0a 58 0a 58 46 65 61 | 74 75 72 65 73 3a 0a 58 |..X.XFea|tures:.X|
|00000820| 0a 54 68 65 72 65 20 63 | 61 6e 20 62 65 20 61 73 |.There c|an be as|
|00000830| 20 6d 61 6e 79 20 71 75 | 65 75 65 73 20 61 73 20 | many qu|eues as |
|00000840| 74 68 65 20 73 79 73 74 | 65 6d 20 63 61 6e 20 73 |the syst|em can s|
|00000850| 75 70 70 6f 72 74 2e 20 | 51 75 65 75 65 73 20 61 |upport. |Queues a|
|00000860| 72 65 0a 6e 61 6d 65 64 | 2c 20 61 6e 64 20 72 75 |re.named|, and ru|
|00000870| 6e 20 61 73 79 6e 63 68 | 72 6f 6e 6f 75 73 6c 79 |n asynch|ronously|
|00000880| 2e 20 20 54 68 65 20 70 | 72 6f 63 65 73 73 69 6e |. The p|rocessin|
|00000890| 67 20 6f 66 20 6a 6f 62 | 73 20 72 75 6e 6e 69 6e |g of job|s runnin|
|000008a0| 67 20 69 6e 20 6f 6e 65 | 0a 71 75 65 75 65 20 61 |g in one|.queue a|
|000008b0| 72 65 20 74 6f 74 61 6c | 6c 79 20 69 6e 64 65 70 |re total|ly indep|
|000008c0| 65 6e 64 65 6e 74 20 6f | 66 20 74 68 6f 73 65 20 |endent o|f those |
|000008d0| 69 6e 20 61 6e 79 20 6f | 74 68 65 72 20 28 73 75 |in any o|ther (su|
|000008e0| 62 6a 65 63 74 20 6f 66 | 20 63 6f 75 72 73 65 0a |bject of| course.|
|000008f0| 74 6f 20 74 68 65 20 69 | 6e 64 65 70 65 6e 64 65 |to the i|ndepende|
|00000900| 6e 63 65 20 6f 66 20 70 | 6f 74 65 6e 74 69 61 6c |nce of p|otential|
|00000910| 6c 79 20 73 68 61 72 65 | 64 20 72 65 73 6f 75 72 |ly share|d resour|
|00000920| 63 65 73 20 73 75 63 68 | 20 61 73 20 64 61 74 61 |ces such| as data|
|00000930| 20 66 69 6c 65 73 0a 61 | 6e 64 20 64 65 76 69 63 | files.a|nd devic|
|00000940| 65 73 29 2e 0a 58 0a 51 | 75 65 75 65 73 20 63 61 |es)..X.Q|ueues ca|
|00000950| 6e 20 62 65 20 73 74 61 | 72 74 65 64 20 61 6e 64 |n be sta|rted and|
|00000960| 20 73 74 6f 70 70 65 64 | 20 69 6e 64 65 70 65 6e | stopped| indepen|
|00000970| 64 65 6e 74 6c 79 2e 20 | 20 49 66 20 61 20 6a 6f |dently. | If a jo|
|00000980| 62 20 69 73 20 72 75 6e | 6e 69 6e 67 0a 69 6e 20 |b is run|ning.in |
|00000990| 61 20 71 75 65 75 65 20 | 77 68 69 63 68 20 72 65 |a queue |which re|
|000009a0| 63 65 69 76 65 73 20 61 | 20 73 74 6f 70 20 73 69 |ceives a| stop si|
|000009b0| 67 6e 61 6c 20 66 72 6f | 6d 20 74 68 65 20 27 71 |gnal fro|m the 'q|
|000009c0| 73 27 20 70 72 6f 67 72 | 61 6d 20 28 4e 4f 54 0a |s' progr|am (NOT.|
|000009d0| 53 49 47 53 54 4f 50 29 | 20 71 70 20 77 69 6c 6c |SIGSTOP)| qp will|
|000009e0| 20 61 6c 6c 6f 77 20 74 | 68 65 20 6a 6f 62 20 74 | allow t|he job t|
|000009f0| 6f 20 72 75 6e 20 74 6f | 20 63 6f 6d 70 6c 65 74 |o run to| complet|
|00000a00| 69 6f 6e 20 62 65 66 6f | 72 65 20 74 65 72 6d 69 |ion befo|re termi|
|00000a10| 6e 61 74 69 6e 67 0a 75 | 6e 6c 65 73 73 20 74 68 |nating.u|nless th|
|00000a20| 65 20 6b 69 6c 6c 20 6f | 70 74 69 6f 6e 20 69 73 |e kill o|ption is|
|00000a30| 20 73 70 65 63 69 66 69 | 65 64 2e 0a 58 0a 54 68 | specifi|ed..X.Th|
|00000a40| 65 20 70 72 69 6f 72 69 | 74 79 20 28 6e 69 63 65 |e priori|ty (nice|
|00000a50| 20 76 61 6c 75 65 29 20 | 6f 66 20 61 6c 6c 20 6a | value) |of all j|
|00000a60| 6f 62 73 20 72 75 6e 6e | 69 6e 67 20 69 6e 20 61 |obs runn|ing in a|
|00000a70| 20 71 75 65 75 65 20 69 | 73 20 64 65 66 69 6e 65 | queue i|s define|
|00000a80| 64 0a 77 68 65 6e 20 74 | 68 65 20 71 75 65 75 65 |d.when t|he queue|
|00000a90| 20 69 73 20 63 72 65 61 | 74 65 64 2c 20 73 6f 20 | is crea|ted, so |
|00000aa0| 70 72 69 6f 72 69 74 69 | 73 65 64 20 71 75 65 75 |prioriti|sed queu|
|00000ab0| 65 73 20 63 61 6e 20 62 | 65 20 63 6f 6e 66 69 67 |es can b|e config|
|00000ac0| 75 72 65 64 2e 0a 58 0a | 4a 6f 62 73 20 72 75 6e |ured..X.|Jobs run|
|00000ad0| 6e 69 6e 67 20 69 6e 20 | 61 20 71 75 65 75 65 20 |ning in |a queue |
|00000ae0| 63 6f 6e 73 69 73 74 20 | 6f 66 20 73 68 65 6c 6c |consist |of shell|
|00000af0| 20 73 63 72 69 70 74 73 | 2c 20 63 72 65 61 74 65 | scripts|, create|
|00000b00| 64 20 28 6f 72 20 63 6f | 70 69 65 64 29 0a 62 79 |d (or co|pied).by|
|00000b10| 20 74 68 65 20 6a 73 20 | 70 72 6f 67 72 61 6d 2e | the js |program.|
|00000b20| 20 20 54 68 65 20 64 65 | 66 61 75 6c 74 20 73 68 | The de|fault sh|
|00000b30| 65 6c 6c 20 69 73 20 74 | 68 65 20 62 6f 75 72 6e |ell is t|he bourn|
|00000b40| 65 20 73 68 65 6c 6c 2c | 20 62 75 74 20 74 68 69 |e shell,| but thi|
|00000b50| 73 20 63 61 6e 0a 62 65 | 20 6f 76 65 72 72 69 64 |s can.be| overrid|
|00000b60| 64 65 6e 20 61 74 20 73 | 75 62 6d 69 74 20 74 69 |den at s|ubmit ti|
|00000b70| 6d 65 20 77 69 74 68 20 | 74 68 65 20 2d 73 20 6f |me with |the -s o|
|00000b80| 70 74 69 6f 6e 20 74 6f | 20 6a 73 2e 20 20 20 54 |ption to| js. T|
|00000b90| 68 65 20 6a 6f 62 73 20 | 72 75 6e 0a 77 69 74 68 |he jobs |run.with|
|00000ba0| 20 74 68 65 20 75 69 64 | 20 61 6e 64 20 67 69 64 | the uid| and gid|
|00000bb0| 20 6f 66 20 74 68 65 20 | 73 75 62 6d 69 74 74 6f | of the |submitto|
|00000bc0| 72 2c 20 61 6e 64 20 72 | 75 6e 20 69 6e 20 74 68 |r, and r|un in th|
|00000bd0| 65 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 0a 72 75 |e enviro|nment.ru|
|00000be0| 6c 69 6e 67 20 77 68 65 | 6e 20 74 68 65 20 6a 6f |ling whe|n the jo|
|00000bf0| 62 20 77 61 73 20 73 75 | 62 6d 69 74 74 65 64 2e |b was su|bmitted.|
|00000c00| 20 20 41 6c 6c 20 65 6e | 76 69 72 6f 6e 6d 65 6e | All en|vironmen|
|00000c10| 74 20 76 61 72 69 61 62 | 6c 65 73 20 65 78 63 65 |t variab|les exce|
|00000c20| 70 74 0a 74 68 6f 73 65 | 20 65 78 63 6c 75 64 65 |pt.those| exclude|
|00000c30| 64 20 64 65 6c 69 62 65 | 72 61 74 65 6c 79 20 61 |d delibe|rately a|
|00000c40| 72 65 20 70 61 73 73 65 | 64 20 74 6f 20 74 68 65 |re passe|d to the|
|00000c50| 20 6a 6f 62 2c 20 61 6e | 64 20 74 68 65 20 6a 6f | job, an|d the jo|
|00000c60| 62 20 77 69 6c 6c 0a 73 | 74 61 72 74 20 69 6e 20 |b will.s|tart in |
|00000c70| 74 68 65 20 73 75 62 6d | 69 74 74 6f 72 73 20 63 |the subm|ittors c|
|00000c80| 75 72 72 65 6e 74 20 77 | 6f 72 6b 69 6e 67 20 64 |urrent w|orking d|
|00000c90| 69 72 65 63 74 6f 72 79 | 2e 20 20 46 69 78 65 64 |irectory|. Fixed|
|00000ca0| 20 63 6f 6e 74 65 78 74 | 0a 71 75 65 75 65 73 20 | context|.queues |
|00000cb0| 6d 61 79 20 62 65 20 63 | 6f 6e 66 69 67 75 72 65 |may be c|onfigure|
|00000cc0| 64 20 77 68 69 63 68 20 | 6f 76 65 72 72 75 6c 65 |d which |overrule|
|00000cd0| 20 74 68 65 20 61 62 6f | 76 65 2c 20 74 68 65 79 | the abo|ve, they|
|00000ce0| 20 6d 61 79 20 62 65 0a | 63 6f 6e 66 69 67 75 72 | may be.|configur|
|00000cf0| 65 64 20 74 6f 20 72 75 | 6e 20 75 6e 64 65 72 20 |ed to ru|n under |
|00000d00| 61 20 73 70 65 63 69 66 | 69 65 64 20 64 65 66 61 |a specif|ied defa|
|00000d10| 75 6c 74 20 73 68 65 6c | 6c 2c 20 77 69 74 68 20 |ult shel|l, with |
|00000d20| 61 20 73 70 65 63 69 66 | 69 65 64 0a 75 69 64 20 |a specif|ied.uid |
|00000d30| 61 6e 64 20 67 69 64 20 | 28 4e 4f 54 20 72 6f 6f |and gid |(NOT roo|
|00000d40| 74 29 2c 20 61 6e 64 20 | 77 69 74 68 20 61 20 70 |t), and |with a p|
|00000d50| 72 65 2d 64 65 66 69 6e | 65 64 20 65 6e 76 69 72 |re-defin|ed envir|
|00000d60| 6f 6e 6d 65 6e 74 20 61 | 6e 64 20 77 6f 72 6b 69 |onment a|nd worki|
|00000d70| 6e 67 0a 64 69 72 65 63 | 74 6f 72 79 2e 20 20 41 |ng.direc|tory. A|
|00000d80| 63 63 65 73 73 20 74 6f | 20 66 69 78 65 64 20 63 |ccess to| fixed c|
|00000d90| 6f 6e 74 65 78 74 20 71 | 75 65 75 65 73 20 6d 61 |ontext q|ueues ma|
|00000da0| 79 20 62 65 20 72 65 73 | 74 72 69 63 74 65 64 20 |y be res|tricted |
|00000db0| 62 79 20 75 73 65 72 2d | 0a 6e 61 6d 65 20 61 6e |by user-|.name an|
|00000dc0| 64 20 67 72 6f 75 70 2e | 0a 58 0a 53 74 64 6f 75 |d group.|.X.Stdou|
|00000dd0| 74 20 61 6e 64 20 73 74 | 64 65 72 72 20 6f 66 20 |t and st|derr of |
|00000de0| 72 75 6e 6e 69 6e 67 20 | 6a 6f 62 73 20 69 73 20 |running |jobs is |
|00000df0| 72 65 64 69 72 65 63 74 | 65 64 20 74 6f 20 61 20 |redirect|ed to a |
|00000e00| 27 6d 6f 6e 69 74 6f 72 | 27 20 54 68 69 73 0a 77 |'monitor|' This.w|
|00000e10| 69 6c 6c 20 6e 6f 72 6d | 61 6c 6c 79 20 62 65 20 |ill norm|ally be |
|00000e20| 74 68 65 20 71 75 65 75 | 65 20 6d 6f 6e 69 74 6f |the queu|e monito|
|00000e30| 72 20 28 73 70 65 63 69 | 66 69 65 64 20 6f 72 20 |r (speci|fied or |
|00000e40| 64 65 66 61 75 6c 74 65 | 64 20 77 68 65 6e 20 74 |defaulte|d when t|
|00000e50| 68 65 0a 71 75 65 75 65 | 20 77 61 73 20 63 72 65 |he.queue| was cre|
|00000e60| 61 74 65 64 29 2c 20 62 | 75 74 20 6d 61 79 20 62 |ated), b|ut may b|
|00000e70| 65 20 73 70 65 63 69 66 | 69 65 64 20 66 6f 72 20 |e specif|ied for |
|00000e80| 69 6e 64 69 76 69 64 75 | 61 6c 20 6a 6f 62 73 2e |individu|al jobs.|
|00000e90| 20 20 54 68 65 0a 70 61 | 74 68 73 70 65 63 20 6f | The.pa|thspec o|
|00000ea0| 66 20 62 6f 74 68 20 74 | 68 65 20 6a 6f 62 20 66 |f both t|he job f|
|00000eb0| 69 6c 65 2c 20 61 6e 64 | 20 74 68 65 20 6d 6f 6e |ile, and| the mon|
|00000ec0| 69 74 6f 72 2c 20 6d 61 | 79 20 62 65 20 61 63 63 |itor, ma|y be acc|
|00000ed0| 65 73 73 65 64 20 77 69 | 74 68 0a 74 68 65 20 27 |essed wi|th.the '|
|00000ee0| 71 66 27 20 70 72 6f 67 | 72 61 6d 20 76 69 7a 3a |qf' prog|ram viz:|
|00000ef0| 20 20 22 74 61 69 6c 20 | 2d 66 20 60 71 66 20 2d | "tail |-f `qf -|
|00000f00| 6d 20 77 6f 72 6b 60 22 | 20 20 77 68 65 72 65 20 |m work`"| where |
|00000f10| 27 77 6f 72 6b 27 20 69 | 73 20 74 68 65 20 6e 61 |'work' i|s the na|
|00000f20| 6d 65 0a 6f 66 20 61 20 | 71 75 65 75 65 2e 0a 58 |me.of a |queue..X|
|00000f30| 0a 54 68 65 20 73 74 61 | 74 75 73 20 61 6e 64 20 |.The sta|tus and |
|00000f40| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 71 75 65 75 |contents| of queu|
|00000f50| 65 73 20 63 61 6e 20 62 | 65 20 6c 69 73 74 65 64 |es can b|e listed|
|00000f60| 20 61 74 20 61 6e 79 20 | 74 69 6d 65 20 75 73 69 | at any |time usi|
|00000f70| 6e 67 20 74 68 65 0a 58 | 27 71 6c 27 20 70 72 6f |ng the.X|'ql' pro|
|00000f80| 67 72 61 6d 2e 20 20 49 | 6e 66 6f 72 6d 61 74 69 |gram. I|nformati|
|00000f90| 6f 6e 20 63 61 6e 20 69 | 6e 63 6c 75 64 65 20 74 |on can i|nclude t|
|00000fa0| 68 65 20 75 69 64 20 61 | 6e 64 20 67 69 64 20 75 |he uid a|nd gid u|
|00000fb0| 6e 64 65 72 20 77 68 69 | 63 68 20 6a 6f 62 73 0a |nder whi|ch jobs.|
|00000fc0| 77 69 6c 6c 20 72 75 6e | 20 28 61 72 65 20 72 75 |will run| (are ru|
|00000fd0| 6e 6e 69 6e 67 29 2c 20 | 75 73 65 72 20 6e 61 6d |nning), |user nam|
|00000fe0| 65 20 61 6e 64 20 74 74 | 79 20 6f 66 20 73 75 62 |e and tt|y of sub|
|00000ff0| 6d 69 74 74 6f 72 2c 20 | 20 64 61 74 65 20 61 6e |mittor, | date an|
|00001000| 64 20 74 69 6d 65 0a 6f | 66 20 73 75 62 6d 69 73 |d time.o|f submis|
|00001010| 73 69 6f 6e 2c 20 64 61 | 74 65 20 61 6e 64 20 74 |sion, da|te and t|
|00001020| 69 6d 65 20 63 75 72 72 | 65 6e 74 20 6a 6f 62 20 |ime curr|ent job |
|00001030| 73 74 61 72 74 65 64 2c | 20 61 6e 64 20 61 20 6d |started,| and a m|
|00001040| 65 61 6e 69 6e 67 66 75 | 6c 20 6a 6f 62 0a 6e 61 |eaningfu|l job.na|
|00001050| 6d 65 20 6f 72 20 64 65 | 73 63 72 69 70 74 69 6f |me or de|scriptio|
|00001060| 6e 2e 0a 58 0a 49 66 20 | 72 63 2e 51 42 41 54 43 |n..X.If |rc.QBATC|
|00001070| 48 20 69 73 20 63 6f 6e | 66 69 67 75 72 65 64 20 |H is con|figured |
|00001080| 69 6e 20 74 68 65 20 73 | 79 73 74 65 6d 20 69 6e |in the s|ystem in|
|00001090| 69 74 20 73 63 72 69 70 | 74 2c 20 61 6c 6c 20 71 |it scrip|t, all q|
|000010a0| 75 65 75 65 73 20 77 68 | 69 63 68 0a 77 65 72 65 |ueues wh|ich.were|
|000010b0| 20 72 75 6e 6e 69 6e 67 | 20 77 68 65 6e 20 74 68 | running| when th|
|000010c0| 65 20 73 79 73 74 65 6d | 20 77 65 6e 74 20 64 6f |e system| went do|
|000010d0| 77 6e 20 77 69 6c 6c 20 | 62 65 20 72 65 73 74 61 |wn will |be resta|
|000010e0| 72 74 65 64 2e 20 41 6e | 79 20 6a 6f 62 73 0a 70 |rted. An|y jobs.p|
|000010f0| 72 65 73 65 6e 74 20 69 | 6e 20 74 68 65 20 71 75 |resent i|n the qu|
|00001100| 65 75 65 73 20 77 69 6c | 6c 20 61 6c 73 6f 20 62 |eues wil|l also b|
|00001110| 65 20 72 65 73 74 61 72 | 74 65 64 2e 0a 58 0a 58 |e restar|ted..X.X|
|00001120| 46 61 63 69 6c 69 74 69 | 65 73 3a 0a 58 0a 69 6e |Faciliti|es:.X.in|
|00001130| 66 6f 72 6d 20 75 73 65 | 72 20 62 79 20 6d 61 69 |form use|r by mai|
|00001140| 6c 2c 20 6f 72 20 74 74 | 79 20 6d 65 73 73 61 67 |l, or tt|y messag|
|00001150| 65 20 77 68 65 6e 20 6a | 6f 62 20 69 73 20 63 6f |e when j|ob is co|
|00001160| 6d 70 6c 65 74 65 2e 0a | 63 61 6e 63 65 6c 20 6a |mplete..|cancel j|
|00001170| 6f 62 73 20 69 6e 20 71 | 75 65 75 65 73 2c 20 6f |obs in q|ueues, o|
|00001180| 72 20 6b 69 6c 6c 20 72 | 75 6e 6e 69 6e 67 20 6a |r kill r|unning j|
|00001190| 6f 62 73 2e 0a 63 68 61 | 6e 67 65 20 74 68 65 20 |obs..cha|nge the |
|000011a0| 72 75 6e 6e 69 6e 67 20 | 6f 72 64 65 72 20 6f 66 |running |order of|
|000011b0| 20 6a 6f 62 73 20 69 6e | 20 71 75 65 75 65 73 2e | jobs in| queues.|
|000011c0| 0a 73 75 73 70 65 6e 64 | 20 61 6e 64 20 72 65 73 |.suspend| and res|
|000011d0| 75 6d 65 20 70 72 6f 63 | 65 73 73 69 6e 67 20 6f |ume proc|essing o|
|000011e0| 66 20 6a 6f 62 73 2e 0a | 73 74 61 72 74 20 61 6e |f jobs..|start an|
|000011f0| 64 20 73 74 6f 70 20 74 | 68 65 20 71 75 65 75 65 |d stop t|he queue|
|00001200| 20 70 72 6f 63 65 73 73 | 20 65 6e 67 69 6e 65 20 | process| engine |
|00001210| 61 74 20 61 6e 79 20 74 | 69 6d 65 20 28 65 76 65 |at any t|ime (eve|
|00001220| 6e 20 75 6e 64 65 72 20 | 63 72 6f 6e 20 6f 72 20 |n under |cron or |
|00001230| 66 72 6f 6d 0a 58 20 20 | 20 20 20 20 61 6e 6f 74 |from.X | anot|
|00001240| 68 65 72 20 71 75 65 75 | 65 29 0a 64 69 73 61 62 |her queu|e).disab|
|00001250| 6c 65 20 73 75 62 6d 69 | 73 73 69 6f 6e 73 20 74 |le submi|ssions t|
|00001260| 6f 20 61 20 71 75 65 75 | 65 2c 20 61 6e 64 20 72 |o a queu|e, and r|
|00001270| 65 2d 65 6e 61 62 6c 65 | 20 74 68 65 6d 2e 0a 73 |e-enable| them..s|
|00001280| 74 6f 70 20 61 20 71 75 | 65 75 65 2c 20 61 6e 64 |top a qu|eue, and|
|00001290| 20 77 61 69 74 20 75 6e | 74 69 6c 20 74 68 65 20 | wait un|til the |
|000012a0| 63 75 72 72 65 6e 74 20 | 6a 6f 62 20 68 61 73 20 |current |job has |
|000012b0| 66 69 6e 69 73 68 65 64 | 20 28 75 73 65 66 75 6c |finished| (useful|
|000012c0| 20 66 6f 72 20 65 6e 73 | 75 72 69 6e 67 0a 58 20 | for ens|uring.X |
|000012d0| 20 20 20 20 20 74 68 61 | 74 20 74 68 65 20 73 79 | tha|t the sy|
|000012e0| 73 74 65 6d 20 69 73 20 | 69 64 6c 65 20 62 65 66 |stem is |idle bef|
|000012f0| 6f 72 65 20 61 20 62 61 | 63 6b 75 70 29 0a 6c 69 |ore a ba|ckup).li|
|00001300| 73 74 20 74 68 65 20 73 | 74 61 74 75 73 20 61 6e |st the s|tatus an|
|00001310| 64 20 63 6f 6e 74 65 6e | 74 73 20 6f 66 20 61 20 |d conten|ts of a |
|00001320| 71 75 65 75 65 2e 0a 72 | 65 70 65 61 74 20 28 6f |queue..r|epeat (o|
|00001330| 72 20 6b 69 6c 6c 20 61 | 6e 64 20 72 65 70 65 61 |r kill a|nd repea|
|00001340| 74 29 20 74 68 65 20 63 | 75 72 72 65 6e 74 6c 79 |t) the c|urrently|
|00001350| 20 72 75 6e 6e 69 6e 67 | 20 6a 6f 62 20 69 6e 20 | running| job in |
|00001360| 61 20 71 75 65 75 65 2e | 0a 65 78 61 6d 69 6e 65 |a queue.|.examine|
|00001370| 20 6f 72 20 65 64 69 74 | 20 74 68 65 20 6a 63 6c | or edit| the jcl|
|00001380| 20 6f 66 20 6a 6f 62 73 | 20 69 6e 20 61 20 71 75 | of jobs| in a qu|
|00001390| 65 75 65 2c 20 61 6e 64 | 20 65 78 61 6d 69 6e 65 |eue, and| examine|
|000013a0| 20 74 68 65 20 6d 6f 6e | 69 74 6f 72 73 2e 0a 6d | the mon|itors..m|
|000013b0| 6f 6e 69 74 6f 72 20 28 | 61 6e 64 20 70 65 72 68 |onitor (|and perh|
|000013c0| 61 70 73 20 61 63 63 6f | 75 6e 74 29 20 74 68 65 |aps acco|unt) the|
|000013d0| 20 74 69 6d 65 73 20 74 | 61 6b 65 6e 20 62 79 20 | times t|aken by |
|000013e0| 6a 6f 62 73 20 69 6e 20 | 74 68 65 20 71 75 65 75 |jobs in |the queu|
|000013f0| 65 2e 0a 58 0a 50 72 65 | 76 65 6e 74 20 64 65 61 |e..X.Pre|vent dea|
|00001400| 64 6c 6f 63 6b 73 20 62 | 65 74 77 65 65 6e 20 62 |dlocks b|etween b|
|00001410| 61 74 63 68 20 70 72 6f | 67 72 61 6d 73 20 61 63 |atch pro|grams ac|
|00001420| 63 65 73 73 69 6e 67 20 | 74 68 65 20 73 61 6d 65 |cessing |the same|
|00001430| 20 64 65 76 69 63 65 73 | 20 6f 72 20 64 61 74 61 | devices| or data|
|00001440| 0a 66 69 6c 65 73 20 62 | 79 20 65 6e 73 75 72 69 |.files b|y ensuri|
|00001450| 6e 67 20 74 68 65 79 20 | 61 72 65 20 73 75 62 6d |ng they |are subm|
|00001460| 69 74 74 65 64 20 74 6f | 20 74 68 65 20 73 61 6d |itted to| the sam|
|00001470| 65 20 71 75 65 75 65 2c | 20 74 68 65 6e 20 74 68 |e queue,| then th|
|00001480| 65 79 20 63 61 6e 27 74 | 20 72 75 6e 20 69 6e 0a |ey can't| run in.|
|00001490| 70 61 72 61 6c 6c 65 6c | 2e 0a 58 0a 50 72 65 76 |parallel|..X.Prev|
|000014a0| 65 6e 74 20 63 70 75 20 | 68 6f 67 67 69 6e 67 20 |ent cpu |hogging |
|000014b0| 6a 6f 62 73 20 66 72 6f | 6d 20 73 77 61 6d 70 69 |jobs fro|m swampi|
|000014c0| 6e 67 20 74 68 65 20 73 | 79 73 74 65 6d 20 62 79 |ng the s|ystem by|
|000014d0| 20 73 75 62 6d 69 74 74 | 69 6e 67 20 74 68 65 6d | submitt|ing them|
|000014e0| 20 74 6f 0a 6c 6f 77 2d | 70 72 69 6f 72 69 74 79 | to.low-|priority|
|000014f0| 20 71 75 65 75 65 73 2e | 0a 58 0a 48 61 76 65 20 | queues.|.X.Have |
|00001500| 61 20 73 65 70 61 72 61 | 74 65 20 71 75 65 75 65 |a separa|te queue|
|00001510| 20 66 6f 72 20 68 75 6d | 75 6e 67 6f 75 73 20 6a | for hum|ungous j|
|00001520| 6f 62 73 20 74 68 61 74 | 20 69 73 20 73 74 61 72 |obs that| is star|
|00001530| 74 65 64 20 61 6e 64 20 | 73 74 6f 70 70 65 64 20 |ted and |stopped |
|00001540| 62 79 20 63 72 6f 6e 0a | 6f 75 74 20 6f 66 20 77 |by cron.|out of w|
|00001550| 6f 72 6b 69 6e 67 20 68 | 6f 75 72 73 2e 0a 58 0a |orking h|ours..X.|
|00001560| 58 45 6e 73 75 72 65 20 | 61 6c 6c 20 6f 76 65 72 |XEnsure |all over|
|00001570| 6e 69 67 68 74 20 77 6f | 72 6b 20 69 73 20 72 75 |night wo|rk is ru|
|00001580| 6e 6e 69 6e 67 20 69 6e | 20 71 75 65 75 65 73 2c |nning in| queues,|
|00001590| 20 74 68 65 6e 20 61 20 | 62 61 63 6b 75 70 20 6a | then a |backup j|
|000015a0| 6f 62 20 63 61 6e 20 73 | 74 6f 70 20 74 68 65 0a |ob can s|top the.|
|000015b0| 71 75 65 75 65 73 2c 20 | 77 61 69 74 20 66 6f 72 |queues, |wait for|
|000015c0| 20 63 75 72 72 65 6e 74 | 20 6a 6f 62 73 20 74 6f | current| jobs to|
|000015d0| 20 66 69 6e 69 73 68 2c | 20 61 6e 64 20 62 61 63 | finish,| and bac|
|000015e0| 6b 20 75 70 20 62 65 66 | 6f 72 65 20 72 65 73 74 |k up bef|ore rest|
|000015f0| 61 72 74 69 6e 67 20 74 | 68 65 0a 71 75 65 75 65 |arting t|he.queue|
|00001600| 73 2e 0a 58 0a 50 72 6f | 74 65 63 74 20 73 65 6e |s..X.Pro|tect sen|
|00001610| 73 69 74 69 76 65 20 61 | 70 70 6c 69 63 61 74 69 |sitive a|pplicati|
|00001620| 6f 6e 73 20 61 6e 64 20 | 64 61 74 61 20 77 69 74 |ons and |data wit|
|00001630| 68 20 66 69 6c 65 20 61 | 6e 64 20 64 69 72 65 63 |h file a|nd direc|
|00001640| 74 6f 72 79 20 70 65 72 | 6d 69 73 73 69 6f 6e 73 |tory per|missions|
|00001650| 2c 0a 74 68 65 6e 20 70 | 65 72 6d 69 74 20 6e 61 |,.then p|ermit na|
|00001660| 6d 65 64 20 75 73 65 72 | 73 20 6f 72 20 67 72 6f |med user|s or gro|
|00001670| 75 70 73 20 74 6f 20 73 | 75 62 6d 69 74 20 6a 6f |ups to s|ubmit jo|
|00001680| 62 73 20 74 6f 20 61 20 | 66 69 78 65 64 20 63 6f |bs to a |fixed co|
|00001690| 6e 74 65 78 74 20 71 75 | 65 75 65 2e 0a 58 0a 51 |ntext qu|eue..X.Q|
|000016a0| 75 65 75 65 73 20 63 61 | 6e 20 6f 6e 6c 79 20 62 |ueues ca|n only b|
|000016b0| 65 20 63 72 65 61 74 65 | 64 20 62 79 20 72 6f 6f |e create|d by roo|
|000016c0| 74 2c 20 73 6f 20 74 68 | 65 20 73 79 73 74 65 6d |t, so th|e system|
|000016d0| 20 61 64 6d 69 6e 69 73 | 74 72 61 74 6f 72 20 63 | adminis|trator c|
|000016e0| 61 6e 20 74 75 6e 65 20 | 74 68 65 0a 63 6f 6e 66 |an tune |the.conf|
|000016f0| 69 67 75 72 61 74 69 6f | 6e 20 74 6f 20 70 72 6f |iguratio|n to pro|
|00001700| 76 69 64 65 20 6f 70 74 | 69 6d 75 6d 20 74 68 72 |vide opt|imum thr|
|00001710| 6f 75 67 68 70 75 74 2e | 20 20 49 74 20 69 73 20 |oughput.| It is |
|00001720| 66 72 65 71 75 65 6e 74 | 6c 79 20 74 68 65 20 63 |frequent|ly the c|
|00001730| 61 73 65 2c 0a 70 61 72 | 74 69 63 75 6c 61 72 6c |ase,.par|ticularl|
|00001740| 79 20 69 66 20 61 20 73 | 79 73 74 65 6d 20 69 73 |y if a s|ystem is|
|00001750| 20 73 77 61 70 70 69 6e | 67 20 68 65 61 76 69 6c | swappin|g heavil|
|00001760| 79 2c 20 6f 72 20 69 73 | 20 73 68 6f 72 74 20 6f |y, or is| short o|
|00001770| 66 20 73 77 61 70 20 73 | 70 61 63 65 2c 20 74 68 |f swap s|pace, th|
|00001780| 61 74 0a 74 77 6f 20 6a | 6f 62 73 20 72 75 6e 6e |at.two j|obs runn|
|00001790| 69 6e 67 20 6f 6e 65 20 | 61 66 74 65 72 20 74 68 |ing one |after th|
|000017a0| 65 20 6f 74 68 65 72 20 | 69 6e 20 61 20 71 75 65 |e other |in a que|
|000017b0| 75 65 2c 20 77 69 6c 6c | 20 70 72 6f 63 65 73 73 |ue, will| process|
|000017c0| 20 66 61 73 74 65 72 20 | 6f 76 65 72 61 6c 6c 0a | faster |overall.|
|000017d0| 74 68 61 6e 20 69 66 20 | 74 68 65 79 20 77 65 72 |than if |they wer|
|000017e0| 65 20 72 75 6e 20 63 6f | 6e 63 75 72 72 65 6e 74 |e run co|ncurrent|
|000017f0| 6c 79 2e 0a 58 0a 4f 66 | 20 63 6f 75 72 73 65 2c |ly..X.Of| course,|
|00001800| 20 70 6f 72 74 69 6e 67 | 20 61 6e 64 20 69 6e 73 | porting| and ins|
|00001810| 74 61 6c 6c 69 6e 67 20 | 51 42 41 54 43 48 20 69 |talling |QBATCH i|
|00001820| 73 6e 27 74 20 74 68 65 | 20 65 6e 64 2e 20 51 75 |sn't the| end. Qu|
|00001830| 65 75 65 20 64 69 73 63 | 69 70 6c 69 6e 65 20 68 |eue disc|ipline h|
|00001840| 61 73 20 74 6f 0a 62 65 | 20 69 6d 70 6f 73 65 64 |as to.be| imposed|
|00001850| 20 69 6e 20 6f 72 64 65 | 72 20 66 6f 72 20 69 74 | in orde|r for it|
|00001860| 20 74 6f 20 62 65 20 6f | 66 20 61 6e 79 20 62 65 | to be o|f any be|
|00001870| 6e 65 66 69 74 2e 20 20 | 53 63 72 69 70 74 73 20 |nefit. |Scripts |
|00001880| 61 6e 64 20 63 6f 6d 6d | 61 6e 64 73 0a 74 72 69 |and comm|ands.tri|
|00001890| 67 67 65 72 69 6e 67 20 | 62 61 74 63 68 20 6a 6f |ggering |batch jo|
|000018a0| 62 73 20 77 69 6c 6c 20 | 68 61 76 65 20 74 6f 20 |bs will |have to |
|000018b0| 62 65 20 63 68 61 6e 67 | 65 64 20 74 6f 20 75 73 |be chang|ed to us|
|000018c0| 65 20 51 42 41 54 43 48 | 2c 20 61 6e 64 20 6a 6f |e QBATCH|, and jo|
|000018d0| 62 73 20 6e 6f 72 6d 61 | 6c 6c 79 0a 72 75 6e 20 |bs norma|lly.run |
|000018e0| 69 6e 74 65 72 61 63 74 | 69 76 65 6c 79 20 77 68 |interact|ively wh|
|000018f0| 69 63 68 20 69 6d 70 6f | 73 65 20 68 65 61 76 79 |ich impo|se heavy|
|00001900| 20 73 79 73 74 65 6d 20 | 6c 6f 61 64 73 2c 20 77 | system |loads, w|
|00001910| 69 6c 6c 20 68 61 76 65 | 20 74 6f 20 62 65 0a 72 |ill have| to be.r|
|00001920| 65 63 6f 6e 66 69 67 75 | 72 65 64 2e 20 28 63 6f |econfigu|red. (co|
|00001930| 6e 73 69 64 65 72 20 66 | 6f 72 20 65 78 61 6d 70 |nsider f|or examp|
|00001940| 6c 65 20 72 65 6e 61 6d | 69 6e 67 20 27 6d 61 6b |le renam|ing 'mak|
|00001950| 65 27 20 61 73 20 27 4d | 41 4b 45 27 20 61 6e 64 |e' as 'M|AKE' and|
|00001960| 20 77 72 69 74 69 6e 67 | 20 61 0a 58 27 6d 61 6b | writing| a.X'mak|
|00001970| 65 27 20 73 63 72 69 70 | 74 20 77 68 69 63 68 20 |e' scrip|t which |
|00001980| 73 75 62 6d 69 74 73 20 | 27 4d 41 4b 45 27 20 74 |submits |'MAKE' t|
|00001990| 6f 20 61 20 71 75 65 75 | 65 29 2e 20 20 4f 66 20 |o a queu|e). Of |
|000019a0| 63 6f 75 72 73 65 20 74 | 68 65 72 65 20 77 69 6c |course t|here wil|
|000019b0| 6c 20 61 6c 77 61 79 73 | 20 62 65 0a 74 68 65 20 |l always| be.the |
|000019c0| 61 77 6b 77 61 72 64 20 | 75 73 65 72 20 77 68 6f |awkward |user who|
|000019d0| 20 64 65 63 69 64 65 73 | 20 74 6f 20 73 75 62 6d | decides| to subm|
|000019e0| 69 74 20 61 20 6c 61 72 | 67 65 20 6a 6f 62 20 69 |it a lar|ge job i|
|000019f0| 6e 74 6f 20 61 20 68 69 | 67 68 20 70 72 69 6f 72 |nto a hi|gh prior|
|00001a00| 69 74 79 20 71 75 65 75 | 65 2e 0a 41 6e 61 6c 79 |ity queu|e..Analy|
|00001a10| 73 69 6e 67 20 74 68 65 | 20 71 75 65 75 65 20 6d |sing the| queue m|
|00001a20| 6f 6e 69 74 6f 72 73 20 | 73 68 6f 75 6c 64 20 73 |onitors |should s|
|00001a30| 68 6f 77 20 74 68 69 73 | 20 75 70 2c 20 74 68 65 |how this| up, the|
|00001a40| 79 20 63 6f 6e 74 61 69 | 6e 20 61 20 63 65 72 74 |y contai|n a cert|
|00001a50| 61 69 6e 20 61 6d 6f 75 | 6e 74 0a 6f 66 20 70 72 |ain amou|nt.of pr|
|00001a60| 6f 66 69 6c 65 20 74 69 | 6d 69 6e 67 20 66 6f 72 |ofile ti|ming for|
|00001a70| 20 6a 6f 62 73 20 72 75 | 6e 20 69 6e 20 74 68 65 | jobs ru|n in the|
|00001a80| 20 71 75 65 75 65 2c 20 | 61 6e 64 20 74 68 65 20 | queue, |and the |
|00001a90| 75 69 64 20 61 6e 64 20 | 67 69 64 20 6f 66 20 74 |uid and |gid of t|
|00001aa0| 68 65 20 73 75 62 6d 69 | 74 74 6f 72 2e 0a 58 0a |he submi|ttor..X.|
|00001ab0| 54 68 69 73 20 73 68 6f | 75 6c 64 20 67 69 76 65 |This sho|uld give|
|00001ac0| 20 79 6f 75 20 61 20 74 | 61 73 74 65 20 6f 66 20 | you a t|aste of |
|00001ad0| 77 68 61 74 20 51 42 41 | 54 43 48 20 68 61 73 20 |what QBA|TCH has |
|00001ae0| 74 6f 20 6f 66 66 65 72 | 2e 0a 58 0a 52 65 67 61 |to offer|..X.Rega|
|00001af0| 72 64 73 20 2e 2e 20 41 | 6c 61 6e 0a 58 0a 45 4e |rds .. A|lan.X.EN|
|00001b00| 44 5f 4f 46 5f 46 49 4c | 45 0a 69 66 20 74 65 73 |D_OF_FIL|E.if tes|
|00001b10| 74 20 35 35 38 30 20 2d | 6e 65 20 60 77 63 20 2d |t 5580 -|ne `wc -|
|00001b20| 63 20 3c 27 44 45 53 43 | 52 49 50 54 49 4f 4e 27 |c <'DESC|RIPTION'|
|00001b30| 60 3b 20 74 68 65 6e 0a | 20 20 20 20 65 63 68 6f |`; then.| echo|
|00001b40| 20 73 68 61 72 3a 20 5c | 22 27 44 45 53 43 52 49 | shar: \|"'DESCRI|
|00001b50| 50 54 49 4f 4e 27 5c 22 | 20 75 6e 70 61 63 6b 65 |PTION'\"| unpacke|
|00001b60| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00001b70| 65 21 0a 66 69 0a 23 20 | 65 6e 64 20 6f 66 20 27 |e!.fi.# |end of '|
|00001b80| 44 45 53 43 52 49 50 54 | 49 4f 4e 27 0a 66 69 0a |DESCRIPT|ION'.fi.|
|00001b90| 69 66 20 74 65 73 74 20 | 2d 66 20 27 49 4e 53 54 |if test |-f 'INST|
|00001ba0| 41 4c 4c 27 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |ALL' -a |"${1}" !|
|00001bb0| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|00001bc0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00001bd0| 20 6e 6f 74 20 63 6c 6f | 62 62 65 72 20 65 78 69 | not clo|bber exi|
|00001be0| 73 74 69 6e 67 20 66 69 | 6c 65 20 5c 22 27 49 4e |sting fi|le \"'IN|
|00001bf0| 53 54 41 4c 4c 27 5c 22 | 0a 65 6c 73 65 0a 65 63 |STALL'\"|.else.ec|
|00001c00| 68 6f 20 73 68 61 72 3a | 20 45 78 74 72 61 63 74 |ho shar:| Extract|
|00001c10| 69 6e 67 20 5c 22 27 49 | 4e 53 54 41 4c 4c 27 5c |ing \"'I|NSTALL'\|
|00001c20| 22 20 5c 28 34 38 38 39 | 20 63 68 61 72 61 63 74 |" \(4889| charact|
|00001c30| 65 72 73 5c 29 0a 73 65 | 64 20 22 73 2f 5e 58 2f |ers\).se|d "s/^X/|
|00001c40| 2f 22 20 3e 27 49 4e 53 | 54 41 4c 4c 27 20 3c 3c |/" >'INS|TALL' <<|
|00001c50| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 0a |'END_OF_|FILE'.X.|
|00001c60| 58 09 51 42 41 54 43 48 | 20 56 65 72 73 69 6f 6e |X.QBATCH| Version|
|00001c70| 20 32 2e 30 20 49 6e 73 | 74 61 6c 6c 61 74 69 6f | 2.0 Ins|tallatio|
|00001c80| 6e 20 6e 6f 74 65 73 20 | 61 6e 64 20 62 65 77 61 |n notes |and bewa|
|00001c90| 72 65 73 0a 58 0a 58 09 | 54 68 65 20 51 42 41 54 |res.X.X.|The QBAT|
|00001ca0| 43 48 20 73 79 73 74 65 | 6d 20 61 6e 64 20 69 74 |CH syste|m and it|
|00001cb0| 73 20 72 65 6c 61 74 65 | 64 20 70 72 6f 67 72 61 |s relate|d progra|
|00001cc0| 6d 73 20 77 65 72 65 0a | 58 09 77 72 69 74 74 65 |ms were.|X.writte|
|00001cd0| 6e 20 62 79 20 41 6c 61 | 6e 20 44 2e 20 53 61 75 |n by Ala|n D. Sau|
|00001ce0| 6e 64 65 72 73 20 61 6e | 64 20 61 72 65 0a 58 09 |nders an|d are.X.|
|00001cf0| 43 6f 70 79 72 69 67 68 | 74 20 28 63 29 20 56 69 |Copyrigh|t (c) Vi|
|00001d00| 74 61 20 53 65 72 76 69 | 63 65 73 20 4c 74 64 2e |ta Servi|ces Ltd.|
|00001d10| 20 31 39 39 30 20 61 6e | 64 0a 58 09 43 6f 70 79 | 1990 an|d.X.Copy|
|00001d20| 72 69 67 68 74 20 28 63 | 29 20 56 69 74 61 20 46 |right (c|) Vita F|
|00001d30| 69 62 72 65 73 20 4c 74 | 64 2e 20 31 39 39 31 0a |ibres Lt|d. 1991.|
|00001d40| 58 0a 58 09 50 4c 45 41 | 53 45 20 72 65 61 64 20 |X.X.PLEA|SE read |
|00001d50| 74 68 65 20 4e 4f 54 49 | 43 45 20 66 69 6c 65 20 |the NOTI|CE file |
|00001d60| 66 6f 72 20 64 65 74 61 | 69 6c 73 2e 0a 58 0a 58 |for deta|ils..X.X|
|00001d70| 46 49 52 53 54 20 52 45 | 41 44 20 41 4c 4c 20 4f |FIRST RE|AD ALL O|
|00001d80| 46 20 54 48 45 20 54 45 | 58 54 20 46 49 4c 45 53 |F THE TE|XT FILES|
|00001d90| 20 49 4e 20 54 48 49 53 | 20 44 49 52 45 43 54 4f | IN THIS| DIRECTO|
|00001da0| 52 59 21 21 21 20 54 68 | 65 6e 20 72 65 61 64 20 |RY!!! Th|en read |
|00001db0| 74 68 6f 73 65 20 69 6e | 20 74 68 65 0a 58 27 64 |those in| the.X'd|
|00001dc0| 6f 63 27 20 64 69 72 65 | 63 74 6f 72 79 2e 20 54 |oc' dire|ctory. T|
|00001dd0| 68 65 6e 20 79 6f 75 20 | 77 69 6c 6c 20 6b 6e 6f |hen you |will kno|
|00001de0| 77 20 77 68 61 74 20 51 | 42 41 54 43 48 20 69 73 |w what Q|BATCH is|
|00001df0| 2c 20 61 6e 64 20 74 68 | 65 20 63 6f 6e 64 69 74 |, and th|e condit|
|00001e00| 69 6f 6e 73 20 79 6f 75 | 0a 61 72 65 20 64 65 65 |ions you|.are dee|
|00001e10| 6d 65 64 20 74 6f 20 68 | 61 76 65 20 61 63 63 65 |med to h|ave acce|
|00001e20| 70 74 65 64 20 62 79 20 | 63 6f 6d 70 69 6c 69 6e |pted by |compilin|
|00001e30| 67 2c 20 69 6e 73 74 61 | 6c 6c 69 6e 67 2c 20 61 |g, insta|lling, a|
|00001e40| 6e 64 20 75 73 69 6e 67 | 20 69 74 2e 0a 58 0a 58 |nd using| it..X.X|
|00001e50| 45 73 70 65 63 69 61 6c | 6c 79 20 72 65 61 64 20 |Especial|ly read |
|00001e60| 74 68 65 20 66 69 6c 65 | 20 64 6f 63 2f 63 68 61 |the file| doc/cha|
|00001e70| 70 2e 30 39 20 28 73 65 | 63 75 72 69 74 79 29 2e |p.09 (se|curity).|
|00001e80| 20 53 6f 6d 65 20 6f 66 | 20 74 68 65 20 63 6f 6e | Some of| the con|
|00001e90| 63 65 70 74 73 20 6f 75 | 74 6c 69 6e 65 64 0a 68 |cepts ou|tlined.h|
|00001ea0| 65 72 65 20 6d 61 79 20 | 62 65 20 6f 76 65 72 72 |ere may |be overr|
|00001eb0| 75 6c 65 64 20 62 79 20 | 69 74 27 73 20 63 6f 6e |uled by |it's con|
|00001ec0| 74 65 6e 74 73 2e 0a 58 | 0a 4f 6e 63 65 20 79 6f |tents..X|.Once yo|
|00001ed0| 75 20 61 72 65 20 73 61 | 74 69 73 66 69 65 64 2c |u are sa|tisfied,|
|00001ee0| 20 63 68 61 6e 67 65 20 | 64 69 72 65 63 74 6f 72 | change |director|
|00001ef0| 79 20 74 6f 20 74 68 65 | 20 73 72 63 20 64 69 72 |y to the| src dir|
|00001f00| 65 63 74 6f 72 79 2c 20 | 61 6e 64 20 68 61 76 65 |ectory, |and have|
|00001f10| 0a 61 20 6c 6f 6f 6b 20 | 61 74 20 63 6f 6e 66 69 |.a look |at confi|
|00001f20| 67 2e 68 2e 20 20 59 6f | 75 20 73 68 6f 75 6c 64 |g.h. Yo|u should|
|00001f30| 20 66 69 6e 64 20 63 6f | 6e 66 69 67 75 72 61 74 | find co|nfigurat|
|00001f40| 69 6f 6e 20 6f 70 74 69 | 6f 6e 73 20 61 76 61 69 |ion opti|ons avai|
|00001f50| 6c 61 62 6c 65 0a 77 68 | 69 63 68 20 61 72 65 20 |lable.wh|ich are |
|00001f60| 73 75 70 70 6f 72 74 65 | 64 20 62 79 20 79 6f 75 |supporte|d by you|
|00001f70| 72 20 73 79 73 74 65 6d | 2e 20 20 49 66 20 6e 6f |r system|. If no|
|00001f80| 74 2c 20 74 68 65 72 65 | 20 73 68 6f 75 6c 64 20 |t, there| should |
|00001f90| 62 65 20 65 6e 6f 75 67 | 68 0a 69 6e 66 6f 72 6d |be enoug|h.inform|
|00001fa0| 61 74 69 6f 6e 20 63 6f | 6e 74 61 69 6e 65 64 20 |ation co|ntained |
|00001fb0| 74 68 65 72 65 69 6e 20 | 74 6f 20 61 6c 6c 6f 77 |therein |to allow|
|00001fc0| 20 79 6f 75 20 74 6f 20 | 61 64 64 20 66 75 72 74 | you to |add furt|
|00001fd0| 68 65 72 20 6f 70 74 69 | 6f 6e 73 20 69 66 0a 79 |her opti|ons if.y|
|00001fe0| 6f 75 20 62 6f 74 68 20 | 66 65 65 6c 20 69 74 20 |ou both |feel it |
|00001ff0| 6e 65 63 65 73 73 61 72 | 79 2c 20 61 6e 64 20 61 |necessar|y, and a|
|00002000| 72 65 20 63 61 70 61 62 | 6c 65 2e 20 20 44 65 66 |re capab|le. Def|
|00002010| 69 6e 65 20 74 68 65 20 | 63 6f 6e 66 69 67 75 72 |ine the |configur|
|00002020| 61 74 69 6f 6e 0a 66 6f | 72 20 79 6f 75 72 20 70 |ation.fo|r your p|
|00002030| 6c 61 74 66 6f 72 6d 20 | 62 79 20 63 6f 6d 6d 65 |latform |by comme|
|00002040| 6e 74 69 6e 67 20 6f 75 | 74 20 74 68 6f 73 65 20 |nting ou|t those |
|00002050| 6f 70 74 69 6f 6e 73 20 | 77 68 69 63 68 20 61 72 |options |which ar|
|00002060| 65 20 6e 6f 74 0a 73 75 | 70 70 6f 72 74 65 64 2c |e not.su|pported,|
|00002070| 20 61 6e 64 20 75 6e 63 | 6f 6d 6d 65 6e 74 69 6e | and unc|ommentin|
|00002080| 67 20 74 68 6f 73 65 20 | 28 6f 6e 65 20 69 6e 20 |g those |(one in |
|00002090| 65 61 63 68 20 67 72 6f | 75 70 29 20 77 68 69 63 |each gro|up) whic|
|000020a0| 68 20 61 72 65 2e 0a 58 | 0a 54 68 65 6e 20 6c 6f |h are..X|.Then lo|
|000020b0| 6f 6b 20 61 74 20 74 68 | 65 20 4d 61 6b 65 66 69 |ok at th|e Makefi|
|000020c0| 6c 65 2c 20 61 6e 64 20 | 65 6e 73 75 72 65 20 74 |le, and |ensure t|
|000020d0| 68 61 74 20 42 49 4e 44 | 49 52 20 69 73 20 73 65 |hat BIND|IR is se|
|000020e0| 74 20 74 6f 20 77 68 65 | 72 65 20 79 6f 75 0a 77 |t to whe|re you.w|
|000020f0| 61 6e 74 20 74 68 65 20 | 62 69 6e 61 72 69 65 73 |ant the |binaries|
|00002100| 20 69 6e 73 74 61 6c 6c | 65 64 2c 20 61 6e 64 20 | install|ed, and |
|00002110| 74 68 61 74 20 4d 41 4e | 44 49 52 20 69 73 20 77 |that MAN|DIR is w|
|00002120| 68 65 72 65 20 79 6f 75 | 20 77 61 6e 74 20 74 68 |here you| want th|
|00002130| 65 0a 6d 61 6e 75 61 6c | 20 70 61 67 65 73 2e 20 |e.manual| pages. |
|00002140| 41 6c 73 6f 20 63 68 65 | 63 6b 20 74 6f 20 73 65 |Also che|ck to se|
|00002150| 65 20 20 69 66 20 74 68 | 65 20 64 65 66 69 6e 65 |e if th|e define|
|00002160| 64 20 70 61 74 68 73 20 | 66 6f 72 20 53 50 4f 4f |d paths |for SPOO|
|00002170| 4c 50 41 54 48 0a 61 6e | 64 20 51 55 45 55 45 50 |LPATH.an|d QUEUEP|
|00002180| 41 54 48 20 61 72 65 20 | 73 61 74 69 73 66 61 63 |ATH are |satisfac|
|00002190| 74 6f 72 79 20 66 6f 72 | 20 79 6f 75 72 20 73 79 |tory for| your sy|
|000021a0| 73 74 65 6d 2e 20 20 51 | 55 45 55 45 50 41 54 48 |stem. Q|UEUEPATH|
|000021b0| 20 69 73 20 77 68 65 72 | 65 20 74 68 65 0a 61 63 | is wher|e the.ac|
|000021c0| 74 75 61 6c 20 71 75 65 | 75 65 20 66 69 6c 65 73 |tual que|ue files|
|000021d0| 20 74 68 65 6d 73 65 6c | 76 65 73 20 67 6f 2e 20 | themsel|ves go. |
|000021e0| 54 68 65 20 64 69 72 65 | 63 74 6f 72 79 20 6d 75 |The dire|ctory mu|
|000021f0| 73 74 20 65 78 69 73 74 | 2e 20 49 74 20 6d 75 73 |st exist|. It mus|
|00002200| 74 20 62 65 0a 77 6f 72 | 6c 64 20 73 65 61 72 63 |t be.wor|ld searc|
|00002210| 68 61 62 6c 65 2c 20 62 | 75 74 20 73 68 6f 75 6c |hable, b|ut shoul|
|00002220| 64 20 6f 6e 6c 79 20 62 | 65 20 72 6f 6f 74 20 77 |d only b|e root w|
|00002230| 72 69 74 65 61 62 6c 65 | 2e 20 20 53 50 4f 4f 4c |riteable|. SPOOL|
|00002240| 50 41 54 48 20 69 73 0a | 77 68 65 72 65 20 74 68 |PATH is.|where th|
|00002250| 65 20 62 61 74 63 68 20 | 66 69 6c 65 73 20 61 72 |e batch |files ar|
|00002260| 65 20 63 72 65 61 74 65 | 64 2c 20 61 67 61 69 6e |e create|d, again|
|00002270| 2c 20 74 68 65 20 77 6f | 72 6c 64 20 73 68 6f 75 |, the wo|rld shou|
|00002280| 6c 64 20 62 65 20 61 62 | 6c 65 20 74 6f 0a 6c 6f |ld be ab|le to.lo|
|00002290| 6f 6b 20 61 74 20 74 68 | 65 20 63 6f 6e 74 65 6e |ok at th|e conten|
|000022a0| 74 73 20 6f 66 20 74 68 | 65 73 65 20 66 69 6c 65 |ts of th|ese file|
|000022b0| 73 20 28 6a 63 6c 20 61 | 6e 64 20 6d 6f 6e 69 74 |s (jcl a|nd monit|
|000022c0| 6f 72 73 29 2c 20 62 75 | 74 20 6f 6e 6c 79 20 72 |ors), bu|t only r|
|000022d0| 6f 6f 74 0a 73 68 6f 75 | 6c 64 20 62 65 20 61 62 |oot.shou|ld be ab|
|000022e0| 6c 65 20 74 6f 20 63 72 | 65 61 74 65 20 61 6e 64 |le to cr|eate and|
|000022f0| 20 64 65 6c 65 74 65 20 | 74 68 65 6d 2e 0a 58 0a | delete |them..X.|
|00002300| 4e 6f 77 2c 20 69 66 20 | 79 6f 75 20 61 72 65 20 |Now, if |you are |
|00002310| 6e 6f 74 20 79 6f 75 72 | 20 73 79 73 74 65 6d 73 |not your| systems|
|00002320| 20 61 64 6d 69 6e 69 73 | 74 72 61 74 6f 72 2c 20 | adminis|trator, |
|00002330| 79 6f 75 20 61 72 65 20 | 61 74 20 68 69 73 20 28 |you are |at his (|
|00002340| 6f 72 20 68 65 72 29 0a | 6d 65 72 63 79 2e 20 20 |or her).|mercy. |
|00002350| 43 65 72 74 61 69 6e 20 | 6f 66 20 74 68 65 20 51 |Certain |of the Q|
|00002360| 42 41 54 43 48 20 70 72 | 6f 67 72 61 6d 73 20 6e |BATCH pr|ograms n|
|00002370| 65 65 64 20 74 6f 20 62 | 65 20 61 62 6c 65 20 74 |eed to b|e able t|
|00002380| 6f 20 73 65 74 20 75 73 | 65 72 20 61 6e 64 0a 67 |o set us|er and.g|
|00002390| 72 6f 75 70 20 69 64 27 | 73 20 73 6f 20 74 68 65 |roup id'|s so the|
|000023a0| 79 20 6d 75 73 74 20 62 | 65 20 6f 77 6e 65 64 20 |y must b|e owned |
|000023b0| 62 79 20 72 6f 6f 74 2c | 20 61 6e 64 20 73 65 74 |by root,| and set|
|000023c0| 75 69 64 2e 20 54 68 65 | 20 4d 61 6b 65 66 69 6c |uid. The| Makefil|
|000023d0| 65 0a 61 73 73 75 6d 65 | 73 20 74 68 61 74 20 74 |e.assume|s that t|
|000023e0| 68 65 20 70 65 72 73 6f | 6e 20 72 75 6e 6e 69 6e |he perso|n runnin|
|000023f0| 67 20 6d 61 6b 65 2c 20 | 69 73 20 61 63 74 75 61 |g make, |is actua|
|00002400| 6c 6c 79 20 72 6f 6f 74 | 2c 20 61 6e 64 20 63 68 |lly root|, and ch|
|00002410| 61 6e 67 65 73 0a 66 69 | 6c 65 20 6d 6f 64 65 73 |anges.fi|le modes|
|00002420| 20 61 63 63 6f 72 64 69 | 6e 67 6c 79 2e 20 20 53 | accordi|ngly. S|
|00002430| 6f 6d 65 20 6f 66 20 74 | 68 65 20 70 72 6f 67 72 |ome of t|he progr|
|00002440| 61 6d 73 20 73 69 6d 70 | 6c 79 20 77 69 6c 6c 20 |ams simp|ly will |
|00002450| 6e 6f 74 20 77 6f 72 6b | 0a 70 72 6f 70 65 72 6c |not work|.properl|
|00002460| 79 20 69 66 20 74 68 65 | 79 20 64 6f 6e 27 74 20 |y if the|y don't |
|00002470| 68 61 76 65 20 74 68 65 | 20 72 69 67 68 74 20 6d |have the| right m|
|00002480| 6f 64 65 73 20 61 6e 64 | 2f 6f 72 20 61 72 65 20 |odes and|/or are |
|00002490| 6e 6f 74 20 6f 77 6e 65 | 64 20 62 79 0a 72 6f 6f |not owne|d by.roo|
|000024a0| 74 2e 0a 58 0a 54 72 79 | 20 27 6d 61 6b 65 27 20 |t..X.Try| 'make' |
|000024b0| 61 6e 64 20 73 65 65 20 | 69 66 20 74 68 65 72 65 |and see |if there|
|000024c0| 20 61 72 65 20 61 6e 79 | 20 65 72 72 6f 72 73 2e | are any| errors.|
|000024d0| 20 20 49 66 20 79 6f 75 | 20 63 61 6e 20 72 65 73 | If you| can res|
|000024e0| 6f 6c 76 65 20 74 68 65 | 6d 2c 0a 64 6f 20 73 6f |olve the|m,.do so|
|000024f0| 2c 20 42 55 54 20 4c 45 | 54 20 4d 45 20 4b 4e 4f |, BUT LE|T ME KNO|
|00002500| 57 21 21 2c 20 49 20 77 | 69 6c 6c 20 69 6e 63 6c |W!!, I w|ill incl|
|00002510| 75 64 65 20 66 69 78 65 | 73 2c 20 61 6e 64 20 6f |ude fixe|s, and o|
|00002520| 72 20 72 65 6c 65 61 73 | 65 20 70 61 74 63 68 65 |r releas|e patche|
|00002530| 73 0a 61 73 20 6e 65 65 | 64 65 64 2e 0a 58 0a 49 |s.as nee|ded..X.I|
|00002540| 66 20 79 6f 75 20 67 65 | 74 20 61 20 63 6c 65 61 |f you ge|t a clea|
|00002550| 6e 20 63 6f 6d 70 69 6c | 61 74 69 6f 6e 2c 20 62 |n compil|ation, b|
|00002560| 75 74 20 61 72 65 20 6e | 6f 74 20 6c 6f 67 67 65 |ut are n|ot logge|
|00002570| 64 20 69 6e 20 61 73 20 | 72 6f 6f 74 2c 20 72 65 |d in as |root, re|
|00002580| 6d 6f 76 65 0a 74 68 65 | 20 65 78 65 63 75 74 61 |move.the| executa|
|00002590| 62 6c 65 73 2c 20 61 6e | 64 20 63 61 6c 6c 20 79 |bles, an|d call y|
|000025a0| 6f 75 72 20 73 79 73 61 | 64 6d 69 6e 20 74 6f 20 |our sysa|dmin to |
|000025b0| 72 65 2d 6d 61 6b 65 20 | 61 73 20 72 6f 6f 74 2e |re-make |as root.|
|000025c0| 0a 58 0a 4d 61 6b 65 20 | 74 68 65 20 64 69 72 65 |.X.Make |the dire|
|000025d0| 63 74 6f 72 69 65 73 20 | 64 65 66 69 6e 65 64 20 |ctories |defined |
|000025e0| 69 6e 20 51 42 41 54 43 | 48 2e 68 20 61 73 20 53 |in QBATC|H.h as S|
|000025f0| 50 4f 4f 4c 50 41 54 48 | 20 61 6e 64 20 51 55 45 |POOLPATH| and QUE|
|00002600| 55 45 50 41 54 48 2c 20 | 61 6e 64 0a 65 6e 73 75 |UEPATH, |and.ensu|
|00002610| 72 65 20 74 68 65 79 20 | 68 61 76 65 20 74 68 65 |re they |have the|
|00002620| 20 63 6f 72 72 65 63 74 | 20 70 65 72 6d 69 73 73 | correct| permiss|
|00002630| 69 6f 6e 73 2e 0a 58 0a | 49 66 20 74 68 65 72 65 |ions..X.|If there|
|00002640| 20 61 72 65 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 | are env|ironment|
|00002650| 20 76 61 72 69 61 62 6c | 65 73 20 64 65 66 69 6e | variabl|es defin|
|00002660| 65 64 20 66 6f 72 20 75 | 73 65 72 73 20 77 68 69 |ed for u|sers whi|
|00002670| 63 68 20 61 72 65 0a 6d | 65 61 6e 69 6e 67 6c 65 |ch are.m|eaningle|
|00002680| 73 73 20 69 6e 20 61 20 | 62 61 74 63 68 20 63 6f |ss in a |batch co|
|00002690| 6e 74 65 78 74 20 28 6f | 72 20 68 61 72 6d 66 75 |ntext (o|r harmfu|
|000026a0| 6c 29 20 63 72 65 61 74 | 65 20 61 20 66 69 6c 65 |l) creat|e a file|
|000026b0| 20 27 2e 71 78 65 6e 76 | 27 20 69 6e 0a 51 55 45 | '.qxenv|' in.QUE|
|000026c0| 55 45 50 41 54 48 20 63 | 6f 6e 74 61 69 6e 69 6e |UEPATH c|ontainin|
|000026d0| 67 20 61 20 6c 69 73 74 | 20 28 6f 6e 65 20 70 65 |g a list| (one pe|
|000026e0| 72 20 6c 69 6e 65 29 20 | 6f 66 20 74 68 6f 73 65 |r line) |of those|
|000026f0| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 0a 76 61 72 | environ|ment.var|
|00002700| 69 61 62 6c 65 73 20 74 | 6f 20 62 65 20 45 58 43 |iables t|o be EXC|
|00002710| 4c 55 44 45 44 20 66 72 | 6f 6d 20 62 61 74 63 68 |LUDED fr|om batch|
|00002720| 20 6a 6f 62 73 2e 20 45 | 6e 73 75 72 65 20 69 74 | jobs. E|nsure it|
|00002730| 20 69 73 20 72 65 61 64 | 61 62 6c 65 0a 58 28 6f | is read|able.X(o|
|00002740| 6e 6c 79 29 20 62 79 20 | 72 6f 6f 74 2e 0a 58 0a |nly) by |root..X.|
|00002750| 49 66 20 79 6f 75 20 61 | 72 65 20 67 6f 69 6e 67 |If you a|re going|
|00002760| 20 74 6f 20 69 6d 70 6c | 65 6d 65 6e 74 20 66 69 | to impl|ement fi|
|00002770| 78 65 64 20 63 6f 6e 74 | 65 78 74 20 71 75 65 75 |xed cont|ext queu|
|00002780| 65 73 2c 20 63 72 65 61 | 74 65 20 61 20 66 69 6c |es, crea|te a fil|
|00002790| 65 20 69 6e 0a 51 55 45 | 55 45 50 41 54 48 20 63 |e in.QUE|UEPATH c|
|000027a0| 61 6c 6c 65 64 20 27 2e | 3c 71 75 65 75 65 6e 61 |alled '.|<queuena|
|000027b0| 6d 65 3e 72 63 27 20 73 | 65 74 74 69 6e 67 20 75 |me>rc' s|etting u|
|000027c0| 70 20 74 68 65 20 63 6f | 6e 74 65 78 74 20 61 6e |p the co|ntext an|
|000027d0| 64 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 0a 66 6f |d enviro|nment.fo|
|000027e0| 72 20 74 68 65 20 6a 6f | 62 73 2c 20 66 6f 72 20 |r the jo|bs, for |
|000027f0| 65 61 63 68 20 71 75 65 | 75 65 20 63 72 65 61 74 |each que|ue creat|
|00002800| 65 64 20 75 73 69 6e 67 | 20 74 68 65 20 2d 66 20 |ed using| the -f |
|00002810| 6f 70 74 69 6f 6e 20 6f | 66 20 71 63 2e 20 20 28 |option o|f qc. (|
|00002820| 73 65 65 0a 74 68 65 20 | 6d 61 6e 20 70 61 67 65 |see.the |man page|
|00002830| 20 66 6f 72 20 71 63 29 | 2e 0a 58 0a 54 68 65 6e | for qc)|..X.Then|
|00002840| 20 6d 61 6b 65 20 69 6e | 73 74 61 6c 6c 2c 20 63 | make in|stall, c|
|00002850| 72 65 61 74 65 20 73 6f | 6d 65 20 71 75 65 75 65 |reate so|me queue|
|00002860| 73 2c 20 20 61 6e 64 20 | 74 72 79 20 69 74 20 6f |s, and |try it o|
|00002870| 75 74 2e 0a 58 0a 42 45 | 57 41 52 45 73 0a 58 0a |ut..X.BE|WAREs.X.|
|00002880| 51 42 41 54 43 48 20 69 | 73 20 6f 6e 6c 79 20 61 |QBATCH i|s only a|
|00002890| 73 20 67 6f 6f 64 20 61 | 73 20 74 68 65 20 73 63 |s good a|s the sc|
|000028a0| 72 69 70 74 73 20 69 74 | 20 69 73 20 72 75 6e 6e |ripts it| is runn|
|000028b0| 69 6e 67 2e 20 20 49 74 | 20 68 61 73 20 62 65 65 |ing. It| has bee|
|000028c0| 6e 0a 72 75 6e 6e 69 6e | 67 20 6e 6f 77 20 66 6f |n.runnin|g now fo|
|000028d0| 72 20 61 20 79 65 61 72 | 20 6f 6e 20 73 65 76 65 |r a year| on seve|
|000028e0| 72 61 6c 20 73 70 61 72 | 63 73 74 61 74 69 6f 6e |ral spar|cstation|
|000028f0| 73 20 61 6e 64 20 73 65 | 72 76 65 72 73 2c 20 61 |s and se|rvers, a|
|00002900| 6e 64 20 74 68 65 0a 6f | 6e 6c 79 20 70 72 6f 62 |nd the.o|nly prob|
|00002910| 6c 65 6d 73 20 77 65 20 | 68 61 76 65 20 65 6e 63 |lems we |have enc|
|00002920| 6f 75 6e 74 65 72 65 64 | 20 68 61 76 65 20 62 65 |ountered| have be|
|00002930| 65 6e 20 6f 6e 20 66 69 | 6c 65 20 70 65 72 6d 69 |en on fi|le permi|
|00002940| 73 73 69 6f 6e 73 2c 20 | 77 68 65 72 65 0a 66 69 |ssions, |where.fi|
|00002950| 6c 65 73 20 68 61 76 65 | 20 62 65 65 6e 20 63 72 |les have| been cr|
|00002960| 65 61 74 65 64 20 69 6e | 20 74 68 65 20 66 6f 72 |eated in| the for|
|00002970| 65 67 72 6f 75 6e 64 20 | 69 6e 20 61 20 73 65 74 |eground |in a set|
|00002980| 75 69 64 20 73 63 72 69 | 70 74 28 3f 3f 29 2c 20 |uid scri|pt(??), |
|00002990| 61 6e 64 0a 74 68 65 20 | 62 61 74 63 68 20 6a 6f |and.the |batch jo|
|000029a0| 62 20 68 61 73 20 74 72 | 69 65 64 20 74 6f 20 64 |b has tr|ied to d|
|000029b0| 65 6c 65 74 65 20 74 68 | 6f 73 65 20 66 69 6c 65 |elete th|ose file|
|000029c0| 73 0a 58 2e 2e 2e 2e 20 | 54 68 65 20 62 61 74 63 |s.X.... |The batc|
|000029d0| 68 20 6a 6f 62 20 75 6e | 6c 65 73 73 20 72 75 6e |h job un|less run|
|000029e0| 6e 69 6e 67 20 69 6e 20 | 61 20 66 69 78 65 64 20 |ning in |a fixed |
|000029f0| 63 6f 6e 74 65 78 74 20 | 71 75 65 75 65 20 77 69 |context |queue wi|
|00002a00| 74 68 20 23 51 43 4f 4e | 54 45 58 54 0a 73 70 65 |th #QCON|TEXT.spe|
|00002a10| 63 69 66 69 65 64 20 69 | 6e 20 74 68 65 20 2e 3c |cified i|n the .<|
|00002a20| 71 75 65 75 65 6e 61 6d | 65 3e 72 63 20 66 69 6c |queuenam|e>rc fil|
|00002a30| 65 2c 20 72 75 6e 73 20 | 75 6e 64 65 72 20 74 68 |e, runs |under th|
|00002a40| 65 20 75 73 65 72 27 73 | 20 72 65 61 6c 20 75 69 |e user's| real ui|
|00002a50| 64 21 0a 49 6e 20 74 68 | 65 73 65 20 63 61 73 65 |d!.In th|ese case|
|00002a60| 73 2c 20 74 68 65 20 73 | 63 72 69 70 74 20 68 61 |s, the s|cript ha|
|00002a70| 6e 67 73 20 75 6e 74 69 | 6c 20 73 6f 6d 65 6f 6e |ngs unti|l someon|
|00002a80| 65 20 74 79 70 65 73 20 | 73 6f 6d 65 74 68 69 6e |e types |somethin|
|00002a90| 67 20 6f 6e 20 74 68 65 | 0a 73 79 73 74 65 6d 20 |g on the|.system |
|00002aa0| 63 6f 6e 73 6f 6c 65 2e | 0a 58 0a 4a 6f 62 20 63 |console.|.X.Job c|
|00002ab0| 6f 6e 74 72 6f 6c 2e 20 | 49 20 61 6d 20 61 77 61 |ontrol. |I am awa|
|00002ac0| 72 65 20 74 68 61 74 20 | 73 6f 6d 65 20 73 79 73 |re that |some sys|
|00002ad0| 74 65 6d 73 20 64 6f 20 | 6e 6f 74 20 73 75 70 70 |tems do |not supp|
|00002ae0| 6f 72 74 20 74 68 69 73 | 20 28 61 6c 72 69 67 68 |ort this| (alrigh|
|00002af0| 74 0a 63 61 6c 6c 20 6d | 65 20 61 20 6c 69 61 72 |t.call m|e a liar|
|00002b00| 21 29 20 4a 6f 62 20 63 | 6f 6e 74 72 6f 6c 20 69 |!) Job c|ontrol i|
|00002b10| 73 20 6f 6e 6c 79 20 75 | 73 65 64 20 69 6e 20 51 |s only u|sed in Q|
|00002b20| 42 41 54 43 48 2c 20 74 | 6f 20 67 72 6f 75 70 20 |BATCH, t|o group |
|00002b30| 74 6f 67 65 74 68 65 72 | 0a 61 6e 79 20 63 68 69 |together|.any chi|
|00002b40| 6c 64 72 65 6e 20 77 68 | 69 63 68 20 6d 61 79 20 |ldren wh|ich may |
|00002b50| 62 65 20 66 6f 72 6b 65 | 64 20 62 79 20 61 20 72 |be forke|d by a r|
|00002b60| 75 6e 6e 69 6e 67 20 6a | 6f 62 2e 20 20 54 68 69 |unning j|ob. Thi|
|00002b70| 73 20 69 73 20 73 6f 20 | 74 68 61 74 20 61 0a 73 |s is so |that a.s|
|00002b80| 69 67 6e 61 6c 20 28 53 | 49 47 53 54 4f 50 2c 20 |ignal (S|IGSTOP, |
|00002b90| 53 49 47 43 4f 4e 54 2c | 20 61 6e 64 20 53 49 47 |SIGCONT,| and SIG|
|00002ba0| 4b 49 4c 4c 29 20 73 65 | 6e 74 20 74 6f 20 74 68 |KILL) se|nt to th|
|00002bb0| 65 20 70 69 64 20 6f 66 | 20 61 20 72 75 6e 6e 69 |e pid of| a runni|
|00002bc0| 6e 67 0a 6a 6f 62 2c 20 | 69 73 20 61 63 74 75 61 |ng.job, |is actua|
|00002bd0| 6c 6c 79 20 70 72 6f 70 | 61 67 61 74 65 64 20 74 |lly prop|agated t|
|00002be0| 68 72 6f 75 67 68 20 69 | 74 27 73 20 63 68 69 6c |hrough i|t's chil|
|00002bf0| 64 72 65 6e 2e 20 20 55 | 6e 6c 65 73 73 20 79 6f |dren. U|nless yo|
|00002c00| 75 20 63 61 6e 20 66 69 | 6e 64 0a 61 20 77 61 79 |u can fi|nd.a way|
|00002c10| 20 72 6f 75 6e 64 20 74 | 68 69 73 2c 20 69 66 20 | round t|his, if |
|00002c20| 79 6f 75 20 6e 65 65 64 | 20 74 6f 20 64 6f 20 73 |you need| to do s|
|00002c30| 75 63 68 20 61 20 74 68 | 69 6e 67 2c 20 79 6f 75 |uch a th|ing, you|
|00002c40| 27 6c 6c 20 68 61 76 65 | 20 74 6f 0a 65 78 61 6d |'ll have| to.exam|
|00002c50| 69 6e 65 20 74 68 65 20 | 27 70 73 27 20 6f 75 74 |ine the |'ps' out|
|00002c60| 70 75 74 20 74 6f 20 69 | 64 65 6e 74 69 66 79 20 |put to i|dentify |
|00002c70| 74 68 65 20 63 68 69 6c | 64 72 65 6e 20 69 66 20 |the chil|dren if |
|00002c80| 61 6e 79 2c 20 61 6e 64 | 20 6b 69 6c 6c 20 74 68 |any, and| kill th|
|00002c90| 65 6d 0a 62 79 20 68 61 | 6e 64 2e 20 28 74 68 65 |em.by ha|nd. (the|
|00002ca0| 20 6a 6f 62 20 69 74 73 | 65 6c 66 20 6f 66 20 63 | job its|elf of c|
|00002cb0| 6f 75 72 73 65 20 77 69 | 6c 6c 20 72 65 63 65 69 |ourse wi|ll recei|
|00002cc0| 76 65 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |ve the o|riginal |
|00002cd0| 73 69 67 6e 61 6c 29 2e | 0a 58 0a 74 72 75 6e 63 |signal).|.X.trunc|
|00002ce0| 61 74 65 28 29 2c 20 66 | 74 72 75 6e 63 61 74 65 |ate(), f|truncate|
|00002cf0| 28 29 2e 20 53 6f 6d 65 | 20 73 79 73 74 65 6d 73 |(). Some| systems|
|00002d00| 20 64 6f 6e 27 74 20 73 | 75 70 70 6f 72 74 20 74 | don't s|upport t|
|00002d10| 68 69 73 20 65 69 74 68 | 65 72 2e 20 49 74 0a 77 |his eith|er. It.w|
|00002d20| 6f 6e 27 74 20 64 6f 20 | 61 6e 79 20 64 61 6d 61 |on't do |any dama|
|00002d30| 67 65 20 74 6f 20 51 42 | 41 54 43 48 20 74 6f 20 |ge to QB|ATCH to |
|00002d40| 6c 65 61 76 65 20 69 74 | 20 6f 75 74 2c 20 69 74 |leave it| out, it|
|00002d50| 27 73 20 6f 6e 6c 79 20 | 74 68 65 72 65 20 66 6f |'s only |there fo|
|00002d60| 72 0a 74 69 64 69 6e 65 | 73 73 27 20 73 61 6b 65 |r.tidine|ss' sake|
|00002d70| 2e 20 20 54 68 65 20 71 | 75 65 75 65 20 66 69 6c |. The q|ueue fil|
|00002d80| 65 73 20 77 69 6c 6c 20 | 67 72 6f 77 20 61 73 20 |es will |grow as |
|00002d90| 6a 6f 62 73 20 61 72 65 | 20 61 64 64 65 64 2c 20 |jobs are| added, |
|00002da0| 61 6e 64 0a 73 68 72 69 | 6e 6b 20 61 73 20 74 68 |and.shri|nk as th|
|00002db0| 65 79 20 61 72 65 20 70 | 72 6f 63 65 73 73 65 64 |ey are p|rocessed|
|00002dc0| 20 6f 72 20 63 61 6e 63 | 65 6c 65 64 2e 20 20 54 | or canc|eled. T|
|00002dd0| 72 75 6e 63 61 74 65 20 | 69 73 20 75 73 65 64 20 |runcate |is used |
|00002de0| 74 6f 20 65 6e 73 75 72 | 65 0a 74 68 61 74 20 75 |to ensur|e.that u|
|00002df0| 6e 75 73 65 64 20 74 72 | 61 69 6c 69 6e 67 20 73 |nused tr|ailing s|
|00002e00| 70 61 63 65 20 69 6e 20 | 61 20 71 75 65 75 65 20 |pace in |a queue |
|00002e10| 66 69 6c 65 20 69 73 20 | 72 65 74 75 72 6e 65 64 |file is |returned|
|00002e20| 20 74 6f 20 74 68 65 20 | 73 79 73 74 65 6d 2e 0a | to the |system..|
|00002e30| 49 66 20 79 6f 75 20 64 | 6f 6e 27 74 20 68 61 76 |If you d|on't hav|
|00002e40| 65 20 69 74 2c 20 61 6e | 64 20 63 61 6e 27 74 20 |e it, an|d can't |
|00002e50| 65 6d 75 6c 61 74 65 20 | 69 74 2c 20 59 6f 75 27 |emulate |it, You'|
|00002e60| 6c 6c 20 68 61 76 65 20 | 74 6f 20 6c 69 76 65 20 |ll have |to live |
|00002e70| 77 69 74 68 0a 69 74 2e | 20 20 49 66 20 69 74 20 |with.it.| If it |
|00002e80| 62 65 63 6f 6d 65 73 20 | 61 20 70 72 6f 62 6c 65 |becomes |a proble|
|00002e90| 6d 2c 20 79 6f 75 27 6c | 6c 20 68 61 76 65 20 74 |m, you'l|l have t|
|00002ea0| 6f 20 70 65 72 69 6f 64 | 69 63 61 6c 6c 79 20 74 |o period|ically t|
|00002eb0| 69 64 79 20 75 70 0a 6d | 61 6e 75 61 6c 6c 79 2e |idy up.m|anually.|
|00002ec0| 0a 58 0a 58 45 6e 6a 6f | 79 20 2e 2e 2e 20 41 6c |.X.XEnjo|y ... Al|
|00002ed0| 61 6e 20 53 61 75 6e 64 | 65 72 73 20 41 75 67 75 |an Saund|ers Augu|
|00002ee0| 73 74 20 33 30 20 31 39 | 39 31 0a 58 0a 49 66 20 |st 30 19|91.X.If |
|00002ef0| 79 6f 75 20 64 6f 20 63 | 6f 6d 65 20 61 63 72 6f |you do c|ome acro|
|00002f00| 73 73 20 61 6e 79 20 70 | 72 6f 62 6c 65 6d 73 2c |ss any p|roblems,|
|00002f10| 20 77 69 74 68 20 73 65 | 63 75 72 69 74 79 20 6f | with se|curity o|
|00002f20| 72 20 61 6e 79 74 68 69 | 6e 67 20 65 6c 73 65 0a |r anythi|ng else.|
|00002f30| 72 65 6c 61 74 69 6e 67 | 20 74 6f 20 51 42 41 54 |relating| to QBAT|
|00002f40| 43 48 2c 20 70 6c 65 61 | 73 65 20 63 6f 6e 74 61 |CH, plea|se conta|
|00002f50| 63 74 20 6d 65 2c 20 61 | 73 20 49 20 68 6f 70 65 |ct me, a|s I hope|
|00002f60| 20 79 6f 75 20 77 69 6c | 6c 20 69 66 20 79 6f 75 | you wil|l if you|
|00002f70| 20 64 65 73 69 67 6e 0a | 61 6e 79 20 65 6e 68 61 | design.|any enha|
|00002f80| 6e 63 65 6d 65 6e 74 73 | 20 6f 72 20 62 75 67 20 |ncements| or bug |
|00002f90| 66 69 78 65 73 2e 0a 45 | 4e 44 5f 4f 46 5f 46 49 |fixes..E|ND_OF_FI|
|00002fa0| 4c 45 0a 69 66 20 74 65 | 73 74 20 34 38 38 39 20 |LE.if te|st 4889 |
|00002fb0| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 49 4e 53 |-ne `wc |-c <'INS|
|00002fc0| 54 41 4c 4c 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |TALL'`; |then. |
|00002fd0| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 49 | echo sh|ar: \"'I|
|00002fe0| 4e 53 54 41 4c 4c 27 5c | 22 20 75 6e 70 61 63 6b |NSTALL'\|" unpack|
|00002ff0| 65 64 20 77 69 74 68 20 | 77 72 6f 6e 67 20 73 69 |ed with |wrong si|
|00003000| 7a 65 21 0a 66 69 0a 23 | 20 65 6e 64 20 6f 66 20 |ze!.fi.#| end of |
|00003010| 27 49 4e 53 54 41 4c 4c | 27 0a 66 69 0a 69 66 20 |'INSTALL|'.fi.if |
|00003020| 74 65 73 74 20 2d 66 20 | 27 64 6f 63 2f 63 68 61 |test -f |'doc/cha|
|00003030| 70 2e 30 32 27 20 2d 61 | 20 22 24 7b 31 7d 22 20 |p.02' -a| "${1}" |
|00003040| 21 3d 20 22 2d 63 22 20 | 3b 20 74 68 65 6e 20 0a |!= "-c" |; then .|
|00003050| 20 20 65 63 68 6f 20 73 | 68 61 72 3a 20 57 69 6c | echo s|har: Wil|
|00003060| 6c 20 6e 6f 74 20 63 6c | 6f 62 62 65 72 20 65 78 |l not cl|obber ex|
|00003070| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 5c 22 27 64 |isting f|ile \"'d|
|00003080| 6f 63 2f 63 68 61 70 2e | 30 32 27 5c 22 0a 65 6c |oc/chap.|02'\".el|
|00003090| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|000030a0| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 64 6f 63 2f |tracting| \"'doc/|
|000030b0| 63 68 61 70 2e 30 32 27 | 5c 22 20 5c 28 34 37 37 |chap.02'|\" \(477|
|000030c0| 36 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 73 |6 charac|ters\).s|
|000030d0| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 64 6f |ed "s/^X|//" >'do|
|000030e0| 63 2f 63 68 61 70 2e 30 | 32 27 20 3c 3c 27 45 4e |c/chap.0|2' <<'EN|
|000030f0| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 20 20 20 20 |D_OF_FIL|E'.X |
|00003100| 20 20 20 20 20 20 20 20 | 20 51 42 41 54 43 48 20 | | QBATCH |
|00003110| 2e 2e 20 61 20 71 75 65 | 75 65 64 20 62 61 74 63 |.. a que|ued batc|
|00003120| 68 20 70 72 6f 63 65 73 | 73 69 6e 67 20 73 79 73 |h proces|sing sys|
|00003130| 74 65 6d 20 66 6f 72 20 | 55 4e 49 58 0a 58 0a 58 |tem for |UNIX.X.X|
|00003140| 0a 58 09 20 20 20 20 20 | 54 68 65 20 51 42 41 54 |.X. |The QBAT|
|00003150| 43 48 20 73 79 73 74 65 | 6d 20 61 6e 64 20 69 74 |CH syste|m and it|
|00003160| 73 20 72 65 6c 61 74 65 | 64 20 70 72 6f 67 72 61 |s relate|d progra|
|00003170| 6d 73 20 77 65 72 65 0a | 58 09 20 20 20 20 20 77 |ms were.|X. w|
|00003180| 72 69 74 74 65 6e 20 62 | 79 20 41 6c 61 6e 20 44 |ritten b|y Alan D|
|00003190| 2e 20 53 61 75 6e 64 65 | 72 73 20 61 6e 64 20 61 |. Saunde|rs and a|
|000031a0| 72 65 0a 58 09 20 20 20 | 20 20 43 6f 70 79 72 69 |re.X. | Copyri|
|000031b0| 67 68 74 20 28 63 29 20 | 56 69 74 61 20 53 65 72 |ght (c) |Vita Ser|
|000031c0| 76 69 63 65 73 20 4c 74 | 64 2e 20 31 39 39 30 20 |vices Lt|d. 1990 |
|000031d0| 61 6e 64 0a 58 09 20 20 | 20 20 20 43 6f 70 79 72 |and.X. | Copyr|
|000031e0| 69 67 68 74 20 28 63 29 | 20 56 69 74 61 20 46 69 |ight (c)| Vita Fi|
|000031f0| 62 72 65 73 20 4c 74 64 | 2e 20 31 39 39 31 0a 58 |bres Ltd|. 1991.X|
|00003200| 0a 58 32 2e 20 44 45 53 | 43 52 49 50 54 49 4f 4e |.X2. DES|CRIPTION|
|00003210| 2e 0a 58 09 0a 58 20 20 | 20 20 41 20 51 42 41 54 |..X..X | A QBAT|
|00003220| 43 48 20 71 75 65 75 65 | 20 69 73 20 61 20 66 69 |CH queue| is a fi|
|00003230| 6c 65 20 63 6f 6e 74 61 | 69 6e 69 6e 67 20 69 6e |le conta|ining in|
|00003240| 66 6f 72 6d 61 74 69 6f | 6e 20 72 65 6c 61 74 69 |formatio|n relati|
|00003250| 6e 67 20 74 6f 20 74 68 | 65 20 71 75 65 75 65 0a |ng to th|e queue.|
|00003260| 58 20 20 20 20 69 74 73 | 65 6c 66 2c 20 61 6e 64 |X its|elf, and|
|00003270| 20 74 6f 20 74 68 65 20 | 6a 6f 62 73 20 71 75 65 | to the |jobs que|
|00003280| 75 65 64 20 66 6f 72 20 | 70 72 6f 63 65 73 73 69 |ued for |processi|
|00003290| 6e 67 20 74 68 65 72 65 | 69 6e 2e 20 20 54 68 65 |ng there|in. The|
|000032a0| 20 6c 6f 63 61 74 69 6f | 6e 20 6f 66 20 74 68 65 | locatio|n of the|
|000032b0| 0a 58 20 20 20 20 71 75 | 65 75 65 20 69 73 20 64 |.X qu|eue is d|
|000032c0| 65 66 69 6e 65 64 20 62 | 79 20 74 68 65 20 69 6d |efined b|y the im|
|000032d0| 70 6c 65 6d 65 6e 74 6f | 72 2c 20 61 6e 64 20 63 |plemento|r, and c|
|000032e0| 6f 6d 70 69 6c 65 64 20 | 69 6e 74 6f 20 74 68 65 |ompiled |into the|
|000032f0| 20 51 42 41 54 43 48 20 | 70 72 6f 67 72 61 6d 73 | QBATCH |programs|
|00003300| 2e 0a 58 20 20 20 20 41 | 20 71 75 65 75 65 20 69 |..X A| queue i|
|00003310| 73 20 63 72 65 61 74 65 | 64 20 75 73 69 6e 67 20 |s create|d using |
|00003320| 74 68 65 20 71 63 20 70 | 72 6f 67 72 61 6d 2c 20 |the qc p|rogram, |
|00003330| 77 68 69 63 68 20 63 72 | 65 61 74 65 73 20 73 75 |which cr|eates su|
|00003340| 63 68 20 61 20 66 69 6c | 65 20 69 6e 20 74 68 65 |ch a fil|e in the|
|00003350| 0a 58 20 20 20 20 64 65 | 66 69 6e 65 64 20 6c 6f |.X de|fined lo|
|00003360| 63 61 74 69 6f 6e 2c 20 | 61 6e 64 20 75 6e 6c 65 |cation, |and unle|
|00003370| 73 73 20 6f 76 65 72 72 | 69 64 64 65 6e 20 62 79 |ss overr|idden by|
|00003380| 20 63 6f 6d 6d 61 6e 64 | 20 6c 69 6e 65 20 6f 70 | command| line op|
|00003390| 74 69 6f 6e 73 2c 20 73 | 74 6f 72 65 73 20 74 68 |tions, s|tores th|
|000033a0| 65 0a 58 20 20 20 20 64 | 65 66 61 75 6c 74 20 73 |e.X d|efault s|
|000033b0| 70 6f 6f 6c 69 6e 67 20 | 70 61 74 68 20 28 77 68 |pooling |path (wh|
|000033c0| 65 72 65 20 6a 6f 62 20 | 66 69 6c 65 73 20 61 72 |ere job |files ar|
|000033d0| 65 20 63 72 65 61 74 65 | 64 29 2c 20 6d 6f 6e 69 |e create|d), moni|
|000033e0| 74 6f 72 20 28 77 68 65 | 72 65 20 73 74 64 6f 75 |tor (whe|re stdou|
|000033f0| 74 0a 58 20 20 20 20 61 | 6e 64 20 73 74 64 65 72 |t.X a|nd stder|
|00003400| 72 20 61 72 65 20 72 65 | 64 69 72 65 63 74 65 64 |r are re|directed|
|00003410| 29 2c 20 61 6e 64 20 6e | 69 63 65 20 76 61 6c 75 |), and n|ice valu|
|00003420| 65 2e 20 20 41 6e 79 20 | 6f 66 20 74 68 65 73 65 |e. Any |of these|
|00003430| 20 70 61 72 61 6d 65 74 | 65 72 73 20 6d 61 79 20 | paramet|ers may |
|00003440| 62 65 0a 58 20 20 20 20 | 6f 76 65 72 72 69 64 64 |be.X |overridd|
|00003450| 65 6e 20 61 74 20 71 75 | 65 75 65 20 63 72 65 61 |en at qu|eue crea|
|00003460| 74 69 6f 6e 20 74 69 6d | 65 2c 20 6f 72 20 61 6c |tion tim|e, or al|
|00003470| 74 65 72 65 64 20 61 74 | 20 61 6e 79 20 74 69 6d |tered at| any tim|
|00003480| 65 2c 20 62 79 20 75 73 | 69 6e 67 20 74 68 65 0a |e, by us|ing the.|
|00003490| 58 20 20 20 20 73 61 6d | 65 20 71 63 20 70 72 6f |X sam|e qc pro|
|000034a0| 67 72 61 6d 20 28 71 76 | 2e 29 2e 20 20 54 68 65 |gram (qv|.). The|
|000034b0| 20 66 69 78 65 64 20 63 | 6f 6e 74 65 78 74 20 66 | fixed c|ontext f|
|000034c0| 6c 61 67 20 6d 61 79 20 | 61 6c 73 6f 20 62 65 20 |lag may |also be |
|000034d0| 73 65 74 20 6f 72 20 61 | 6c 74 65 72 65 64 0a 58 |set or a|ltered.X|
|000034e0| 20 20 20 20 69 6e 20 74 | 68 65 20 73 61 6d 65 20 | in t|he same |
|000034f0| 77 61 79 2e 0a 58 0a 58 | 20 20 20 20 54 68 65 20 |way..X.X| The |
|00003500| 51 42 41 54 43 48 20 71 | 75 65 75 65 20 70 72 6f |QBATCH q|ueue pro|
|00003510| 63 65 73 73 20 65 6e 67 | 69 6e 65 20 69 73 20 74 |cess eng|ine is t|
|00003520| 68 65 20 70 72 6f 67 72 | 61 6d 20 71 70 2e 20 20 |he progr|am qp. |
|00003530| 46 6f 72 20 61 6e 79 20 | 61 63 74 69 76 65 20 71 |For any |active q|
|00003540| 75 65 75 65 2c 0a 58 20 | 20 20 20 71 70 20 72 75 |ueue,.X | qp ru|
|00003550| 6e 73 20 69 6e 20 74 68 | 65 20 62 61 63 6b 67 72 |ns in th|e backgr|
|00003560| 6f 75 6e 64 20 77 61 69 | 74 69 6e 67 20 66 6f 72 |ound wai|ting for|
|00003570| 20 61 20 73 69 67 6e 61 | 6c 20 66 72 6f 6d 20 6f | a signa|l from o|
|00003580| 6e 65 20 6f 66 20 74 68 | 65 20 73 75 70 70 6f 72 |ne of th|e suppor|
|00003590| 74 0a 58 20 20 20 20 70 | 72 6f 67 72 61 6d 73 2e |t.X p|rograms.|
|000035a0| 20 20 57 68 65 6e 20 73 | 75 63 68 20 61 20 73 69 | When s|uch a si|
|000035b0| 67 6e 61 6c 20 69 73 20 | 72 65 63 65 69 76 65 64 |gnal is |received|
|000035c0| 2c 20 71 70 20 63 68 65 | 63 6b 73 20 74 68 65 20 |, qp che|cks the |
|000035d0| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 74 68 65 0a |contents| of the.|
|000035e0| 58 20 20 20 20 71 75 65 | 75 65 20 61 6e 64 20 61 |X que|ue and a|
|000035f0| 63 74 73 20 61 63 63 6f | 72 64 69 6e 67 6c 79 2e |cts acco|rdingly.|
|00003600| 20 20 49 66 20 61 20 6e | 65 77 20 6a 6f 62 20 68 | If a n|ew job h|
|00003610| 61 73 20 62 65 65 6e 20 | 73 75 62 6d 69 74 74 65 |as been |submitte|
|00003620| 64 20 74 6f 20 74 68 65 | 20 71 75 65 75 65 0a 58 |d to the| queue.X|
|00003630| 20 20 20 20 28 61 6e 64 | 20 6f 6e 65 20 69 73 20 | (and| one is |
|00003640| 6e 6f 74 20 63 75 72 72 | 65 6e 74 6c 79 20 72 75 |not curr|ently ru|
|00003650| 6e 6e 69 6e 67 29 2c 20 | 71 70 20 77 69 6c 6c 20 |nning), |qp will |
|00003660| 66 6f 72 6b 20 61 20 63 | 68 69 6c 64 20 70 72 6f |fork a c|hild pro|
|00003670| 63 65 73 73 20 74 6f 20 | 68 61 6e 64 6c 65 0a 58 |cess to |handle.X|
|00003680| 20 20 20 20 69 74 2c 20 | 74 68 65 6e 20 77 61 69 | it, |then wai|
|00003690| 74 20 66 6f 72 20 74 68 | 65 20 63 68 69 6c 64 20 |t for th|e child |
|000036a0| 74 6f 20 63 6f 6d 70 6c | 65 74 65 2e 20 20 54 68 |to compl|ete. Th|
|000036b0| 65 20 63 68 69 6c 64 20 | 77 69 6c 6c 20 73 65 74 |e child |will set|
|000036c0| 75 69 64 20 74 6f 20 74 | 68 65 0a 58 20 20 20 20 |uid to t|he.X |
|000036d0| 6f 77 6e 65 72 20 6f 66 | 20 74 68 65 20 6a 6f 62 |owner of| the job|
|000036e0| 2c 20 61 6e 64 20 73 65 | 74 67 69 64 20 74 6f 20 |, and se|tgid to |
|000036f0| 74 68 65 20 6f 77 6e 65 | 72 73 20 67 72 6f 75 70 |the owne|rs group|
|00003700| 2e 20 49 74 20 77 69 6c | 6c 20 74 68 65 6e 20 61 |. It wil|l then a|
|00003710| 74 74 61 63 68 0a 58 20 | 20 20 20 73 74 64 6f 75 |ttach.X | stdou|
|00003720| 74 20 61 6e 64 20 73 74 | 64 65 72 72 20 74 6f 20 |t and st|derr to |
|00003730| 74 68 65 20 6a 6f 62 27 | 73 20 6d 6f 6e 69 74 6f |the job'|s monito|
|00003740| 72 2c 20 72 65 6e 69 63 | 65 20 74 6f 20 74 68 65 |r, renic|e to the|
|00003750| 20 71 75 65 75 65 20 70 | 72 69 6f 72 69 74 79 2c | queue p|riority,|
|00003760| 20 61 6e 64 0a 58 20 20 | 20 20 65 78 65 63 75 74 | and.X | execut|
|00003770| 65 20 74 68 65 20 6a 6f | 62 2e 20 20 57 68 65 6e |e the jo|b. When|
|00003780| 20 74 68 65 20 6a 6f 62 | 20 68 61 73 20 66 69 6e | the job| has fin|
|00003790| 69 73 68 65 64 2c 20 71 | 70 20 69 73 20 77 6f 6b |ished, q|p is wok|
|000037a0| 65 6e 20 62 79 20 61 20 | 53 49 47 43 48 4c 44 2e |en by a |SIGCHLD.|
|000037b0| 20 71 70 0a 58 20 20 20 | 20 77 69 6c 6c 20 74 68 | qp.X | will th|
|000037c0| 65 6e 20 74 69 64 79 20 | 75 70 20 74 68 65 20 71 |en tidy |up the q|
|000037d0| 75 65 75 65 2c 20 72 65 | 6d 6f 76 65 20 74 68 65 |ueue, re|move the|
|000037e0| 20 6a 6f 62 20 66 69 6c | 65 2c 20 61 6e 64 20 69 | job fil|e, and i|
|000037f0| 66 20 72 65 71 75 69 72 | 65 64 2c 20 6e 6f 74 69 |f requir|ed, noti|
|00003800| 66 79 0a 58 20 20 20 20 | 74 68 65 20 6a 6f 62 20 |fy.X |the job |
|00003810| 6f 77 6e 65 72 2e 0a 58 | 0a 58 20 20 20 20 54 68 |owner..X|.X Th|
|00003820| 65 20 61 63 74 69 6f 6e | 20 6f 66 20 71 70 20 69 |e action| of qp i|
|00003830| 6e 20 72 65 73 70 6f 6e | 73 65 20 74 6f 20 61 20 |n respon|se to a |
|00003840| 73 69 67 6e 61 6c 20 69 | 73 20 67 6f 76 65 72 6e |signal i|s govern|
|00003850| 65 64 20 62 79 20 61 20 | 73 65 74 20 6f 66 20 66 |ed by a |set of f|
|00003860| 6c 61 67 73 20 69 6e 0a | 58 20 20 20 20 74 68 65 |lags in.|X the|
|00003870| 20 71 75 65 75 65 20 68 | 65 61 64 65 72 2e 20 20 | queue h|eader. |
|00003880| 54 68 65 73 65 20 27 61 | 63 74 69 6f 6e 27 20 66 |These 'a|ction' f|
|00003890| 6c 61 67 73 20 61 72 65 | 3a 0a 58 0a 58 20 20 20 |lags are|:.X.X |
|000038a0| 20 72 65 70 65 61 74 2e | 20 49 66 20 73 65 74 2c | repeat.| If set,|
|000038b0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 6c 79 20 72 | the cur|rently r|
|000038c0| 75 6e 6e 69 6e 67 20 6a | 6f 62 20 77 69 6c 6c 20 |unning j|ob will |
|000038d0| 6e 6f 74 20 62 65 20 72 | 65 6d 6f 76 65 64 20 66 |not be r|emoved f|
|000038e0| 72 6f 6d 20 74 68 65 0a | 58 09 20 20 20 20 71 75 |rom the.|X. qu|
|000038f0| 65 75 65 20 77 68 65 6e | 20 69 74 20 74 65 72 6d |eue when| it term|
|00003900| 69 6e 61 74 65 73 20 6f | 72 20 69 73 20 6b 69 6c |inates o|r is kil|
|00003910| 6c 65 64 2c 20 6e 6f 72 | 20 77 69 6c 6c 20 69 74 |led, nor| will it|
|00003920| 27 73 20 6a 6f 62 20 66 | 69 6c 65 20 62 65 0a 58 |'s job f|ile be.X|
|00003930| 09 20 20 20 20 72 65 6d | 6f 76 65 64 2e 20 20 49 |. rem|oved. I|
|00003940| 6e 73 74 65 61 64 2c 20 | 69 74 20 77 69 6c 6c 20 |nstead, |it will |
|00003950| 72 65 6d 61 69 6e 20 69 | 6e 20 74 68 65 20 71 75 |remain i|n the qu|
|00003960| 65 75 65 20 65 66 66 65 | 63 74 69 76 65 6c 79 20 |eue effe|ctively |
|00003970| 61 73 20 74 68 65 0a 58 | 09 20 20 20 20 6e 65 78 |as the.X|. nex|
|00003980| 74 20 6a 6f 62 20 74 6f | 20 62 65 20 70 72 6f 63 |t job to| be proc|
|00003990| 65 73 73 65 64 2e 0a 58 | 0a 58 20 20 20 20 6b 69 |essed..X|.X ki|
|000039a0| 6c 6c 2e 20 20 20 49 66 | 20 73 65 74 2c 20 71 70 |ll. If| set, qp|
|000039b0| 20 77 69 6c 6c 20 73 65 | 6e 64 20 61 20 53 49 47 | will se|nd a SIG|
|000039c0| 4b 49 4c 4c 20 74 6f 20 | 74 68 65 20 63 75 72 72 |KILL to |the curr|
|000039d0| 65 6e 74 6c 79 20 72 75 | 6e 6e 69 6e 67 20 6a 6f |ently ru|nning jo|
|000039e0| 62 2c 20 74 6f 0a 58 09 | 20 20 20 20 74 65 72 6d |b, to.X.| term|
|000039f0| 69 6e 61 74 65 20 69 74 | 20 69 6d 6d 65 64 69 61 |inate it| immedia|
|00003a00| 74 65 6c 79 2e 0a 58 0a | 58 20 20 20 20 68 61 6c |tely..X.|X hal|
|00003a10| 74 2e 20 20 20 54 68 69 | 73 20 66 6c 61 67 20 69 |t. Thi|s flag i|
|00003a20| 73 20 61 20 74 6f 67 67 | 6c 65 2e 20 20 49 66 20 |s a togg|le. If |
|00003a30| 69 74 20 68 61 73 20 63 | 68 61 6e 67 65 64 20 66 |it has c|hanged f|
|00003a40| 72 6f 6d 20 75 6e 73 65 | 74 20 74 6f 20 73 65 74 |rom unse|t to set|
|00003a50| 2c 20 71 70 0a 58 09 20 | 20 20 20 77 69 6c 6c 20 |, qp.X. | will |
|00003a60| 73 65 6e 64 20 61 20 53 | 49 47 48 41 4c 54 20 74 |send a S|IGHALT t|
|00003a70| 6f 20 74 68 65 20 63 75 | 72 72 65 6e 74 6c 79 20 |o the cu|rrently |
|00003a80| 72 75 6e 6e 69 6e 67 20 | 6a 6f 62 2c 20 74 6f 20 |running |job, to |
|00003a90| 73 75 73 70 65 6e 64 20 | 69 74 27 73 0a 58 09 20 |suspend |it's.X. |
|00003aa0| 20 20 20 70 72 6f 63 65 | 73 73 69 6e 67 2e 20 20 | proce|ssing. |
|00003ab0| 49 66 20 69 74 20 68 61 | 73 20 63 68 61 6e 67 65 |If it ha|s change|
|00003ac0| 64 20 66 72 6f 6d 20 73 | 65 74 20 74 6f 20 75 6e |d from s|et to un|
|00003ad0| 73 65 74 2c 20 71 70 20 | 77 69 6c 6c 20 73 65 6e |set, qp |will sen|
|00003ae0| 64 20 61 0a 58 09 20 20 | 20 20 53 49 47 43 4f 4e |d a.X. | SIGCON|
|00003af0| 54 20 74 6f 20 74 68 65 | 20 6a 6f 62 2c 20 74 6f |T to the| job, to|
|00003b00| 20 72 65 73 75 6d 65 20 | 69 74 27 73 20 70 72 6f | resume |it's pro|
|00003b10| 63 65 73 73 69 6e 67 2e | 20 20 49 66 20 69 74 20 |cessing.| If it |
|00003b20| 69 73 20 75 6e 63 68 61 | 6e 67 65 64 2c 0a 58 09 |is uncha|nged,.X.|
|00003b30| 20 20 20 20 6e 6f 20 61 | 63 74 69 6f 6e 20 77 69 | no a|ction wi|
|00003b40| 6c 6c 20 62 65 20 74 61 | 6b 65 6e 2e 0a 58 0a 58 |ll be ta|ken..X.X|
|00003b50| 20 20 20 20 73 74 6f 70 | 2e 20 20 20 49 66 20 73 | stop|. If s|
|00003b60| 65 74 2c 20 77 68 65 6e | 20 74 68 65 20 63 75 72 |et, when| the cur|
|00003b70| 72 65 6e 74 20 6a 6f 62 | 20 28 69 66 20 61 6e 79 |rent job| (if any|
|00003b80| 29 20 74 65 72 6d 69 6e | 61 74 65 73 20 6f 72 20 |) termin|ates or |
|00003b90| 69 73 20 6b 69 6c 6c 65 | 64 2c 20 71 70 0a 58 09 |is kille|d, qp.X.|
|00003ba0| 20 20 20 20 69 74 73 65 | 6c 66 20 77 69 6c 6c 20 | itse|lf will |
|00003bb0| 74 65 72 6d 69 6e 61 74 | 65 2e 20 20 49 66 20 6e |terminat|e. If n|
|00003bc0| 6f 20 6a 6f 62 20 69 73 | 20 72 75 6e 6e 69 6e 67 |o job is| running|
|00003bd0| 20 71 70 20 77 69 6c 6c | 20 74 65 72 6d 69 6e 61 | qp will| termina|
|00003be0| 74 65 0a 58 09 20 20 20 | 20 69 6d 6d 65 64 69 61 |te.X. | immedia|
|00003bf0| 74 65 6c 79 2e 0a 58 0a | 58 20 20 20 20 49 66 20 |tely..X.|X If |
|00003c00| 6e 6f 6e 65 20 6f 66 20 | 74 68 65 20 61 62 6f 76 |none of |the abov|
|00003c10| 65 20 66 6c 61 67 73 20 | 61 72 65 20 73 65 74 20 |e flags |are set |
|00003c20| 28 6f 72 20 69 6e 20 74 | 68 65 20 63 61 73 65 20 |(or in t|he case |
|00003c30| 6f 66 20 68 61 6c 74 2c | 20 74 6f 67 67 6c 65 64 |of halt,| toggled|
|00003c40| 29 2c 20 74 68 65 6e 0a | 58 20 20 20 20 71 70 20 |), then.|X qp |
|00003c50| 77 69 6c 6c 20 63 68 65 | 63 6b 20 74 68 65 20 63 |will che|ck the c|
|00003c60| 6f 75 6e 74 20 6f 66 20 | 6a 6f 62 73 20 69 6e 20 |ount of |jobs in |
|00003c70| 74 68 65 20 71 75 65 75 | 65 2e 20 20 49 66 20 66 |the queu|e. If f|
|00003c80| 75 72 74 68 65 72 20 6a | 6f 62 73 20 61 72 65 20 |urther j|obs are |
|00003c90| 70 72 65 73 65 6e 74 2c | 0a 58 20 20 20 20 74 68 |present,|.X th|
|00003ca0| 65 20 6e 65 78 74 20 77 | 69 6c 6c 20 62 65 20 70 |e next w|ill be p|
|00003cb0| 72 6f 63 65 73 73 65 64 | 2c 20 6f 74 68 65 72 77 |rocessed|, otherw|
|00003cc0| 69 73 65 20 71 70 20 77 | 69 6c 6c 20 77 61 69 74 |ise qp w|ill wait|
|00003cd0| 20 66 6f 72 20 61 6e 6f | 74 68 65 72 20 73 69 67 | for ano|ther sig|
|00003ce0| 6e 61 6c 2e 0a 58 0a 58 | 20 20 20 20 50 72 6f 67 |nal..X.X| Prog|
|00003cf0| 72 61 6d 73 20 77 68 69 | 63 68 20 61 6c 74 65 72 |rams whi|ch alter|
|00003d00| 20 74 68 65 20 73 65 74 | 74 69 6e 67 73 20 6f 66 | the set|tings of|
|00003d10| 20 74 68 65 73 65 20 66 | 6c 61 67 73 20 61 72 65 | these f|lags are|
|00003d20| 3a 0a 58 0a 58 20 20 20 | 20 71 73 09 20 20 20 20 |:.X.X | qs. |
|00003d30| 28 71 75 65 75 65 20 73 | 74 6f 70 29 20 09 53 65 |(queue s|top) .Se|
|00003d40| 74 73 20 74 68 65 20 73 | 74 6f 70 2c 20 61 6e 64 |ts the s|top, and|
|00003d50| 20 6f 70 74 69 6f 6e 61 | 6c 6c 79 20 74 68 65 20 | optiona|lly the |
|00003d60| 6b 69 6c 6c 20 61 6e 64 | 20 6f 72 20 0a 58 09 09 |kill and| or .X..|
|00003d70| 09 09 72 65 70 65 61 74 | 20 66 6c 61 67 73 2e 0a |..repeat| flags..|
|00003d80| 58 20 20 20 20 6a 6b 09 | 20 20 20 20 28 6a 6f 62 |X jk.| (job|
|00003d90| 20 6b 69 6c 6c 20 28 72 | 65 6d 6f 76 65 29 29 09 | kill (r|emove)).|
|00003da0| 4d 61 79 20 73 65 74 20 | 74 68 65 20 6b 69 6c 6c |May set |the kill|
|00003db0| 20 66 6c 61 67 2e 0a 58 | 20 20 20 20 6a 72 20 20 | flag..X| jr |
|00003dc0| 20 20 20 20 28 6a 6f 62 | 20 72 65 70 65 61 74 29 | (job| repeat)|
|00003dd0| 20 09 53 65 74 73 20 74 | 68 65 20 72 65 70 65 61 | .Sets t|he repea|
|00003de0| 74 2c 20 61 6e 64 20 6f | 70 74 69 6f 6e 61 6c 6c |t, and o|ptionall|
|00003df0| 79 20 74 68 65 20 6b 69 | 6c 6c 20 66 6c 61 67 2e |y the ki|ll flag.|
|00003e00| 0a 58 20 20 20 20 71 68 | 09 20 20 20 20 28 71 75 |.X qh|. (qu|
|00003e10| 65 75 65 20 68 61 6c 74 | 29 09 53 65 74 73 20 74 |eue halt|).Sets t|
|00003e20| 68 65 20 68 61 6c 74 20 | 66 6c 61 67 20 69 66 20 |he halt |flag if |
|00003e30| 6e 6f 74 20 61 6c 72 65 | 61 64 79 20 73 65 74 2e |not alre|ady set.|
|00003e40| 0a 58 20 20 20 20 71 67 | 09 20 20 20 20 28 71 75 |.X qg|. (qu|
|00003e50| 65 75 65 20 67 6f 29 20 | 09 09 43 6c 65 61 72 73 |eue go) |..Clears|
|00003e60| 20 74 68 65 20 68 61 6c | 74 20 66 6c 61 67 20 69 | the hal|t flag i|
|00003e70| 66 20 73 65 74 2e 0a 58 | 0a 58 20 20 20 20 54 68 |f set..X|.X Th|
|00003e80| 65 72 65 20 61 72 65 20 | 74 77 6f 20 66 75 72 74 |ere are |two furt|
|00003e90| 68 65 72 20 66 6c 61 67 | 73 20 73 74 6f 72 65 64 |her flag|s stored|
|00003ea0| 20 69 6e 20 74 68 65 20 | 71 75 65 75 65 20 68 65 | in the |queue he|
|00003eb0| 61 64 65 72 2c 20 62 6f | 74 68 20 75 73 65 64 20 |ader, bo|th used |
|00003ec0| 62 79 20 74 68 65 20 6a | 73 0a 58 20 20 20 20 70 |by the j|s.X p|
|00003ed0| 72 6f 67 72 61 6d 3a 0a | 58 0a 58 20 20 20 20 66 |rogram:.|X.X f|
|00003ee0| 69 78 65 64 2e 20 20 54 | 68 69 73 20 69 6e 64 69 |ixed. T|his indi|
|00003ef0| 63 61 74 65 73 20 61 20 | 66 69 78 65 64 20 63 6f |cates a |fixed co|
|00003f00| 6e 74 65 78 74 20 71 75 | 65 75 65 2e 20 20 54 68 |ntext qu|eue. Th|
|00003f10| 69 73 20 63 6f 6e 63 65 | 70 74 20 77 69 6c 6c 20 |is conce|pt will |
|00003f20| 62 65 0a 58 09 20 20 20 | 20 64 69 73 63 75 73 73 |be.X. | discuss|
|00003f30| 65 64 20 6c 61 74 65 72 | 2e 0a 58 0a 58 20 20 20 |ed later|..X.X |
|00003f40| 20 65 6e 61 62 6c 65 64 | 2e 54 68 69 73 20 66 6c | enabled|.This fl|
|00003f50| 61 67 20 64 65 74 65 72 | 6d 69 6e 65 73 20 77 68 |ag deter|mines wh|
|00003f60| 65 74 68 65 72 20 74 68 | 65 20 6a 6f 62 20 73 75 |ether th|e job su|
|00003f70| 62 6d 69 74 20 70 72 6f | 67 72 61 6d 20 77 69 6c |bmit pro|gram wil|
|00003f80| 6c 20 73 75 62 6d 69 74 | 20 6a 6f 62 73 0a 58 09 |l submit| jobs.X.|
|00003f90| 20 20 20 20 74 6f 20 74 | 68 65 20 71 75 65 75 65 | to t|he queue|
|00003fa0| 2e 20 20 49 66 20 75 6e | 73 65 74 2c 20 6a 73 20 |. If un|set, js |
|00003fb0| 77 69 6c 6c 20 6e 6f 74 | 20 73 75 62 6d 69 74 20 |will not| submit |
|00003fc0| 6a 6f 62 73 2e 0a 58 0a | 58 20 20 20 20 54 68 65 |jobs..X.|X The|
|00003fd0| 20 65 6e 61 62 6c 65 64 | 20 66 6c 61 67 20 69 73 | enabled| flag is|
|00003fe0| 20 73 65 74 20 62 79 20 | 71 65 2c 20 61 6e 64 20 | set by |qe, and |
|00003ff0| 75 6e 73 65 74 20 62 79 | 20 71 64 2e 0a 58 0a 58 |unset by| qd..X.X|
|00004000| 20 20 20 20 4a 6f 62 73 | 20 6d 61 79 20 62 65 20 | Jobs| may be |
|00004010| 73 75 62 6d 69 74 74 65 | 64 20 74 6f 20 61 6e 79 |submitte|d to any|
|00004020| 20 70 65 72 6d 69 74 74 | 65 64 20 71 75 65 75 65 | permitt|ed queue|
|00004030| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 70 72 6f | through| the pro|
|00004040| 67 72 61 6d 20 6a 73 2e | 20 20 42 79 0a 58 20 20 |gram js.| By.X |
|00004050| 20 20 64 65 66 61 75 6c | 74 2c 20 61 6e 79 20 75 | defaul|t, any u|
|00004060| 73 65 72 20 63 61 6e 20 | 73 75 62 6d 69 74 20 6a |ser can |submit j|
|00004070| 6f 62 73 20 74 6f 20 61 | 6e 79 20 71 75 65 75 65 |obs to a|ny queue|
|00004080| 2e 20 20 52 65 73 74 72 | 69 63 74 69 6f 6e 20 6f |. Restr|iction o|
|00004090| 66 20 61 63 63 65 73 73 | 20 69 73 0a 58 20 20 20 |f access| is.X |
|000040a0| 20 6f 6e 6c 79 20 61 76 | 61 69 6c 61 62 6c 65 20 | only av|ailable |
|000040b0| 69 6e 20 66 69 78 65 64 | 20 63 6f 6e 74 65 78 74 |in fixed| context|
|000040c0| 20 71 75 65 75 65 73 20 | 28 73 65 65 20 6c 61 74 | queues |(see lat|
|000040d0| 65 72 29 2e 20 20 41 20 | 71 75 65 75 65 20 77 68 |er). A |queue wh|
|000040e0| 69 63 68 20 68 61 73 20 | 69 74 27 73 0a 58 20 20 |ich has |it's.X |
|000040f0| 20 20 65 6e 61 62 6c 65 | 64 20 66 6c 61 67 20 75 | enable|d flag u|
|00004100| 6e 73 65 74 20 69 73 20 | 64 69 73 61 62 6c 65 64 |nset is |disabled|
|00004110| 2c 20 61 6e 64 20 6a 73 | 20 77 69 6c 6c 20 6e 6f |, and js| will no|
|00004120| 74 20 73 75 62 6d 69 74 | 20 61 20 6a 6f 62 20 74 |t submit| a job t|
|00004130| 6f 20 73 75 63 68 20 61 | 0a 58 20 20 20 20 71 75 |o such a|.X qu|
|00004140| 65 75 65 20 66 6f 72 20 | 61 6e 79 20 75 73 65 72 |eue for |any user|
|00004150| 2e 0a 58 0a 58 20 20 20 | 20 4a 6f 62 73 20 6d 61 |..X.X | Jobs ma|
|00004160| 79 20 62 65 20 72 65 6d | 6f 76 65 64 20 66 72 6f |y be rem|oved fro|
|00004170| 6d 20 61 20 71 75 65 75 | 65 20 62 79 20 74 68 65 |m a queu|e by the|
|00004180| 20 6a 6f 62 20 6f 77 6e | 65 72 20 6f 72 20 62 79 | job own|er or by|
|00004190| 20 74 68 65 20 73 75 70 | 65 72 20 75 73 65 72 0a | the sup|er user.|
|000041a0| 58 20 20 20 20 75 73 69 | 6e 67 20 74 68 65 20 6a |X usi|ng the j|
|000041b0| 6b 20 70 72 6f 67 72 61 | 6d 2e 20 49 66 20 70 72 |k progra|m. If pr|
|000041c0| 6f 63 65 73 73 69 6e 67 | 20 68 61 73 20 61 6c 72 |ocessing| has alr|
|000041d0| 65 61 64 79 20 73 74 61 | 72 74 65 64 2c 20 6a 6b |eady sta|rted, jk|
|000041e0| 20 77 69 6c 6c 20 72 65 | 66 75 73 65 20 74 6f 0a | will re|fuse to.|
|000041f0| 58 20 20 20 20 72 65 6d | 6f 76 65 20 74 68 65 20 |X rem|ove the |
|00004200| 6a 6f 62 20 75 6e 6c 65 | 73 73 20 74 68 65 20 2d |job unle|ss the -|
|00004210| 6b 20 28 6b 69 6c 6c 20 | 72 75 6e 6e 69 6e 67 20 |k (kill |running |
|00004220| 6a 6f 62 29 20 6f 70 74 | 69 6f 6e 20 69 73 20 73 |job) opt|ion is s|
|00004230| 70 65 63 69 66 69 65 64 | 2e 0a 58 0a 58 20 20 20 |pecified|..X.X |
|00004240| 20 54 68 65 20 70 6f 73 | 69 74 69 6f 6e 20 6f 66 | The pos|ition of|
|00004250| 20 6a 6f 62 73 20 69 6e | 20 61 20 71 75 65 75 65 | jobs in| a queue|
|00004260| 20 6d 61 79 20 62 65 20 | 61 6c 74 65 72 65 64 20 | may be |altered |
|00004270| 62 79 20 74 68 65 20 6f | 77 6e 65 72 20 6f 72 20 |by the o|wner or |
|00004280| 73 75 70 65 72 20 75 73 | 65 72 0a 58 20 20 20 20 |super us|er.X |
|00004290| 77 69 74 68 20 74 68 65 | 20 6a 6a 20 70 72 6f 67 |with the| jj prog|
|000042a0| 72 61 6d 2e 20 20 43 6f | 6e 74 72 6f 6c 73 20 70 |ram. Co|ntrols p|
|000042b0| 72 65 76 65 6e 74 20 61 | 6e 79 20 75 73 65 72 20 |revent a|ny user |
|000042c0| 66 72 6f 6d 20 6a 75 6d | 70 69 6e 67 20 74 68 65 |from jum|ping the|
|000042d0| 20 71 75 65 75 65 20 62 | 79 0a 58 20 20 20 20 70 | queue b|y.X p|
|000042e0| 65 72 6d 69 74 74 69 6e | 67 20 6f 6e 6c 79 20 74 |ermittin|g only t|
|000042f0| 68 65 20 73 75 70 65 72 | 20 75 73 65 72 20 74 6f |he super| user to|
|00004300| 20 6a 75 6d 70 20 6a 6f | 62 73 20 74 6f 20 70 6f | jump jo|bs to po|
|00004310| 73 69 74 69 6f 6e 73 20 | 68 65 6c 64 20 62 79 20 |sitions |held by |
|00004320| 6a 6f 62 73 20 6f 77 6e | 65 64 0a 58 20 20 20 20 |jobs own|ed.X |
|00004330| 62 79 20 6f 74 68 65 72 | 20 75 73 65 72 73 2e 0a |by other| users..|
|00004340| 58 0a 58 20 20 20 20 4c | 69 73 74 69 6e 67 20 74 |X.X L|isting t|
|00004350| 68 65 20 63 6f 6e 74 65 | 6e 74 73 20 6f 66 20 61 |he conte|nts of a|
|00004360| 20 6e 61 6d 65 64 20 71 | 75 65 75 65 20 69 73 20 | named q|ueue is |
|00004370| 61 63 68 69 65 76 65 64 | 20 77 69 74 68 20 74 68 |achieved| with th|
|00004380| 65 20 71 6c 20 70 72 6f | 67 72 61 6d 2c 20 61 6e |e ql pro|gram, an|
|00004390| 64 0a 58 20 20 20 20 61 | 20 6c 69 73 74 20 6f 66 |d.X a| list of|
|000043a0| 20 71 75 65 75 65 73 20 | 61 76 61 69 6c 61 62 6c | queues |availabl|
|000043b0| 65 20 74 6f 20 61 20 75 | 73 65 72 20 69 73 20 70 |e to a u|ser is p|
|000043c0| 72 6f 76 69 64 65 64 20 | 62 79 20 71 61 2e 20 20 |rovided |by qa. |
|000043d0| 56 61 72 69 6f 75 73 0a | 58 20 20 20 20 69 6e 66 |Various.|X inf|
|000043e0| 6f 72 6d 61 74 69 6f 6e | 20 69 73 20 70 72 6f 76 |ormation| is prov|
|000043f0| 69 64 65 64 20 62 79 20 | 71 66 20 61 6e 64 20 71 |ided by |qf and q|
|00004400| 74 2e 0a 45 4e 44 5f 4f | 46 5f 46 49 4c 45 0a 69 |t..END_O|F_FILE.i|
|00004410| 66 20 74 65 73 74 20 34 | 37 37 36 20 2d 6e 65 20 |f test 4|776 -ne |
|00004420| 60 77 63 20 2d 63 20 3c | 27 64 6f 63 2f 63 68 61 |`wc -c <|'doc/cha|
|00004430| 70 2e 30 32 27 60 3b 20 | 74 68 65 6e 0a 20 20 20 |p.02'`; |then. |
|00004440| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 5c 22 27 64 | echo sh|ar: \"'d|
|00004450| 6f 63 2f 63 68 61 70 2e | 30 32 27 5c 22 20 75 6e |oc/chap.|02'\" un|
|00004460| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|00004470| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|00004480| 20 6f 66 20 27 64 6f 63 | 2f 63 68 61 70 2e 30 32 | of 'doc|/chap.02|
|00004490| 27 0a 66 69 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |'.fi.if |test -f |
|000044a0| 27 64 6f 63 2f 63 68 61 | 70 2e 30 37 27 20 2d 61 |'doc/cha|p.07' -a|
|000044b0| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|000044c0| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|000044d0| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|000044e0| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|000044f0| 69 6c 65 20 5c 22 27 64 | 6f 63 2f 63 68 61 70 2e |ile \"'d|oc/chap.|
|00004500| 30 37 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |07'\".el|se.echo |
|00004510| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00004520| 20 5c 22 27 64 6f 63 2f | 63 68 61 70 2e 30 37 27 | \"'doc/|chap.07'|
|00004530| 5c 22 20 5c 28 34 38 32 | 35 20 63 68 61 72 61 63 |\" \(482|5 charac|
|00004540| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|00004550| 2f 2f 22 20 3e 27 64 6f | 63 2f 63 68 61 70 2e 30 |//" >'do|c/chap.0|
|00004560| 37 27 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 46 49 4c |7' <<'EN|D_OF_FIL|
|00004570| 45 27 0a 58 0a 58 20 20 | 20 20 20 20 20 20 20 20 |E'.X.X | |
|00004580| 20 20 20 51 42 41 54 43 | 48 20 2e 2e 20 61 20 71 | QBATC|H .. a q|
|00004590| 75 65 75 65 64 20 62 61 | 74 63 68 20 70 72 6f 63 |ueued ba|tch proc|
|000045a0| 65 73 73 69 6e 67 20 73 | 79 73 74 65 6d 20 66 6f |essing s|ystem fo|
|000045b0| 72 20 55 4e 49 58 0a 58 | 0a 58 0a 58 09 20 20 20 |r UNIX.X|.X.X. |
|000045c0| 20 20 54 68 65 20 51 42 | 41 54 43 48 20 73 79 73 | The QB|ATCH sys|
|000045d0| 74 65 6d 20 61 6e 64 20 | 69 74 73 20 72 65 6c 61 |tem and |its rela|
|000045e0| 74 65 64 20 70 72 6f 67 | 72 61 6d 73 20 77 65 72 |ted prog|rams wer|
|000045f0| 65 0a 58 09 20 20 20 20 | 20 77 72 69 74 74 65 6e |e.X. | written|
|00004600| 20 62 79 20 41 6c 61 6e | 20 44 2e 20 53 61 75 6e | by Alan| D. Saun|
|00004610| 64 65 72 73 20 61 6e 64 | 20 61 72 65 0a 58 09 20 |ders and| are.X. |
|00004620| 20 20 20 20 43 6f 70 79 | 72 69 67 68 74 20 28 63 | Copy|right (c|
|00004630| 29 20 56 69 74 61 20 53 | 65 72 76 69 63 65 73 20 |) Vita S|ervices |
|00004640| 4c 74 64 2e 20 31 39 39 | 30 20 61 6e 64 0a 58 09 |Ltd. 199|0 and.X.|
|00004650| 20 20 20 20 20 43 6f 70 | 79 72 69 67 68 74 20 28 | Cop|yright (|
|00004660| 63 29 20 56 69 74 61 20 | 46 69 62 72 65 73 20 4c |c) Vita |Fibres L|
|00004670| 74 64 2e 20 31 39 39 31 | 0a 58 0a 58 37 2e 20 54 |td. 1991|.X.X7. T|
|00004680| 55 4e 49 4e 47 2e 0a 58 | 0a 58 20 20 20 20 57 68 |UNING..X|.X Wh|
|00004690| 61 74 20 69 73 20 74 75 | 6e 69 6e 67 3f 20 49 20 |at is tu|ning? I |
|000046a0| 63 6f 6e 73 69 64 65 72 | 20 74 75 6e 69 6e 67 2c |consider| tuning,|
|000046b0| 20 6f 66 20 61 20 70 72 | 6f 67 72 61 6d 2c 20 61 | of a pr|ogram, a|
|000046c0| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2c 20 6f |n applic|ation, o|
|000046d0| 72 20 61 0a 58 20 20 20 | 20 73 79 73 74 65 6d 2c |r a.X | system,|
|000046e0| 20 74 6f 20 62 65 20 61 | 6e 20 65 78 65 72 63 69 | to be a|n exerci|
|000046f0| 73 65 20 63 6f 6e 73 69 | 73 74 69 6e 67 20 6f 66 |se consi|sting of|
|00004700| 20 6d 6f 64 69 66 79 69 | 6e 67 20 74 68 6f 73 65 | modifyi|ng those|
|00004710| 20 70 61 72 61 6d 65 74 | 65 72 73 20 69 6e 20 74 | paramet|ers in t|
|00004720| 68 65 0a 58 20 20 20 20 | 6f 70 65 72 61 74 69 6f |he.X |operatio|
|00004730| 6e 20 77 68 69 63 68 20 | 6d 61 79 20 62 65 20 6d |n which |may be m|
|00004740| 6f 64 69 66 69 65 64 2c | 20 77 69 74 68 20 74 68 |odified,| with th|
|00004750| 65 20 61 69 6d 20 6f 66 | 20 6f 70 74 69 6d 69 73 |e aim of| optimis|
|00004760| 69 6e 67 20 74 68 72 6f | 75 67 68 70 75 74 2e 0a |ing thro|ughput..|
|00004770| 58 0a 58 20 20 20 20 48 | 6f 77 20 64 6f 20 79 6f |X.X H|ow do yo|
|00004780| 75 20 64 65 66 69 6e 65 | 20 6f 70 74 69 6d 75 6d |u define| optimum|
|00004790| 20 74 68 72 6f 75 67 68 | 70 75 74 3f 20 20 4d 79 | through|put? My|
|000047a0| 20 64 65 66 69 6e 69 74 | 69 6f 6e 20 69 73 3a 0a | definit|ion is:.|
|000047b0| 58 20 20 20 20 22 6f 70 | 74 69 6d 75 6d 20 74 68 |X "op|timum th|
|000047c0| 72 6f 75 67 68 70 75 74 | 20 69 73 20 77 68 65 6e |roughput| is when|
|000047d0| 20 62 6f 74 68 20 74 68 | 65 20 6c 6f 61 64 20 6f | both th|e load o|
|000047e0| 6e 20 73 79 73 74 65 6d | 20 72 65 73 6f 75 72 63 |n system| resourc|
|000047f0| 65 73 2c 20 61 6e 64 20 | 74 68 65 0a 58 20 20 20 |es, and |the.X |
|00004800| 20 63 6f 6d 70 6c 61 69 | 6e 74 73 20 6f 66 20 75 | complai|nts of u|
|00004810| 73 65 72 73 20 61 72 65 | 20 61 74 20 61 20 6d 69 |sers are| at a mi|
|00004820| 6e 69 6d 75 6d 22 2e 0a | 58 0a 58 20 20 20 20 48 |nimum"..|X.X H|
|00004830| 6f 77 20 64 6f 20 77 65 | 20 61 63 68 69 65 76 65 |ow do we| achieve|
|00004840| 20 74 68 69 73 3f 0a 58 | 0a 58 20 20 20 20 61 2e | this?.X|.X a.|
|00004850| 20 42 79 20 72 65 73 74 | 72 61 69 6e 69 6e 67 20 | By rest|raining |
|00004860| 6c 61 72 67 65 20 72 65 | 73 6f 75 72 63 65 20 68 |large re|source h|
|00004870| 75 6e 67 72 79 20 6a 6f | 62 73 20 74 6f 20 61 20 |ungry jo|bs to a |
|00004880| 73 6d 61 6c 6c 20 6e 75 | 6d 62 65 72 20 6f 66 20 |small nu|mber of |
|00004890| 6c 6f 77 0a 58 20 20 20 | 20 20 20 20 70 72 69 6f |low.X | prio|
|000048a0| 72 69 74 79 20 71 75 65 | 75 65 73 2e 20 20 54 68 |rity que|ues. Th|
|000048b0| 69 73 20 66 72 65 65 73 | 20 75 70 20 72 65 73 6f |is frees| up reso|
|000048c0| 75 72 63 65 73 20 66 6f | 72 20 6f 74 68 65 72 20 |urces fo|r other |
|000048d0| 75 73 65 72 73 2c 20 61 | 6e 64 20 6f 74 68 65 72 |users, a|nd other|
|000048e0| 0a 58 20 20 20 20 20 20 | 20 6a 6f 62 73 2c 20 61 |.X | jobs, a|
|000048f0| 6e 64 20 72 65 64 75 63 | 65 73 20 74 68 65 20 63 |nd reduc|es the c|
|00004900| 6f 6d 70 6c 61 69 6e 65 | 72 73 20 74 6f 20 74 68 |omplaine|rs to th|
|00004910| 6f 73 65 20 74 68 75 73 | 20 72 65 73 74 72 69 63 |ose thus| restric|
|00004920| 74 65 64 2e 0a 58 0a 58 | 20 20 20 20 62 2e 20 42 |ted..X.X| b. B|
|00004930| 79 20 65 6e 73 75 72 69 | 6e 67 20 74 68 61 74 20 |y ensuri|ng that |
|00004940| 75 73 65 72 73 20 64 6f | 6e 27 74 20 6c 6f 73 65 |users do|n't lose|
|00004950| 20 6f 75 74 20 62 79 20 | 75 73 69 6e 67 20 74 68 | out by |using th|
|00004960| 65 20 71 75 65 75 65 64 | 20 62 61 74 63 68 20 73 |e queued| batch s|
|00004970| 79 73 74 65 6d 0a 58 20 | 20 20 20 20 20 20 69 6e |ystem.X | in|
|00004980| 73 74 65 61 64 20 6f 66 | 20 27 62 61 74 63 68 27 |stead of| 'batch'|
|00004990| 2c 20 6f 72 20 73 69 6d | 70 6c 79 20 64 75 6d 70 |, or sim|ply dump|
|000049a0| 69 6e 67 20 74 68 65 20 | 6a 6f 62 20 69 6e 74 6f |ing the |job into|
|000049b0| 20 74 68 65 20 62 61 63 | 6b 67 72 6f 75 6e 64 20 | the bac|kground |
|000049c0| 77 69 74 68 0a 58 20 20 | 20 20 20 20 20 27 26 27 |with.X | '&'|
|000049d0| 2e 20 54 68 69 73 20 6d | 65 61 6e 73 20 70 72 6f |. This m|eans pro|
|000049e0| 76 69 64 69 6e 67 20 61 | 20 72 65 61 73 6f 6e 61 |viding a| reasona|
|000049f0| 62 6c 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 6e 6f |ble numb|er of no|
|00004a00| 72 6d 61 6c 20 61 6e 64 | 20 68 69 67 68 0a 58 20 |rmal and| high.X |
|00004a10| 20 20 20 20 20 20 70 72 | 69 6f 72 69 74 79 20 71 | pr|iority q|
|00004a20| 75 65 75 65 73 2c 20 61 | 6e 64 20 65 6e 73 75 72 |ueues, a|nd ensur|
|00004a30| 69 6e 67 20 74 68 61 74 | 20 74 68 65 20 6a 6f 62 |ing that| the job|
|00004a40| 73 20 67 6f 20 69 6e 74 | 6f 20 74 68 65 20 63 6f |s go int|o the co|
|00004a50| 72 72 65 63 74 20 71 75 | 65 75 65 73 2e 0a 58 20 |rrect qu|eues..X |
|00004a60| 20 20 20 20 20 20 54 68 | 69 73 20 6d 61 79 20 6d | Th|is may m|
|00004a70| 65 61 6e 20 63 72 65 61 | 74 69 6e 67 20 73 75 62 |ean crea|ting sub|
|00004a80| 6d 69 73 73 69 6f 6e 20 | 73 63 72 69 70 74 73 20 |mission |scripts |
|00004a90| 66 6f 72 20 73 6f 6d 65 | 20 6a 6f 62 73 2c 20 69 |for some| jobs, i|
|00004aa0| 6e 20 6f 74 68 65 72 20 | 63 61 73 65 73 0a 58 20 |n other |cases.X |
|00004ab0| 20 20 20 20 20 20 69 74 | 20 6d 61 79 20 62 65 20 | it| may be |
|00004ac0| 6a 75 73 74 20 28 3f 3f | 20 26 2d 29 29 20 61 20 |just (??| &-)) a |
|00004ad0| 63 61 73 65 20 6f 66 20 | 75 73 65 72 20 74 72 61 |case of |user tra|
|00004ae0| 69 6e 69 6e 67 2e 0a 58 | 20 20 20 20 20 20 20 49 |ining..X| I|
|00004af0| 66 20 79 6f 75 20 68 61 | 76 65 20 61 20 73 69 74 |f you ha|ve a sit|
|00004b00| 75 61 74 69 6f 6e 20 77 | 68 65 72 65 20 61 20 6c |uation w|here a l|
|00004b10| 61 72 67 65 20 75 73 65 | 72 20 62 61 73 65 20 63 |arge use|r base c|
|00004b20| 61 6e 20 62 65 20 64 65 | 66 69 6e 65 64 20 61 73 |an be de|fined as|
|00004b30| 20 61 0a 58 20 20 20 20 | 20 20 20 73 65 72 69 65 | a.X | serie|
|00004b40| 73 20 6f 66 20 64 69 73 | 63 72 65 74 65 20 27 74 |s of dis|crete 't|
|00004b50| 65 61 6d 73 27 20 6f 72 | 20 77 6f 72 6b 67 72 6f |eams' or| workgro|
|00004b60| 75 70 73 2c 20 63 6f 6e | 73 69 64 65 72 20 61 73 |ups, con|sider as|
|00004b70| 73 69 67 6e 69 6e 67 20 | 71 75 65 75 65 73 20 6f |signing |queues o|
|00004b80| 6e 0a 58 20 20 20 20 20 | 20 20 61 20 77 6f 72 6b |n.X | a work|
|00004b90| 67 72 6f 75 70 20 62 61 | 73 69 73 2e 20 20 43 6f |group ba|sis. Co|
|00004ba0| 6e 74 65 6e 74 69 6f 6e | 20 62 65 74 77 65 65 6e |ntention| between|
|00004bb0| 20 75 73 65 72 73 20 6f | 76 65 72 20 6a 6f 62 20 | users o|ver job |
|00004bc0| 70 72 69 6f 72 69 74 79 | 20 69 73 0a 58 20 20 20 |priority| is.X |
|00004bd0| 20 20 20 20 65 61 73 69 | 65 72 20 74 6f 20 72 65 | easi|er to re|
|00004be0| 73 6f 6c 76 65 20 75 6e | 64 65 72 20 74 68 65 73 |solve un|der thes|
|00004bf0| 65 20 63 6f 6e 64 69 74 | 69 6f 6e 73 2c 20 61 6e |e condit|ions, an|
|00004c00| 64 20 63 6f 6d 70 6c 61 | 69 6e 74 73 20 77 69 6c |d compla|ints wil|
|00004c10| 6c 20 62 65 20 66 65 77 | 65 72 2e 0a 58 0a 58 20 |l be few|er..X.X |
|00004c20| 20 20 20 63 2e 20 42 79 | 20 6d 6f 6e 69 74 6f 72 | c. By| monitor|
|00004c30| 69 6e 67 20 74 68 65 20 | 70 72 6f 66 69 6c 65 20 |ing the |profile |
|00004c40| 74 69 6d 69 6e 67 73 20 | 6f 66 20 6a 6f 62 73 20 |timings |of jobs |
|00004c50| 74 68 72 6f 75 67 68 20 | 65 61 63 68 20 71 75 65 |through |each que|
|00004c60| 75 65 2e 20 54 68 65 20 | 74 69 6d 65 73 0a 58 20 |ue. The |times.X |
|00004c70| 20 20 20 20 20 20 74 61 | 6b 65 6e 20 20 61 72 65 | ta|ken are|
|00004c80| 20 72 65 70 6f 72 74 65 | 64 20 69 6e 20 74 68 65 | reporte|d in the|
|00004c90| 20 6d 6f 6e 69 74 6f 72 | 20 66 6f 72 20 65 61 63 | monitor| for eac|
|00004ca0| 68 20 6a 6f 62 20 70 72 | 6f 63 65 73 73 65 64 2e |h job pr|ocessed.|
|00004cb0| 20 20 54 68 65 79 20 61 | 72 65 0a 58 20 20 20 20 | They a|re.X |
|00004cc0| 20 20 20 61 6c 73 6f 20 | 61 63 63 75 6d 75 6c 61 | also |accumula|
|00004cd0| 74 65 64 20 69 6e 20 74 | 68 65 20 71 75 65 75 65 |ted in t|he queue|
|00004ce0| 20 68 65 61 64 65 72 2e | 20 20 41 20 73 75 6d 6d | header.| A summ|
|00004cf0| 61 72 79 20 6f 66 20 74 | 69 6d 69 6e 67 73 20 6d |ary of t|imings m|
|00004d00| 61 79 20 62 65 0a 58 20 | 20 20 20 20 20 20 64 69 |ay be.X | di|
|00004d10| 73 70 6c 61 79 65 64 20 | 61 74 20 61 6e 79 20 74 |splayed |at any t|
|00004d20| 69 6d 65 20 77 69 74 68 | 3a 0a 58 20 20 20 20 20 |ime with|:.X |
|00004d30| 20 20 71 66 20 2d 73 20 | 3c 71 75 65 75 65 6e 61 | qf -s |<queuena|
|00004d40| 6d 65 3e 0a 58 20 20 20 | 20 20 20 20 41 20 74 79 |me>.X | A ty|
|00004d50| 70 69 63 61 6c 20 64 69 | 73 70 6c 61 79 20 77 6f |pical di|splay wo|
|00004d60| 75 6c 64 20 62 65 3a 0a | 58 0a 58 0a 58 20 20 20 |uld be:.|X.X.X |
|00004d70| 20 20 51 75 65 75 65 20 | 73 74 61 72 74 65 64 20 | Queue |started |
|00004d80| 20 20 20 20 3a 20 57 65 | 64 20 4f 63 74 20 20 32 | : We|d Oct 2|
|00004d90| 20 31 35 3a 30 32 3a 33 | 37 20 31 39 39 31 0a 58 | 15:02:3|7 1991.X|
|00004da0| 0a 58 20 20 20 20 20 41 | 76 61 69 6c 61 62 6c 65 |.X A|vailable|
|00004db0| 20 66 6f 72 20 20 20 20 | 20 3a 20 35 20 4d 69 6e | for | : 5 Min|
|00004dc0| 20 31 34 2e 30 30 20 53 | 65 63 0a 58 20 20 20 20 | 14.00 S|ec.X |
|00004dd0| 20 4e 6f 2e 20 4a 6f 62 | 73 20 50 72 6f 63 65 73 | No. Job|s Proces|
|00004de0| 73 65 64 3a 20 31 30 0a | 58 0a 58 20 20 20 20 54 |sed: 10.|X.X T|
|00004df0| 69 6d 65 73 3a 09 09 20 | 20 20 20 41 63 74 75 61 |imes:.. | Actua|
|00004e00| 6c 09 09 09 41 76 2e 20 | 50 65 72 20 4a 6f 62 0a |l...Av. |Per Job.|
|00004e10| 58 0a 58 20 20 20 20 51 | 75 65 75 65 64 09 09 20 |X.X Q|ueued.. |
|00004e20| 20 20 20 20 35 3a 34 35 | 2e 30 30 20 53 65 63 09 | 5:45|.00 Sec.|
|00004e30| 09 20 20 20 20 20 20 20 | 33 34 2e 35 30 20 53 65 |. |34.50 Se|
|00004e40| 63 0a 58 20 20 20 20 52 | 65 61 6c 09 09 20 20 20 |c.X R|eal.. |
|00004e50| 20 20 31 3a 34 33 2e 36 | 38 20 53 65 63 09 09 20 | 1:43.6|8 Sec.. |
|00004e60| 20 20 20 20 20 20 31 30 | 2e 33 36 20 53 65 63 0a | 10|.36 Sec.|
|00004e70| 58 20 20 20 20 55 73 65 | 72 09 09 20 20 20 20 20 |X Use|r.. |
|00004e80| 20 20 20 30 2e 36 30 20 | 53 65 63 09 09 20 20 20 | 0.60 |Sec.. |
|00004e90| 20 20 20 20 20 30 2e 30 | 36 20 53 65 63 0a 58 20 | 0.0|6 Sec.X |
|00004ea0| 20 20 20 53 79 73 74 65 | 6d 09 09 20 20 20 20 20 | Syste|m.. |
|00004eb0| 20 20 20 32 2e 36 39 20 | 53 65 63 09 09 20 20 20 | 2.69 |Sec.. |
|00004ec0| 20 20 20 20 20 30 2e 32 | 36 20 53 65 63 0a 58 0a | 0.2|6 Sec.X.|
|00004ed0| 58 20 20 20 20 55 74 69 | 6c 69 73 61 74 69 6f 6e |X Uti|lisation|
|00004ee0| 20 28 72 65 61 6c 2f 61 | 76 61 69 6c 61 62 6c 65 | (real/a|vailable|
|00004ef0| 29 20 33 33 2e 30 31 25 | 0a 58 0a 58 20 20 20 20 |) 33.01%|.X.X |
|00004f00| 43 75 72 72 65 6e 74 20 | 6a 6f 62 20 6e 6f 74 20 |Current |job not |
|00004f10| 61 63 63 6f 75 6e 74 65 | 64 20 66 6f 72 20 61 62 |accounte|d for ab|
|00004f20| 6f 76 65 2c 20 72 75 6e | 6e 69 6e 67 20 66 6f 72 |ove, run|ning for|
|00004f30| 20 3a 20 37 2e 30 30 20 | 53 65 63 0a 58 0a 58 20 | : 7.00 |Sec.X.X |
|00004f40| 20 20 20 28 6e 6f 74 20 | 61 63 74 75 61 6c 6c 79 | (not |actually|
|00004f50| 20 74 79 70 69 63 61 6c | 2c 20 74 68 69 73 20 69 | typical|, this i|
|00004f60| 73 20 66 72 6f 6d 20 6d | 79 20 64 65 76 65 6c 6f |s from m|y develo|
|00004f70| 70 6d 65 6e 74 20 73 79 | 73 74 65 6d 2c 20 6e 6f |pment sy|stem, no|
|00004f80| 74 20 61 20 6c 69 76 65 | 0a 58 20 20 20 20 73 79 |t a live|.X sy|
|00004f90| 73 74 65 6d 29 2e 0a 58 | 0a 58 20 20 20 20 54 68 |stem)..X|.X Th|
|00004fa0| 65 20 66 69 67 75 72 65 | 73 20 61 72 65 3a 0a 58 |e figure|s are:.X|
|00004fb0| 20 20 20 20 51 75 65 75 | 65 64 3a 09 54 68 65 20 | Queu|ed:.The |
|00004fc0| 74 69 6d 65 20 61 20 6a | 6f 62 20 77 61 73 20 6f |time a j|ob was o|
|00004fd0| 6e 20 74 68 65 20 71 75 | 65 75 65 20 62 65 66 6f |n the qu|eue befo|
|00004fe0| 72 65 20 73 74 61 72 74 | 69 6e 67 20 74 6f 20 70 |re start|ing to p|
|00004ff0| 72 6f 63 65 73 73 2e 0a | 58 20 20 20 20 52 65 61 |rocess..|X Rea|
|00005000| 6c 3a 09 54 68 65 20 61 | 63 74 75 61 6c 20 28 77 |l:.The a|ctual (w|
|00005010| 61 6c 6c 20 63 6c 6f 63 | 6b 29 20 74 69 6d 65 20 |all cloc|k) time |
|00005020| 66 72 6f 6d 20 73 74 61 | 72 74 20 74 6f 20 65 6e |from sta|rt to en|
|00005030| 64 20 6f 66 20 70 72 6f | 63 65 73 73 69 6e 67 2e |d of pro|cessing.|
|00005040| 0a 58 20 20 20 20 55 73 | 65 72 3a 09 54 68 65 20 |.X Us|er:.The |
|00005050| 75 73 65 72 20 63 70 75 | 20 74 69 6d 65 20 74 61 |user cpu| time ta|
|00005060| 6b 65 6e 20 62 79 20 74 | 68 65 20 6a 6f 62 2e 0a |ken by t|he job..|
|00005070| 58 20 20 20 20 53 79 73 | 74 65 6d 3a 09 54 68 65 |X Sys|tem:.The|
|00005080| 20 73 79 73 74 65 6d 20 | 63 70 75 20 74 69 6d 65 | system |cpu time|
|00005090| 20 74 61 6b 65 6e 20 62 | 79 20 74 68 65 20 6a 6f | taken b|y the jo|
|000050a0| 62 2e 0a 58 0a 58 20 20 | 20 20 49 64 65 61 6c 6c |b..X.X | Ideall|
|000050b0| 79 2c 20 69 66 20 61 20 | 73 79 73 74 65 6d 20 69 |y, if a |system i|
|000050c0| 73 20 63 6f 72 72 65 63 | 74 6c 79 20 74 75 6e 65 |s correc|tly tune|
|000050d0| 64 2c 20 74 68 65 20 61 | 76 65 72 61 67 65 20 74 |d, the a|verage t|
|000050e0| 69 6d 69 6e 67 73 20 6f | 66 20 61 20 67 69 76 65 |imings o|f a give|
|000050f0| 6e 0a 58 20 20 20 20 71 | 75 65 75 65 20 73 68 6f |n.X q|ueue sho|
|00005100| 75 6c 64 20 6f 6e 6c 79 | 20 76 61 72 79 20 77 69 |uld only| vary wi|
|00005110| 74 68 69 6e 20 6c 69 6d | 69 74 73 2e 20 20 41 6e |thin lim|its. An|
|00005120| 79 20 77 69 64 65 72 20 | 76 61 72 69 61 6e 63 65 |y wider |variance|
|00005130| 20 69 73 20 61 20 72 65 | 61 73 6f 6e 20 74 6f 0a | is a re|ason to.|
|00005140| 58 20 20 20 20 6c 6f 6f | 6b 20 61 74 20 74 68 65 |X loo|k at the|
|00005150| 20 69 6e 64 69 76 69 64 | 75 61 6c 20 74 69 6d 65 | individ|ual time|
|00005160| 73 20 69 6e 20 74 68 65 | 20 6d 6f 6e 69 74 6f 72 |s in the| monitor|
|00005170| 73 2e 0a 58 0a 58 20 20 | 20 20 43 6f 6e 73 69 73 |s..X.X | Consis|
|00005180| 74 65 6e 74 6c 79 20 6c | 6f 77 20 75 74 69 6c 69 |tently l|ow utili|
|00005190| 73 61 74 69 6f 6e 20 77 | 6f 75 6c 64 20 70 72 6f |sation w|ould pro|
|000051a0| 62 61 62 6c 79 20 69 6e | 64 69 63 61 74 65 20 74 |bably in|dicate t|
|000051b0| 68 61 74 20 6a 6f 62 73 | 0a 58 20 20 20 20 73 75 |hat jobs|.X su|
|000051c0| 62 6d 69 74 74 65 64 20 | 74 6f 20 74 68 69 73 20 |bmitted |to this |
|000051d0| 71 75 65 75 65 20 63 6f | 75 6c 64 20 70 72 6f 62 |queue co|uld prob|
|000051e0| 61 62 6c 79 20 73 68 61 | 72 65 20 72 65 73 6f 75 |ably sha|re resou|
|000051f0| 72 63 65 73 20 62 65 74 | 74 65 72 20 62 79 20 62 |rces bet|ter by b|
|00005200| 65 69 6e 67 0a 58 20 20 | 20 20 73 75 62 6d 69 74 |eing.X | submit|
|00005210| 74 65 64 20 74 6f 20 61 | 6e 6f 74 68 65 72 20 6c |ted to a|nother l|
|00005220| 6f 77 20 75 74 69 6c 69 | 73 61 74 69 6f 6e 20 71 |ow utili|sation q|
|00005230| 75 65 75 65 2c 20 61 6e | 64 20 72 65 6d 6f 76 69 |ueue, an|d removi|
|00005240| 6e 67 20 74 68 69 73 20 | 6f 6e 65 2e 0a 58 20 20 |ng this |one..X |
|00005250| 20 20 43 6f 6e 76 65 72 | 73 65 6c 79 2c 20 63 6f | Conver|sely, co|
|00005260| 6e 73 69 73 74 65 6e 74 | 6c 79 20 68 69 67 68 20 |nsistent|ly high |
|00005270| 75 74 69 6c 69 73 61 74 | 69 6f 6e 20 63 6f 75 6c |utilisat|ion coul|
|00005280| 64 20 6d 65 61 6e 20 74 | 68 61 74 20 74 6f 6f 20 |d mean t|hat too |
|00005290| 6d 61 6e 79 20 6a 6f 62 | 73 0a 58 20 20 20 20 61 |many job|s.X a|
|000052a0| 72 65 20 62 65 69 6e 67 | 20 73 75 62 6d 69 74 74 |re being| submitt|
|000052b0| 65 64 20 74 6f 20 74 68 | 69 73 20 71 75 65 75 65 |ed to th|is queue|
|000052c0| 2c 20 61 6e 64 20 74 68 | 65 20 6c 6f 61 64 20 6d |, and th|e load m|
|000052d0| 69 67 68 74 20 62 65 20 | 62 65 74 74 65 72 20 73 |ight be |better s|
|000052e0| 70 6c 69 74 2e 0a 58 0a | 58 20 20 20 20 41 73 20 |plit..X.|X As |
|000052f0| 64 69 73 63 75 73 73 65 | 64 20 69 6e 20 74 68 65 |discusse|d in the|
|00005300| 20 63 68 61 70 74 65 72 | 20 6f 6e 20 63 6f 6e 66 | chapter| on conf|
|00005310| 69 67 75 72 61 74 69 6f | 6e 2c 20 71 75 65 75 65 |iguratio|n, queue|
|00005320| 73 20 73 68 6f 75 6c 64 | 20 62 65 20 63 6f 6e 66 |s should| be conf|
|00005330| 69 67 75 72 65 64 0a 58 | 20 20 20 20 69 6e 69 74 |igured.X| init|
|00005340| 69 61 6c 6c 79 20 6f 6e | 20 74 68 65 20 62 61 73 |ially on| the bas|
|00005350| 69 73 20 6f 66 20 72 65 | 73 6f 75 72 63 65 20 72 |is of re|source r|
|00005360| 65 71 75 69 72 65 6d 65 | 6e 74 2e 20 20 4a 6f 62 |equireme|nt. Job|
|00005370| 73 20 72 65 71 75 69 72 | 69 6e 67 20 74 68 65 20 |s requir|ing the |
|00005380| 73 61 6d 65 0a 58 20 20 | 20 20 28 70 6f 74 65 6e |same.X | (poten|
|00005390| 74 69 61 6c 6c 79 20 6c | 69 6d 69 74 65 64 29 20 |tially l|imited) |
|000053a0| 72 65 73 6f 75 72 63 65 | 73 20 73 68 6f 75 6c 64 |resource|s should|
|000053b0| 20 62 65 20 73 75 62 6d | 69 74 74 65 64 20 74 6f | be subm|itted to|
|000053c0| 20 74 68 65 20 73 61 6d | 65 20 71 75 65 75 65 2c | the sam|e queue,|
|000053d0| 20 73 6f 0a 58 20 20 20 | 20 74 68 61 74 20 74 68 | so.X | that th|
|000053e0| 65 72 65 20 61 72 65 20 | 6e 6f 20 61 64 64 69 74 |ere are |no addit|
|000053f0| 69 6f 6e 61 6c 20 73 63 | 68 65 64 75 6c 69 6e 67 |ional sc|heduling|
|00005400| 20 6f 76 65 72 68 65 61 | 64 73 20 69 6d 70 6f 73 | overhea|ds impos|
|00005410| 65 64 20 6f 6e 20 74 68 | 65 20 6b 65 72 6e 65 6c |ed on th|e kernel|
|00005420| 20 66 6f 72 0a 58 20 20 | 20 20 74 68 65 73 65 20 | for.X | these |
|00005430| 6a 6f 62 73 2e 20 20 54 | 68 69 73 20 6d 61 79 20 |jobs. T|his may |
|00005440| 77 65 6c 6c 20 62 65 20 | 61 20 63 61 73 65 20 6f |well be |a case o|
|00005450| 66 20 74 72 69 61 6c 20 | 61 6e 64 20 65 72 72 6f |f trial |and erro|
|00005460| 72 2c 20 69 74 20 6d 61 | 79 20 6e 6f 74 20 62 65 |r, it ma|y not be|
|00005470| 0a 58 20 20 20 20 70 6f | 73 73 69 62 6c 65 20 74 |.X po|ssible t|
|00005480| 6f 20 70 72 65 64 69 63 | 74 20 77 68 61 74 20 72 |o predic|t what r|
|00005490| 65 73 6f 75 72 63 65 73 | 20 61 72 65 20 64 65 6d |esources| are dem|
|000054a0| 61 6e 64 65 64 20 62 79 | 20 61 20 74 65 73 74 20 |anded by| a test |
|000054b0| 6a 6f 62 20 73 75 62 6d | 69 74 74 65 64 20 62 79 |job subm|itted by|
|000054c0| 0a 58 20 20 20 20 61 20 | 70 72 6f 67 72 61 6d 6d |.X a |programm|
|000054d0| 65 72 20 6f 6e 20 61 20 | 6e 65 77 20 70 72 6f 6a |er on a |new proj|
|000054e0| 65 63 74 2e 20 20 54 68 | 69 73 20 72 65 61 6c 6c |ect. Th|is reall|
|000054f0| 79 20 69 6e 64 69 63 61 | 74 65 73 20 74 68 61 74 |y indica|tes that|
|00005500| 20 51 42 41 54 43 48 20 | 75 73 65 2c 20 6f 6e 63 | QBATCH |use, onc|
|00005510| 65 0a 58 20 20 20 20 69 | 6d 70 6c 65 6d 65 6e 74 |e.X i|mplement|
|00005520| 65 64 20 69 6e 20 61 20 | 73 79 73 74 65 6d 2c 20 |ed in a |system, |
|00005530| 73 68 6f 75 6c 64 20 62 | 65 20 64 65 73 69 67 6e |should b|e design|
|00005540| 65 64 20 69 6e 74 6f 20 | 6e 65 77 20 73 79 73 74 |ed into |new syst|
|00005550| 65 6d 73 20 62 79 20 74 | 68 65 0a 58 20 20 20 20 |ems by t|he.X |
|00005560| 70 72 6f 67 72 61 6d 6d | 65 72 73 20 74 68 65 6d |programm|ers them|
|00005570| 73 65 6c 76 65 73 2c 20 | 77 68 6f 20 77 6f 75 6c |selves, |who woul|
|00005580| 64 20 74 68 65 6e 20 28 | 68 6f 70 65 66 75 6c 6c |d then (|hopefull|
|00005590| 79 29 2c 20 64 65 73 69 | 67 6e 20 74 68 65 20 70 |y), desi|gn the p|
|000055a0| 72 6f 67 72 61 6d 73 2c | 0a 58 20 20 20 20 61 6e |rograms,|.X an|
|000055b0| 64 20 73 75 70 70 6f 72 | 74 69 6e 67 20 73 63 72 |d suppor|ting scr|
|000055c0| 69 70 74 73 20 77 69 74 | 68 20 73 79 73 74 65 6d |ipts wit|h system|
|000055d0| 20 70 6f 6c 69 63 79 2c | 20 61 6e 64 20 72 65 73 | policy,| and res|
|000055e0| 6f 75 72 63 65 20 61 76 | 61 69 6c 61 62 69 6c 69 |ource av|ailabili|
|000055f0| 74 79 20 69 6e 0a 58 20 | 20 20 20 6d 69 6e 64 2e |ty in.X | mind.|
|00005600| 0a 58 0a 58 20 20 20 20 | 49 6e 20 73 68 6f 72 74 |.X.X |In short|
|00005610| 2c 20 74 68 65 72 65 20 | 69 73 20 6e 6f 20 73 68 |, there |is no sh|
|00005620| 6f 72 74 20 61 6e 73 77 | 65 72 20 74 6f 20 74 75 |ort answ|er to tu|
|00005630| 6e 69 6e 67 2e 20 20 51 | 42 41 54 43 48 20 63 61 |ning. Q|BATCH ca|
|00005640| 6e 20 70 72 6f 76 69 64 | 65 20 74 68 65 20 74 6f |n provid|e the to|
|00005650| 6f 6c 73 0a 58 20 20 20 | 20 66 6f 72 20 62 65 74 |ols.X | for bet|
|00005660| 74 65 72 20 75 74 69 6c | 69 73 61 74 69 6f 6e 20 |ter util|isation |
|00005670| 6f 66 20 72 65 73 6f 75 | 72 63 65 73 2c 20 62 75 |of resou|rces, bu|
|00005680| 74 20 74 6f 20 62 65 20 | 65 66 66 65 63 74 69 76 |t to be |effectiv|
|00005690| 65 2c 20 49 74 20 6e 65 | 65 64 73 20 74 6f 20 62 |e, It ne|eds to b|
|000056a0| 65 0a 58 20 20 20 20 69 | 6d 70 6c 65 6d 65 6e 74 |e.X i|mplement|
|000056b0| 65 64 20 74 68 72 6f 75 | 67 68 6f 75 74 20 61 20 |ed throu|ghout a |
|000056c0| 73 79 73 74 65 6d 2c 20 | 77 69 74 68 20 6e 6f 20 |system, |with no |
|000056d0| 62 61 63 6b 20 64 6f 6f | 72 73 20 74 68 72 6f 75 |back doo|rs throu|
|000056e0| 67 68 20 77 68 69 63 68 | 20 75 73 65 72 73 20 63 |gh which| users c|
|000056f0| 61 6e 0a 58 20 20 20 20 | 27 73 74 65 61 6c 27 20 |an.X |'steal' |
|00005700| 72 65 73 6f 75 72 63 65 | 73 2e 20 20 49 74 20 77 |resource|s. It w|
|00005710| 69 6c 6c 20 74 61 6b 65 | 20 6d 6f 6e 69 74 6f 72 |ill take| monitor|
|00005720| 69 6e 67 20 6f 76 65 72 | 20 61 20 70 65 72 69 6f |ing over| a perio|
|00005730| 64 20 6f 66 20 74 69 6d | 65 2c 20 63 6c 6f 73 69 |d of tim|e, closi|
|00005740| 6e 67 0a 58 20 20 20 20 | 6c 6f 6f 70 68 6f 6c 65 |ng.X |loophole|
|00005750| 73 2c 20 61 6e 64 20 77 | 61 72 6e 69 6e 67 20 75 |s, and w|arning u|
|00005760| 73 65 72 73 20 77 68 6f | 20 64 6f 20 6e 6f 74 20 |sers who| do not |
|00005770| 63 6f 6d 70 6c 79 2e 20 | 20 49 74 20 77 69 6c 6c |comply. | It will|
|00005780| 20 74 61 6b 65 20 63 72 | 65 61 74 69 6f 6e 20 6f | take cr|eation o|
|00005790| 66 0a 58 20 20 20 20 6e | 65 77 20 71 75 65 75 65 |f.X n|ew queue|
|000057a0| 73 20 61 74 20 64 69 66 | 66 65 72 65 6e 74 20 70 |s at dif|ferent p|
|000057b0| 72 69 6f 72 69 74 69 65 | 73 20 74 6f 20 73 68 61 |rioritie|s to sha|
|000057c0| 72 65 20 74 68 65 20 77 | 6f 72 6b 6c 6f 61 64 20 |re the w|orkload |
|000057d0| 65 71 75 69 74 61 62 6c | 79 2e 20 49 74 20 77 69 |equitabl|y. It wi|
|000057e0| 6c 6c 0a 58 20 20 20 20 | 74 61 6b 65 20 73 77 61 |ll.X |take swa|
|000057f0| 70 70 69 6e 67 20 6a 6f | 62 73 20 66 72 6f 6d 20 |pping jo|bs from |
|00005800| 71 75 65 75 65 20 74 6f | 20 71 75 65 75 65 20 75 |queue to| queue u|
|00005810| 6e 74 69 6c 20 74 68 65 | 20 62 61 6c 61 6e 63 65 |ntil the| balance|
|00005820| 20 69 73 20 72 69 67 68 | 74 2e 20 20 49 74 20 77 | is righ|t. It w|
|00005830| 69 6c 6c 0a 58 20 20 20 | 20 74 61 6b 65 20 57 4f |ill.X | take WO|
|00005840| 52 4b 21 20 28 49 20 6b | 6e 6f 77 20 2e 2e 20 69 |RK! (I k|now .. i|
|00005850| 74 27 73 20 61 20 64 69 | 72 74 79 20 77 6f 72 64 |t's a di|rty word|
|00005860| 2e 29 20 59 6f 75 20 77 | 69 6c 6c 20 6b 6e 6f 77 |.) You w|ill know|
|00005870| 20 77 68 65 6e 20 79 6f | 75 20 68 61 76 65 20 67 | when yo|u have g|
|00005880| 6f 74 0a 58 20 20 20 20 | 69 74 20 72 69 67 68 74 |ot.X |it right|
|00005890| 20 77 68 65 6e 20 74 68 | 65 20 27 70 68 6f 6e 65 | when th|e 'phone|
|000058a0| 20 73 74 6f 70 73 20 72 | 69 6e 67 69 6e 67 2e 0a | stops r|inging..|
|000058b0| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 0a 69 66 20 74 |END_OF_F|ILE.if t|
|000058c0| 65 73 74 20 34 38 32 35 | 20 2d 6e 65 20 60 77 63 |est 4825| -ne `wc|
|000058d0| 20 2d 63 20 3c 27 64 6f | 63 2f 63 68 61 70 2e 30 | -c <'do|c/chap.0|
|000058e0| 37 27 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |7'`; the|n. ec|
|000058f0| 68 6f 20 73 68 61 72 3a | 20 5c 22 27 64 6f 63 2f |ho shar:| \"'doc/|
|00005900| 63 68 61 70 2e 30 37 27 | 5c 22 20 75 6e 70 61 63 |chap.07'|\" unpac|
|00005910| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|00005920| 69 7a 65 21 0a 66 69 0a | 23 20 65 6e 64 20 6f 66 |ize!.fi.|# end of|
|00005930| 20 27 64 6f 63 2f 63 68 | 61 70 2e 30 37 27 0a 66 | 'doc/ch|ap.07'.f|
|00005940| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 64 6f |i.if tes|t -f 'do|
|00005950| 63 2f 63 68 61 70 2e 30 | 38 27 20 2d 61 20 22 24 |c/chap.0|8' -a "$|
|00005960| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|00005970| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|00005980| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|00005990| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|000059a0| 20 5c 22 27 64 6f 63 2f | 63 68 61 70 2e 30 38 27 | \"'doc/|chap.08'|
|000059b0| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|000059c0| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|000059d0| 27 64 6f 63 2f 63 68 61 | 70 2e 30 38 27 5c 22 20 |'doc/cha|p.08'\" |
|000059e0| 5c 28 34 36 38 31 20 63 | 68 61 72 61 63 74 65 72 |\(4681 c|haracter|
|000059f0| 73 5c 29 0a 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |s\).sed |"s/^X//"|
|00005a00| 20 3e 27 64 6f 63 2f 63 | 68 61 70 2e 30 38 27 20 | >'doc/c|hap.08' |
|00005a10| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|00005a20| 58 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X.X | |
|00005a30| 51 42 41 54 43 48 20 20 | 61 20 71 75 65 75 65 64 |QBATCH |a queued|
|00005a40| 20 62 61 74 63 68 20 70 | 72 6f 63 65 73 73 69 6e | batch p|rocessin|
|00005a50| 67 20 73 79 73 74 65 6d | 20 66 6f 72 20 55 4e 49 |g system| for UNI|
|00005a60| 58 0a 58 0a 58 0a 58 09 | 20 20 20 20 20 54 68 65 |X.X.X.X.| The|
|00005a70| 20 51 42 41 54 43 48 20 | 73 79 73 74 65 6d 20 61 | QBATCH |system a|
|00005a80| 6e 64 20 69 74 73 20 72 | 65 6c 61 74 65 64 20 70 |nd its r|elated p|
|00005a90| 72 6f 67 72 61 6d 73 20 | 77 65 72 65 0a 58 09 20 |rograms |were.X. |
|00005aa0| 20 20 20 20 77 72 69 74 | 74 65 6e 20 62 79 20 41 | writ|ten by A|
|00005ab0| 6c 61 6e 20 44 2e 20 53 | 61 75 6e 64 65 72 73 20 |lan D. S|aunders |
|00005ac0| 61 6e 64 20 61 72 65 0a | 58 09 20 20 20 20 20 43 |and are.|X. C|
|00005ad0| 6f 70 79 72 69 67 68 74 | 20 28 63 29 20 56 69 74 |opyright| (c) Vit|
|00005ae0| 61 20 53 65 72 76 69 63 | 65 73 20 4c 74 64 2e 20 |a Servic|es Ltd. |
|00005af0| 31 39 39 30 20 61 6e 64 | 0a 58 09 20 20 20 20 20 |1990 and|.X. |
|00005b00| 43 6f 70 79 72 69 67 68 | 74 20 28 63 29 20 56 69 |Copyrigh|t (c) Vi|
|00005b10| 74 61 20 46 69 62 72 65 | 73 20 4c 74 64 2e 20 31 |ta Fibre|s Ltd. 1|
|00005b20| 39 39 31 0a 58 0a 58 38 | 2e 46 49 58 45 44 20 63 |991.X.X8|.FIXED c|
|00005b30| 6f 6e 74 65 78 74 20 71 | 75 65 75 65 73 2e 0a 58 |ontext q|ueues..X|
|00005b40| 0a 58 20 20 20 20 20 20 | 20 41 20 66 69 78 65 64 |.X | A fixed|
|00005b50| 20 63 6f 6e 74 65 78 74 | 20 71 75 65 75 65 20 69 | context| queue i|
|00005b60| 73 20 6f 6e 65 20 77 68 | 65 72 65 20 74 68 65 20 |s one wh|ere the |
|00005b70| 27 65 6e 76 69 72 6f 6e | 6d 65 6e 74 27 20 6f 66 |'environ|ment' of|
|00005b80| 20 61 20 6a 6f 62 20 72 | 75 6e 6e 69 6e 67 0a 58 | a job r|unning.X|
|00005b90| 20 20 20 20 20 20 20 69 | 6e 20 69 74 20 69 73 20 | i|n it is |
|00005ba0| 66 69 78 65 64 2e 20 20 | 41 20 63 6f 6e 74 72 6f |fixed. |A contro|
|00005bb0| 6c 20 66 69 6c 65 2c 20 | 6c 6f 63 61 74 65 64 20 |l file, |located |
|00005bc0| 69 6e 20 74 68 65 20 73 | 61 6d 65 20 64 69 72 65 |in the s|ame dire|
|00005bd0| 63 74 6f 72 79 20 61 73 | 20 74 68 65 0a 58 20 20 |ctory as| the.X |
|00005be0| 20 20 20 20 20 71 75 65 | 75 65 20 69 74 73 65 6c | que|ue itsel|
|00005bf0| 66 2c 20 63 6f 6e 74 61 | 69 6e 73 20 64 69 72 65 |f, conta|ins dire|
|00005c00| 63 74 69 76 65 73 2c 20 | 61 6e 64 20 70 65 72 68 |ctives, |and perh|
|00005c10| 61 70 73 20 69 6e 69 74 | 69 61 6c 20 6a 63 6c 20 |aps init|ial jcl |
|00005c20| 77 68 69 63 68 20 77 69 | 6c 6c 0a 58 20 20 20 20 |which wi|ll.X |
|00005c30| 20 20 20 73 65 74 20 75 | 70 20 61 6e 64 20 66 69 | set u|p and fi|
|00005c40| 78 20 74 68 65 20 72 75 | 6e 6e 69 6e 67 20 65 6e |x the ru|nning en|
|00005c50| 76 69 72 6f 6e 6d 65 6e | 74 20 6f 66 20 61 6c 6c |vironmen|t of all|
|00005c60| 20 6a 6f 62 73 20 70 72 | 6f 63 65 73 73 65 64 20 | jobs pr|ocessed |
|00005c70| 69 6e 20 74 68 65 0a 58 | 20 20 20 20 20 20 20 71 |in the.X| q|
|00005c80| 75 65 75 65 2e 20 20 54 | 68 69 73 20 63 6f 6e 74 |ueue. T|his cont|
|00005c90| 72 6f 6c 20 66 69 6c 65 | 20 28 2e 3c 71 75 65 75 |rol file| (.<queu|
|00005ca0| 65 6e 61 6d 65 3e 72 63 | 20 69 6e 20 51 55 45 55 |ename>rc| in QUEU|
|00005cb0| 45 50 41 54 48 29 20 6d | 61 79 20 61 6c 73 6f 20 |EPATH) m|ay also |
|00005cc0| 62 65 0a 58 20 20 20 20 | 20 20 20 75 73 65 64 20 |be.X | used |
|00005cd0| 74 6f 20 72 65 73 74 72 | 69 63 74 20 61 63 63 65 |to restr|ict acce|
|00005ce0| 73 73 20 74 6f 20 74 68 | 65 20 71 75 65 75 65 2e |ss to th|e queue.|
|00005cf0| 0a 58 0a 58 20 20 20 20 | 20 20 20 46 69 78 65 64 |.X.X | Fixed|
|00005d00| 20 63 6f 6e 74 65 78 74 | 20 71 75 65 75 65 73 20 | context| queues |
|00005d10| 77 65 72 65 20 64 65 73 | 69 67 6e 65 64 20 66 6f |were des|igned fo|
|00005d20| 72 20 74 68 6f 73 65 20 | 6f 63 63 61 73 69 6f 6e |r those |occasion|
|00005d30| 73 20 77 68 65 6e 20 61 | 20 6a 6f 62 20 6d 75 73 |s when a| job mus|
|00005d40| 74 0a 58 20 20 20 20 20 | 20 20 72 75 6e 2c 20 62 |t.X | run, b|
|00005d50| 75 74 20 77 68 65 72 65 | 20 74 68 65 20 65 6e 76 |ut where| the env|
|00005d60| 69 72 6f 6e 6d 65 6e 74 | 2c 20 28 50 41 54 48 2c |ironment|, (PATH,|
|00005d70| 20 43 57 44 20 65 74 63 | 29 20 69 73 20 75 6e 70 | CWD etc|) is unp|
|00005d80| 72 65 64 69 63 74 61 62 | 6c 65 2c 0a 58 20 20 20 |redictab|le,.X |
|00005d90| 20 20 20 20 6e 6f 6e 2d | 65 78 69 73 74 65 6e 74 | non-|existent|
|00005da0| 2c 20 6f 72 20 6d 75 73 | 74 20 62 65 20 66 69 78 |, or mus|t be fix|
|00005db0| 65 64 20 66 6f 72 20 61 | 20 70 61 72 74 69 63 75 |ed for a| particu|
|00005dc0| 6c 61 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2e |lar appl|ication.|
|00005dd0| 20 20 54 68 65 0a 58 20 | 20 20 20 20 20 20 6f 72 | The.X | or|
|00005de0| 69 67 69 6e 61 6c 20 74 | 61 73 6b 73 20 66 6f 72 |iginal t|asks for|
|00005df0| 20 77 68 69 63 68 20 49 | 20 64 65 73 69 67 6e 65 | which I| designe|
|00005e00| 64 20 74 68 69 73 20 63 | 6f 6e 63 65 70 74 20 77 |d this c|oncept w|
|00005e10| 65 72 65 20 6a 6f 62 73 | 20 72 75 6e 0a 58 20 20 |ere jobs| run.X |
|00005e20| 20 20 20 20 20 72 65 6d | 6f 74 65 6c 79 20 76 69 | rem|otely vi|
|00005e30| 61 20 75 75 78 2e 20 20 | 4f 74 68 65 72 73 20 77 |a uux. |Others w|
|00005e40| 68 69 63 68 20 73 70 72 | 69 6e 67 20 74 6f 20 6d |hich spr|ing to m|
|00005e50| 69 6e 64 20 61 72 65 2c | 20 63 6f 6d 70 6c 65 78 |ind are,| complex|
|00005e60| 0a 58 20 20 20 20 20 20 | 20 6d 61 69 6c 73 65 72 |.X | mailser|
|00005e70| 76 65 72 73 2c 20 61 6e | 64 20 75 73 65 72 20 61 |vers, an|d user a|
|00005e80| 64 64 2d 6f 6e 73 20 74 | 6f 20 61 6e 20 65 78 74 |dd-ons t|o an ext|
|00005e90| 65 72 6e 61 6c 6c 79 20 | 73 75 70 70 6c 69 65 64 |ernally |supplied|
|00005ea0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2e 0a 58 0a | applica|tion..X.|
|00005eb0| 58 20 20 20 20 20 20 20 | 49 6e 20 69 74 27 73 20 |X |In it's |
|00005ec0| 73 69 6d 70 6c 65 73 74 | 20 66 6f 72 6d 2c 20 61 |simplest| form, a|
|00005ed0| 20 6a 6f 62 20 72 75 6e | 6e 69 6e 67 20 69 6e 20 | job run|ning in |
|00005ee0| 61 20 66 69 78 65 64 20 | 63 6f 6e 74 65 78 74 20 |a fixed |context |
|00005ef0| 71 75 65 75 65 20 64 6f | 65 73 20 6e 6f 74 0a 58 |queue do|es not.X|
|00005f00| 20 20 20 20 20 20 20 63 | 61 72 72 79 20 74 68 65 | c|arry the|
|00005f10| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 20 76 61 72 | environ|ment var|
|00005f20| 69 61 62 6c 65 73 20 70 | 72 65 73 65 6e 74 20 77 |iables p|resent w|
|00005f30| 68 65 6e 20 74 68 65 20 | 6a 6f 62 20 77 61 73 20 |hen the |job was |
|00005f40| 73 75 62 6d 69 74 74 65 | 64 2c 0a 58 20 20 20 20 |submitte|d,.X |
|00005f50| 20 20 20 62 75 74 20 6f | 6e 6c 79 20 74 68 6f 73 | but o|nly thos|
|00005f60| 65 20 73 65 74 20 75 70 | 20 69 6e 20 74 68 65 20 |e set up| in the |
|00005f70| 63 6f 6e 74 72 6f 6c 20 | 66 69 6c 65 20 66 6f 72 |control |file for|
|00005f80| 20 74 68 61 74 20 71 75 | 65 75 65 2e 20 20 54 68 | that qu|eue. Th|
|00005f90| 65 20 63 6f 6e 74 72 6f | 6c 0a 58 20 20 20 20 20 |e contro|l.X |
|00005fa0| 20 20 66 69 6c 65 20 6d | 61 79 20 61 6c 73 6f 20 | file m|ay also |
|00005fb0| 63 6f 6e 74 61 69 6e 20 | 6a 63 6c 20 28 73 75 63 |contain |jcl (suc|
|00005fc0| 68 20 61 73 20 63 68 61 | 6e 67 69 6e 67 20 64 69 |h as cha|nging di|
|00005fd0| 72 65 63 74 6f 72 69 65 | 73 2c 20 6d 6f 75 6e 74 |rectorie|s, mount|
|00005fe0| 69 6e 67 0a 58 20 20 20 | 20 20 20 20 73 65 63 75 |ing.X | secu|
|00005ff0| 72 65 20 70 61 72 74 69 | 74 69 6f 6e 73 29 20 77 |re parti|tions) w|
|00006000| 68 69 63 68 20 77 69 6c | 6c 20 62 65 20 72 75 6e |hich wil|l be run|
|00006010| 20 62 65 66 6f 72 65 20 | 74 68 65 20 73 75 62 6d | before |the subm|
|00006020| 69 74 74 65 64 20 6a 63 | 6c 2e 20 49 74 20 63 61 |itted jc|l. It ca|
|00006030| 6e 0a 58 20 20 20 20 20 | 20 20 61 6c 73 6f 20 62 |n.X | also b|
|00006040| 65 20 75 73 65 64 20 74 | 6f 20 73 70 65 63 69 66 |e used t|o specif|
|00006050| 79 20 74 68 65 20 73 68 | 65 6c 6c 20 75 6e 64 65 |y the sh|ell unde|
|00006060| 72 20 77 68 69 63 68 20 | 74 68 65 20 6a 6f 62 20 |r which |the job |
|00006070| 77 69 6c 6c 20 72 75 6e | 20 69 6e 73 74 65 61 64 |will run| instead|
|00006080| 0a 58 20 20 20 20 20 20 | 20 6f 66 20 2f 62 69 6e |.X | of /bin|
|00006090| 2f 73 68 2e 0a 58 0a 58 | 20 20 20 20 20 20 20 54 |/sh..X.X| T|
|000060a0| 68 65 20 73 68 65 6c 6c | 20 63 61 6e 20 62 65 20 |he shell| can be |
|000060b0| 73 70 65 63 69 66 69 65 | 64 20 62 79 20 69 6e 63 |specifie|d by inc|
|000060c0| 6c 75 64 69 6e 67 20 61 | 20 6c 69 6e 65 0a 58 0a |luding a| line.X.|
|000060d0| 58 20 20 20 20 20 20 20 | 23 21 3c 73 68 65 6c 6c |X |#!<shell|
|000060e0| 70 61 74 68 73 70 65 63 | 3e 0a 58 0a 58 20 20 20 |pathspec|>.X.X |
|000060f0| 20 20 20 20 61 73 20 74 | 68 65 20 46 49 52 53 54 | as t|he FIRST|
|00006100| 20 6c 69 6e 65 20 69 6e | 20 74 68 65 20 63 6f 6e | line in| the con|
|00006110| 74 72 6f 6c 20 66 69 6c | 65 2e 20 20 54 68 69 73 |trol fil|e. This|
|00006120| 20 77 69 6c 6c 20 6f 76 | 65 72 72 75 6c 65 20 41 | will ov|errule A|
|00006130| 4e 59 20 6f 74 68 65 72 | 0a 58 20 20 20 20 20 20 |NY other|.X |
|00006140| 20 73 70 65 63 69 66 69 | 63 61 74 69 6f 6e 20 6f | specifi|cation o|
|00006150| 66 20 74 68 65 20 73 68 | 65 6c 6c 20 74 6f 20 72 |f the sh|ell to r|
|00006160| 75 6e 20 75 6e 64 65 72 | 2e 20 28 65 76 65 6e 20 |un under|. (even |
|00006170| 74 68 65 20 2d 73 20 6f | 70 74 69 6f 6e 20 74 6f |the -s o|ption to|
|00006180| 20 6a 73 20 77 69 6c 6c | 0a 58 20 20 20 20 20 20 | js will|.X |
|00006190| 20 62 65 20 73 69 6c 65 | 6e 74 6c 79 20 69 67 6e | be sile|ntly ign|
|000061a0| 6f 72 65 64 29 2e 20 20 | 54 68 65 20 72 65 61 73 |ored). |The reas|
|000061b0| 6f 6e 20 66 6f 72 20 74 | 68 69 73 20 69 73 20 74 |on for t|his is t|
|000061c0| 68 61 74 20 61 6e 79 20 | 27 6a 63 6c 27 20 69 6e |hat any |'jcl' in|
|000061d0| 20 74 68 65 0a 58 20 20 | 20 20 20 20 20 63 6f 6e | the.X | con|
|000061e0| 74 72 6f 6c 20 66 69 6c | 65 2c 20 65 76 65 6e 20 |trol fil|e, even |
|000061f0| 74 68 61 74 20 73 65 74 | 74 69 6e 67 20 65 6e 76 |that set|ting env|
|00006200| 69 72 6f 6e 6d 65 6e 74 | 20 76 61 72 69 61 62 6c |ironment| variabl|
|00006210| 65 73 2c 20 69 73 20 73 | 68 65 6c 6c 0a 58 20 20 |es, is s|hell.X |
|00006220| 20 20 20 20 20 73 70 65 | 63 69 66 69 63 2e 20 20 | spe|cific. |
|00006230| 53 79 6e 74 61 78 20 73 | 75 69 74 61 62 6c 65 20 |Syntax s|uitable |
|00006240| 66 6f 72 20 74 68 65 20 | 62 6f 75 72 6e 65 20 73 |for the |bourne s|
|00006250| 68 65 6c 6c 20 69 73 20 | 6e 6f 74 20 73 75 69 74 |hell is |not suit|
|00006260| 61 62 6c 65 20 66 6f 72 | 20 74 68 65 0a 58 20 20 |able for| the.X |
|00006270| 20 20 20 20 20 63 2d 73 | 68 65 6c 6c 20 65 74 63 | c-s|hell etc|
|00006280| 2e 0a 58 0a 58 20 20 20 | 20 20 20 20 45 78 74 65 |..X.X | Exte|
|00006290| 6e 73 69 6f 6e 73 20 74 | 6f 20 74 68 69 73 20 73 |nsions t|o this s|
|000062a0| 69 6d 70 6c 65 20 63 61 | 73 65 20 61 72 65 20 63 |imple ca|se are c|
|000062b0| 72 65 61 74 65 64 20 62 | 79 20 74 68 65 20 75 73 |reated b|y the us|
|000062c0| 65 20 6f 66 20 23 51 20 | 64 69 72 65 63 74 69 76 |e of #Q |directiv|
|000062d0| 65 73 0a 58 20 20 20 20 | 20 20 20 69 6e 20 74 68 |es.X | in th|
|000062e0| 65 20 63 6f 6e 74 72 6f | 6c 20 66 69 6c 65 2e 0a |e contro|l file..|
|000062f0| 58 0a 58 20 20 20 20 20 | 20 20 55 73 69 6e 67 20 |X.X | Using |
|00006300| 74 68 65 6d 20 79 6f 75 | 20 63 61 6e 3a 0a 58 20 |them you| can:.X |
|00006310| 20 20 20 20 20 20 48 61 | 76 65 20 61 6c 6c 20 6a | Ha|ve all j|
|00006320| 6f 62 73 20 69 6e 20 74 | 68 69 73 20 71 75 65 75 |obs in t|his queu|
|00006330| 65 20 72 75 6e 20 75 6e | 64 65 72 20 61 20 70 61 |e run un|der a pa|
|00006340| 72 74 69 63 75 6c 61 72 | 20 75 69 64 20 61 6e 64 |rticular| uid and|
|00006350| 20 67 69 64 2c 0a 58 20 | 20 20 20 20 20 20 28 23 | gid,.X | (#|
|00006360| 51 43 4f 4e 54 45 58 54 | 29 0a 58 20 20 20 20 20 |QCONTEXT|).X |
|00006370| 20 20 4e 4f 54 45 20 41 | 20 66 69 78 65 64 20 63 | NOTE A| fixed c|
|00006380| 6f 6e 74 65 78 74 20 71 | 75 65 75 65 20 77 69 74 |ontext q|ueue wit|
|00006390| 68 20 61 20 23 51 43 4f | 4e 54 45 58 54 20 64 69 |h a #QCO|NTEXT di|
|000063a0| 72 65 63 74 69 76 65 20 | 69 6e 73 74 72 75 63 74 |rective |instruct|
|000063b0| 69 6e 67 20 74 68 65 0a | 58 20 20 20 20 20 20 20 |ing the.|X |
|000063c0| 6a 6f 62 73 20 74 6f 20 | 72 75 6e 20 61 73 20 72 |jobs to |run as r|
|000063d0| 6f 6f 74 20 49 53 20 4e | 4f 54 20 50 45 52 4d 49 |oot IS N|OT PERMI|
|000063e0| 54 54 45 44 21 0a 58 0a | 58 20 20 20 20 20 20 20 |TTED!.X.|X |
|000063f0| 4c 69 6d 69 74 20 61 63 | 63 65 73 73 20 74 6f 20 |Limit ac|cess to |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.