. , UNIX, . : 1. /usr/lib/uucp : cd /usr/lib/uucp 2. makefile /usr/lib/uucp , : EXES = dialHA12 dialHA24 dialTBIT dialVA3450 , - . , , , . 3. : make <>. 4. make - . Devices. - 14-30 -  ,   . - - , . , - . , , , - , . , , - ; , . , , . 25- 2, 3, 7, 8 20 . - , , - , . , - " ", . : 1. , UUCP . - custom(ADM). 2. , , , - , , , , , - , . - , 1 2. 3. , : 2disable ttyname 4. " " ( 2 3 ). 2, 3, 7, 8 20. - 14-31 - "- " (, - ), ( 2 3 ). DTE, , - , DCE. , . - D, . 5. /usr/lib/uucp/Devices. , . - ( ACU), Hayes ( ). - , , Hayes , 2400 1: Direct tty1a - 1299 - 2400 direct ACU tty1A - 1200 - 2400 /usr/lib/uucp/dialHA24 , ("#") . , - . Devices , - . 6. , UUCP - : 2chown uucp /dev/ttyname 7. , . - : cu -ltty1a dir , . "cu: dir permission denied" ("cu: - 14-31 - dir"), , - cu, /usr/lib/uucp/Devices. - , , , , cu - , Devices , . - 14-32 -  Hayes . . . , , - :   . "" . - , , 0. , , "" . , . , . "" , , : 1 , . , 2ATDT phonenumber , - , cu <>. 8. . - :  cu -ltty1A 555-1212 "555-1212" , . , - 14-32 - , . , - , " , ". - 14-33 -  ,  , , , - 1. - . , , , . 1. : cu -sl1200 -ltty1a dir , "", "".  : / - . , - , , 2, 3, 7, 8 20. - cu <- > . "" - . , , , 2 ( 2 - - ). "- ", 1 " ".  : . - - - . , - .  : . . 2. : , .  : , , . - 14-33 - . , .  : , - . , . - cu - , : "9----458--1234". - 14-34 - , cu . Hayes . 3. : : Connect failed: NO DEVICE AVAILABLE ( , )  : Devices . Hayes , 2400 /dev/ tty1A: Direct tty1A - 2400 direct ACU tty1A - 300-2400 /usr/lib/uucp/diaHA24 , (#) Devices.  : Devices - , . , cu , Devices , - . 4. : , , .  : , , - , . cu 8 . cu - 7 , cu - 7 .  : - . UNIX, , - login. . - :  %b - 14-34 -  : . 2400 . . , , , - , , - . - 14-35 - 5. : .  : . - . - - Devices. , , . - , tty1a - tty1A.  : CD ( ) . - , , - , Hayes 2400 , AT&C1.  : DTR (- ). - , , DTR , Hayes 2400, AT &D2. , DTR, .   , enable(C). (1) :  disable tty1a enable tty1A (2) :  disable tty2a enable tty2A , tty1A tty1a (- ) , tty2A tty2a - () . - - , . - 14-36 -  ,  , - . ( - ; "- " " - " ). 1. - . , . 2. - . , - , .  - , 3 . - - . 3. , . , - . /etc/rc.d/8/userdef:  (stty 1200; echo "atso=1\r" > /dev/tty1a) < /dev/tty1a "tty1a" , . "1200" - , . "ATS0=1" - - 14-36 - , Hayes, . - "/r" . 4. , - , DTR , DTR - . 5. CD , .. , - , . - 14-37 - 6. , - . 7. , : 2 disable ttyname ttyname - . 8. gettydefs /etc/inittab. 2 1200-2400-300. 9. , , - : 2 enable ttyname ttyname - . 10. . 11. , , .  ,  , , , 1. - . 1. : .  : . - :  disable /dev/tty1a enable /dev/tty1A : . - , 2400 Hayes, - ( " Hayes" Hayes). cu -ltty1a dir "S0=1" . - 14-38 -  : DTR ( ) . 20 - , . 2, 3, 7, 8 20 - . 2. : , - . : DTR, DTR . - : ) . :  disable /dev/tty1a enable /dev/tty1A ) . " ", - 2, 3, 7, 8 20, , 20(DTR) . 3. : " /dev/tty1A, " , - .  : . , "Ring" , - . CD , getty . - - . 2400 Hayes "ATE0Q1".  : - , . - , Hayes. 4. : , login.  : CD , . - 14-39 - , 2400 Hayes, - .  : . :  enable /dev/tty1A : /etc/gettydefs . /etc/itittab. : t1A:2:respawn:/etc/getty tty1A m /etc/gettydefs. , - . 5. : , - , - login. : . - , :  disable dev/tty1a 6. : login, - . : . - , , . , cu, , . , - - cu, - -, - . UNIX, /etc/ inittab "" gettydefs. , stty, - 14-39 - gettydefs. - 8 , - . - : 4 # B!@)) HUPCL # B!@)) CS* SANE HUPCL TAB3 ECHOE IXANY #\r\n@!login: #5 - 14-40 -     - . , login . - , , - . , - , CD , , . ( / - UUCP " UUCP" ).    /    /- . 1. - . 2. cu - . getty - .  Hayes cu uucp - . . 1200 1200 Hayes - , 3 8 : - 14-41 - +--------------------------------------+ | 1 2 3 4 5 6 7 8 | +------+---+---+---+---+---+---+---+---+ | | * | * | | * | * | * | * | | +------+---+---+---+---+---+---+---+---+ | | | | * | | | | | * | +------+---+---+---+---+---+---+---+---+ 3 , ( ) , . 8 . UNIX DOS. 2400 2400 Hayes , - . , Hayes 2400 2400 , 2400 . cu(C). cu - : 2 cu -s2400 -ltty1nn dir nn - tty . tty1A <>.  cu -s2400 ltty1A dir . . , - (at&w) , , , . <>: AT&f . - 14-41 - ATT . 10  . &d2 dtr "2": , dtr . AT&c1 dcd "1": dcd. ATS0=1 . ATS2=128 . 0 ( , ). - 14-42 - ATq1 ( , ). AT&w . cu , <>:  ~. . 15 15.1 15.1 15.3 15.7 15.8 15.10 login 15.14 LP 15.15 15.15 15.16 15.17 15.18 15.19 , 15.21 15.22 15.24 15.25 15.25 15.26 15.26 15.27 15.29 15.30 15.31 15.31 15.31 15.33 15.35 - 15.35 15.36 , 15.37 15.37 / 15.38 15.38 15.38 15.39 15.39 15.41 ? 15.41 15.42 15.44 15.45 15.46 15.48 15.48 15.50 ? 15.50 15.54 15.61 15.61 15.62 15.62 15.62 15.66 15.68 terminfo 15.70 15.72 15.79 15.81 15.81 15.82 15.84 15.85 15.90 15.92 15.93 15.94 RTS/CTS 15.96 15.98 15.99 -15-1- - - . . - . -  , -  . : - , - , . , . , - . - , - , . - , RS-232. , , . RTS/CTS.   UNIX - , , , - , , - .  . , . - lp(C) " ID". , , , . - . lp - . -15-2- : - , - , - ( ) , , - , - , , - , - , - , - . , : device lp. () ,, , . printer , () . 14 . - . class  . - () , , destination . () . - . -15-3-   , UNIX. - ( ), , UNIX, "" sysadmsh. , : 1. , . 2.  : RS-232 - . XON/XOFF DTR . , nn: 2disable /dev/ttynn <>. logins , , . 3.  : Centronics. - 7 lp1 . 7, - lp0. , - - - . 5, - lp2. , - . ( - ). 4. , . : -15-3-  : date > /dev/ttynn nn - ( /dev/tty1a). -15-4-  : date > /dev/lpn n - ( /dev/lp0). 5. , - , :  : - , , . - DOS - - ; - - ; - . - . , - , : parallel 0x378-0x37A 07 - unit=0 () ()  : - , , : /dev/tty1a,  /dev/tty1A. ( - - serial(HW). - 2, 3 7. - - ; - . - , , ; - - 1 2, - . 6. , sysadmsh. UNIX ( /dev/tty1a) , . - -15-5- UNIX. " " . 7. "" sysadmsh - , . - , <ESC> . sysadmsh - :  Printers --> Configure --> Add 8. ( ): +--------------------------------------------------------------+ | create | | Enter... | | | | /usr/auth 9 mar 89 17:20  | | | | +-----------