, . - . , , - . .  1 - . , . 455 AT&T. , , , - , , - AT&T455. , - ; .  2 nroff . nroff , - , ( -15-51- nroff35), AT&T455. 450 , , nroff ( nroff35) , AT&T455 ( 455). , 455, , 450 . -15-52-   , , , . , , , - . : - , . . , , - . , - , , . , , , , , - . , - .   - - , . -15-52- . - ( - ) ( - XOFF , XON ). , . . , . -15-53- - . , - . , , . - , , , - . , - , , , ; , - . , . ( "- " "" - ) ; - , , , . , - . - , , , , - .  ? , troff, nroff , . , troff nroff , - ,  includes files ( ). LP - - . troff nroff , . , - . , - : - , , . -15-53- , , , . - , , , . - , , , , - , , . , , . -15-54- , , , , . , - , , , , .   , - . : , - . , . - , . - , , 14 , ( - ). - , - . , , . - , , , . , . , - . 14 , . , - , , . - - , , . , -15-54- , . , , , . -15-55- , - . , - , . , , - ( "" " " ), . , , . , - " ", - . . , - , . - , . , , , - , . , , . , , - . . , , , - . , - ; , . , . . -15-55- , , , .   . fast , - , -15-56- , , . , - , . . , - , - . . - , - ( ), , , . . . - , , . , , , . . , , sysadmsh - lpfilter(ADM). ( lpfilter). - - . . - : Input types: input-types-list Output types: output-types-list printer types: printer-type-list Printers: printers-list Filter type: fast or slow Command: command Options: template-list 1 - : --; 2 - : --; 3 - : --; 4 - : -; 5 - : ; -15-56- 6 - : ; 7 - : -. . - . 15.5 , . -15-57-  15.5 ---------------------------------------------- ( ) () , (). , .  , template-list (-- ). , . - - , , :  keyword pattern = replacement keyword ( ) . , - . pattern () - - , (*), . -15-58-  15.6 ------------------------------------------- INPUT 1- 0 () OUTPUT 1- 0 () TERM 1- 0 CPI 1 0 LENGTH 1 0 WIDTH  PAGES - CHARSET - FORM - COPIES  MODES  : - INPUT OUTPUT - , , . , . - TERM . - CPI, LPI, LEHGTH WIDTH - , - . - PAGES , - . - , , , - ( 1-5, 6, 7 8). - , - . - CHARSET - . - FORM - , . - COPIES - , . , -15-59- , 1, " " , - . - MODES -y - lp, , - . -y, MODES . , . , - -. (*), , , - . , - .  1 /usr/bin/npf. nroff37 X, , - . - : -Xb  -l  . -w   . : Input types: nroff37 X Output types: printer types: Command: /usr/bin/npf Options: INPUT X = -Xb, LENGTH * = -l*, WIDTH * = -w* 1 - ; 2 - ; 3 - ; 4 - ; 5 - . nroff37 , lp1 72: -15-59-  lp -T nroff37 -d lp1 -o length=72 - . :  /usr/bin/npf -l72 -15-60-  2 , , . :  /usr/bin/npf -Xb  3 /usr/bin/9700. , troff, , 9700 9700. - -ib - :  -l integer    -s name   -o portrait   -o landscape "" "" . , - port land , . , -y  lp. : Input types: troff Output types: 9700 rinter types: 9700 Command: /usr/bin/x9700 -ib Options: LENGTH * = -l *, CHARSET * = -s *, MODES port = -o portrait, MODES land = -o landscape 1 - ; 2 - ; 3 - ; 4 - ; 5 - . -15-60- ( - . , - ). troff - 9700 , :  lp -T troff -S gothic -y land - : -15-61-  /usr/bin/x9700 -ib -S gothic -o landscape  (=), , . , . ( ).   : 2 /usr/lib/lpfilter -f 1filtername 2-F filename 2 /usr/lib/lpfilter -f 1filtername -  sysadmsh : Printers-->Auxiliary-->Filter-->Change (-->-->-->) , - . filtername 14 , . , . . - .   , . - , - , - . : 2 /usr/lib/lpfilter -f 1filtername -  sysadmsh : Printers-->Auxiliary-->Filter-->Remove (-->-->-->) -15-62-   . lpfilter - , , . - : 2 /usr/lib/lpfilter -f 1filtername -l 2 /usr/lib/lpfilter -f 1filtername 2-l>filename  sysadmsh : Printers-->Auxiliary-->Filter-->List (-->-->-->) . , - , .   , . - , , , , . , - , , ( - , ). - , - , , . , - , . - , - . -15-62- /usr/spool/lp/temp /usr/spool/lp/requests - , , - LP. , - . - /usr/spool/lp/requests, -15-63- . , - , /usr/spool/ lp/requests . - . /usr/spool/lp/logs/requests. LP, - , , , cron. crontab " - : at, cron, batch" . crontab, LP, : 13 3 * * * cd /usr/spool/lp/logs; if [ -f requests ]; then /bin/mv requests xyzzy; /bin/cp xyzzy requests; >xyzzy; /usr/lbin/agefile -c2 requests; /bin/mv xyzzy requests; fi ( crontab, - ). , - :  , requests1 requests2. 2 -. agefile - , . , - . , - , , , crontab - . 13 3 , 3:13. crontab - . - - LP . , . , - UNIX. , -15-63- , . , - , . - . - . -15-64-  15.7 ------------------------------------------- =  , - , - , (- ) . . , - uid, gid  size .   D any F . , . f H , - (resume, hold,immediate). , - immediate. N , - . - , - W,  -  p r , - ( -r lp) S s , , - . , , - : 00004 00010 - 00040 00100 -15-65- T , t , () U , x , Y , y , z , . ( D), - -15-66-   , . , , - , , . - . , : - , - terminfo, - , - . 15-1 - : . 15-1 LP lp -d 1 - lp; 2 - ; 3 - ( ); 4 - ; 5 - ; 6 - ; 7 - terminfo; 8 - ; 9 - ; 10 - ; 11 - ; 12 - ; -15-66- 13 - ; 14 - UNIX; 15 - UNIX (); 16 - ; 17 - UNIX; 18 - . -15-67-  , . , LP. UNIX ; , - , . - , 15-1 ( ). 1. , . , . - - : , - . 2. , terminfo, , . : , , . , terminfo , - , - , . - , , , - . 3. , - , - LP, . : , . 4b. , , . , - , , - , , - . -15-67- , - . , , - . -15-68-   , , , . UNIX , . , - . - , . , , , ( ). stty(C) User's Reference. , - . , stty(C), . , , ( - stty(C) ). , , , , , . - . - , XON/XOFF, 7, 8 , , . - stty , - . , - , .  15.8 stty ------------------------------------------- 9600 9600 cs8 8- -cstopb 1 -15-69- -parenb ixon XON/XOFF -ixany XON opost ? -oluc onlcr / -onlcr -nocr 0 nl0 cr0 tab0 bs0 vt0 ff0 , - . - , - . stty User's Reference. , - , , stty, . , , - . , , , . : 2/usr/lib/lpadmin -p 1printer-name 2-o "stty='1stty-option-list'" 2 sysadmsh : Printers-->Configure-->Parameters (-->-->) , - ,