Wątki

[ Pobierz całość w formacie PDF ]
.The latter will be described later in this chapter in the section "AnonymousUUCP."How to Tell UUCP About Other Systems Using the sys FileThe sys file describes the systems that your machine knows about.An entry is introduced by the system key-word; the subsequent lines up to the next system directive detail the parameters specific to that site.Commonly, asystem entry defines parameters such as the telephone number and login chat. 219Parameters before the very first system line set default values used for all systems.Usually, you set protocolparameters and the like in the defaults section.The most prominent fields are discussed in detail in the following sections.System nameThe system command names the remote system.You must specify the correct name of the remote system, not analias you invented, because uucico will check it against what the remote system says it is called when you logon.94Each system name can appear only once.If you want to use several sets of configurations for the same system(such as different telephone numbers uucico should try in turn), you can specify alternates, which we'll de-scribe after the basic configuration options.Telephone numberIf the remote system is to be reached over a telephone line, the phone field specifies the number the modemshould dial.It may contain several tokens interpreted by uucico's dialing procedure.An equal sign (=) meanswait for a secondary dial tone, and a dash (-) generates a one-second pause.Some telephone installations chokewhen you don't pause between dialing a special access code and the telephone number.95It is often convenient to use names instead of numbers to describe area dialing codes.The dialcode file allowsyou to associate a name with a code that you may subsequently use when specifying telephone numbers for re-mote hosts.Suppose you have the following dialcode file:# /usr/lib/uucp/dialcode - dialcode translationBogoham 024881Coxton 035119With these translations, you can use a phone number such as Bogoham7732 in the sys file, which will probablymake things a little more legible and a whole lot easier to update should the dialing code for Bogoham everchange.port and speedThe port and speed options are used to select the device used for calling the remote system and the maximumspeed to which the device should be set.96 A system entry may use either option alone or both options in conjunc-tion.When looking up a suitable device in the port file, only ports that have a matching port name and/or speedrange are selected.Generally, using the speed option only should suffice.If you have only one serial device defined in port,uucico always picks the right one anyway, so you only have to give it the desired speed.If you have severalmodems attached to your systems, you still often don't want to name a particular port, because if uucico findsthat there are several matches, it tries each device in turn until it finds an unused one.The login chatWe already encountered the login chat script, which tells uucico how to log in to the remote system.It consistsof a list of tokens specifying strings expected and sent by the local uucico process.uucico waits until theremote machine sends a login prompt, then returns the login name, waits for the remote system to send the pass-word prompt, and sends the password.Expect and send strings appear in alternation in the script.uucicoautomatically appends a carriage return character (\r) to any send string.Thus, a simple chat script would looklike:ogin: vstout ssword: catch22You will probably notice that the expect fields don't contain the whole prompts.This ensures that the login suc-ceeds, even if the remote system transmits Login: instead of login:.If the string you are expecting or send-ing contains spaces or other white-space characters, you must use quotes to surround the text.94Older Version 2 UUCPs don't broadcast their name when being called; however, newer implementations often do, and so does TaylorUUCP.95For instance, most companies' private installations require you to dial a 0 or 9 to get a line to the outside.96The bit rate of the tty must be at least as high as the maximum transfer speed. 220uucico also allows for some sort of conditional execution.Let's say the remote machine's getty needs to bereset before sending a prompt [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • mikr.xlx.pl
  • Powered by MyScript