------Adding a Printer-------------------------+ | | | | | | | Printer name [ ] | | | | | | | | Comment [ ] | | | | | | | | Class name [ ] | | | | | | | | Use printer interface [Existing] Copy New | | | | Name of interface [ ] | | | | | | | | Connection [Direct] Call-up | | | | Device name [ ] | | | | Dial-up information [ ] | | | | Device [Hirdwired] Login | | | | | | | | Require banner Yes [No] | | | +----------------------------------------------------------+ | +--------------------------------------------------------------+ 1 - , 2 - , 3 - , 4 - , -15-5- 5 - , 6 - , 7 - , 8 - , 9 - , 10 - , 11 - , 12 - , 13 - , 14 - , 15 - , 16 - , 17 - , 18 - , 19 - , 20 - , 21 - . :  Printer name ( ) Comment  , () Class name , ( ) (<F3> ) Use printer interface , ( ) -15-6- Name of interface ( <F3> - ( ) ) Connection  - ()     Device - () - login ( ) Device name , ( ) ( /dev/tty01 - /dev/lp0 - ) Dial-up information ( ) Require banner  , ( ) . , - . - - , . , - sysadmish:  Printers --> Shedule --> Begin ( )  Printers --> Shedule --> Enable ( )  Printers --> Shedule --> Accept ( ) Enable Accept . - " ", " " " - ". Sysadmish , lpadmin(ADM). -15-7-   , - 15.1  15.1 | ------------+------------------------------------  Cancel | ------------+------------------------------------  lp | ------------+------------------------------------  lpstat  | LP , - , . , , - , c . - . - , , 15.2, printerstat ( "/ " " " ).  15.2 | ------------+---------------------------------------- disable  | () ------------+----------------------------------------  enable | () -15-8-   , LP, 15.3. /usr/lib. , PATH. ,  lp ( " " - ). , "- " sysadmsh. - - , " ", .  15.3 LP | ------------------+---------------------------------------  /usr/lib/accept | | . ------------------+---------------------------------------  /usr/lib/reject | | . | , | accept(ADM). ------------------+--------------------------------------- /usr/lib/lpadmin|  | . ------------------+---------------------------------------  /usr/lib/lpfilte| . ------------------+---------------------------------------  /usr/lib/lpforms| . | ( /usr/lib/lpadmin | ). ------------------+--------------------------------------- /usr/lib/lpmove |  | . | ,  lpsched(ADM). -15-9- ------------------+---------------------------------------  /usr/lib/lpsched| . /usr/lib/lpscut | . | , | lpsched(ADM). ------------------+---------------------------------------  /usr/lib/lpusers| | , , | | . "" sysadmsh, LP. -15-10-   - , AUX PRINT - . RS-232 - . - lprint(C) , , . , AUX PRINT : 1. AUX RS-232 - 2, 3 7 (). , . 2. UNIX , . 3. , AUX , ( , , , XON/XOFF ). 4. lprint , lprint , - . lprint /etc/termcap : PN ( ) PS ( ). - , . , termcap. - (, Vi(C)) - /etc/termcap. (/etc/termcap , TERMCAP). . - , Wyse60, wyse60. termcap : -15-11- w7|wy60|wyse60|Wyse WY-60 with 80 column/24 line screen in wy60 mode:\ :is=\E`\072\Ee(\EO\Ee6\Ec41\E 4\Ec21\Ed/:\ :if/usr/lib/tabset/std:pt:\ :G1=\EH3:G2=\EH2:G3=\EH1:G4=\EH5:GD=\EH0:GG#0:GH=\TH\072:\ :GU=\EH=:GV=\EH6:GR=\EH4:GL=\EH9:GC=\EH8:GF=\EH7:\ :PU=\EJ:PD=\EK:\ :a1=\EE:am:bs:bt=E1:cd=\EY:ce=\ET:c1=\E+:\ :cm=\Ea%i%dR%dC:co#80:dc=\EW:dl=\ER:ei=\Er:im=\Eq:k0=^AI\r:\ :k1=^A@\r:k2=^AA\r:k3=^AB\r:k4=^AC\r:k5=^AD\r:k6=^AE\r:k7= 6AF\r:\ :k8=6AG\r:k9=^AH\r:kd=^J:kh=^ :kl=^H:kr=6L:ku=^K:\ :li#24:mi:nd=^L:se=\EG0:so=\EG4:sg#0:ug#0:ue=\EG0:u1:up=^K:us =\EG8: w8|wy60|wyse60|Wyse WY-60 with 132 column/24 line screen in wy60 mode:\ :is=\E`\073\Ee(\EO\Ee6\Ec41\E 4\Ec21\ :if/usr/lib/tabset/std:pt:\ :G1=\EH3:G2=\EH2:G3=\EH1:G4=\EH5:GD=\EH0:GG#0:GH=\TH\072:\ :GU=\EH=:GV=\EH6:GR=\EH4:GL=\EH9:GC=\EH8:GF=\EH7:\ :PU=\EJ:PD=\EK:\ Wyse60 PN PS. ,  /etc/termcap - . : -15-11- :PN=start sequence:PS=stop sequence:\ 5. - , - . " " " ". , , - Wyse 60 : <ESC> d # , - : <CTL>t 6. termcap termcap. termcap , : -15-12- +------------------+---------------------------+ |  | termcap| +------------------+---------------------------+ | ESCAPE | \E | | CTRL-x | ^x (x - ) | | NEWLINE | \n | | RETUTN | \r | | TAB | \t | | BACKSPACE | \b | | FORMFEED | \f | +------------------+---------------------------+ - (^), <CTL>. <CTL> - ^. ( ascii(M), (^), \^ \ \ ). termcap (:). ( termcap(M) ). , termcap PN PS. - , termcap Wyse 60 <ESC> # d ( , PN) <CTL> ( , PS) : :PN=\Ed#:PS=^T:\ 7. Wyse 60 termcap Wyse 60. ( - , ; , - ). - - - termcap, . (, Wyse60) "" , . ( - , PN ). -15-12-   - /etc/termcap. , - , . , custom(ADM). -15-13- 8. PN PS termcap. 9. filename : 2 lprint filename ; - . 10. , - PS PN . . - , , AUX - . -15-14-  LOGIN login : 2 /usr/lib/lpadmin -p 1printername 2-v 1pathname -l sysadmish  : Printer-->Configure-->Add (-->-->) pathname - , - . -l , - , , - . . -15-15-  LP - . - - . , - , , . - . , , . , , - .   - , lp.   :  /usr/lib/lpshut  sysadmish : Printers-->Shedule-->Stop (-->-->) : Print services stopped ( ) . , - , : Print services already stopped ( ) -15-16-  , - online. o online , .   - :  /usr/lib/lpshed  sysadmsh : Printers-->Shedule-->Begin (-->-->) : Print services started ( ) - , , . - , : Print services already active ( )  . -15-17-   a cancel(C). , . , - "" , UNIX : +----------------------------------------------------------- | request id is laser-number |  - , . : 2 cancel laser-number  sysadmsh : Printers-->Request-->Cancel (-->-->) . , cancel , . -15-18- enable lpshed - . , accept, - enable. " daisy" - :  enable daisy  sysadmsh  : Printer-->Shedule-->Enable (-->-->) disable. - lpshed - . -r - , , . "" - :  disable -r "paper jam" laser , "" lpstat -plaser : +-------------------------------------------------- |printer laser disabled since Dec 5 10:15 |paper jam | ( 5 10:15) enable(C) disable(C) User's Reference. -15-19-   . , , , . - , . , - - . lp - . , - , . , , , - , .  "" - . - , . , , , e, , - , , - , . - , , - , - . , : 2 /usr/lib/lpadmin -p 1printername2 -c classname  sysadmsh : Printers-->Configure-->Modify (-->-->) classname , . -15-20-  . , . . , . -15-21-   , , LPDEST. . : 2 /usr/lib/lpadmin -d printername classname sysadmsh  : Printers-->Configure-->Default (-->--> ) , , printername classname, :  /usr/lib/lpadmin -d sysadmsh  : Printers-->Configure-->Default (-->--> ) , - . , LPDEST . :  setenv LPDEST=printer Bourne:  LPDEST=printer; export LPDEST -15-22-    "" . , - , - , . , , . , - , . - , , , - . - - . , , - , , . : 1.  disable. 2. , . 3. enable. ( disable enable "- " ). -15-23- . ( : ). 2 /usr/lib/lpadmin -p 1printername2 -M -S print-wheelname -f 1formname -a -o filebreak sysadmsh  : Printers-->Auxiliary-->PPforms-->Configure (-->-->-->) -S print-wheelname,  2-f 1formname -a -o filebreak, - . , - <> , . . - , . - - - filebreak, . - filebreak LP formfeed . , formfeed, - terminfo. - , - filebreak. - , : /usr/lib/lpadmin -p 1printername -M -S none -f none  sysadmsh : Printers-->Auxiliary-->PPforms-->Remove (-->-->-->) -S none, ; -f none, - . , , . , , . -15-24-   , - . , - , - lpmove , cancel. - . , , . - - , - . - : 2 /usr/lib/lpadmin -p printername classname  sysadmsh : Printers-->Configure-->Remove (-->-->) , - , , : 2 /usr/lib/lpadmin -p 1printername 2-r classname  sysadmsh  : Printers-->Configure-->Modify (-->-->) -15-25-   . , - : - ; - ; - ; - , - -; - . , , , - , , , - , , , . - , - , . ; , . , , , , - . lpmove reject. , - accept.   : 2 /usr/lib/reject -r "reason" printername classname sysadmsh  : Printer-->Shedule-->Reject (-->-->) , , . -15-26- reason () , - . ( -r) . reject , -- , . , .   accept , lp. - , . , , , - , : 2 /usr/lib/accept printername classname  sysadmsh : Printer-->Shedule-->Accept (-->-->) , - . accept , .   , : 2 /usr/lib/lpmove request-id printername 2 /usr/lib/lpmove printername1 printername2  sysadmsh : Printer-->Request-->Move (-->-->) -15-26- - . . , , , . , - ( , reject). -15-27-   , - lpmove, accept reject:  1 lp1 - . lp1 lp2. - lp1 ( , reject lp1, lpmove).  /usr/lib/lpmove lp1 lp2 - . :  /usr/lib/accept lp1 , , - . "- " .  2 , - - laser1. laser2 , - . laser1-23 laser1-46 laser2 laser1 .  /usr/lib/lpmove laser1-23 laser1-46 laser2 /usr/lib/reject -r "too busy--will reopen late" ( - )  laser1 -15-28-  3 4 - :  /usr/lib/reject -r "printer4 needs repair" printer4 (4 ) , 4, - : +----------------------------------------------------------- | lp: can not accept requests for destination "printer4" | ( "4") | --printer printer4 needs repair | ( 4 ) :  lpstat -a -15-29-   - , . - , ; 0 39,   . ( ) ( ). , , , ( ), . , - , ( ) . , , . - : - - . , , - . - , . - . - , , . (, ) - (, - ). , - , , .  -  . . -15-29- lpusers , . , 2lp -i 1request-id -H hold lp -i request-id -H immediate   - . . -15-30-   - : 2 /usr/lib/lpusers -q 1priority-level 2-u username - -u. - ( , - ).   - 0 39. , , , , , . , : 2 /usr/lib/lpusers -q priority-level  sysadmsh : Printers-->Priorities-->Default (-->--> ) , , - lpusers. , - , , , . , - , : 2 /usr/lib/lpusers -u username  sysadmsh : Printers-->Priorities-->Remove