home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / uucp / duucp-1.17 / AU-117b4-man.lha / man / L.Sys < prev    next >
Encoding:
Text File  |  1993-12-29  |  5.8 KB  |  144 lines

  1. NAME
  2.  
  3.     UULib:L.Sys
  4.  
  5. DESCRIPTION
  6.  
  7.     The L.Sys file is used by UUCico and sendmail (that is, Mail
  8.     and DMail) to get information about one or more UUCP nodes
  9.     that you can call.
  10.  
  11.     An example L.Sys entry:
  12.  
  13.     ------------------------------- (this line not part of the file)
  14.  
  15. #   This is a comment.
  16.  
  17. A500 Any SER: 9600 5551344 ogin: uover sword: qwee\r
  18. cae780 Any SER: 2400 5555667 ogin: Udillon sword: xarbge\r
  19. spooge Any SER: 2400 5551234 ogin: uucp sword: gugg\r
  20. sorinc Any SER: 2400 ATM1&E0DT5551111 ogin: uover sword: bleg\r
  21. #this is commented out.
  22. #postgres Any SER: 9600 5556783 ogin: dillon sword: foobarb\r
  23.  
  24.     ------------------------------- (this line not part of the file)
  25.  
  26.     The first field is the name of the machine in question.
  27.     CASE IS IMPORTANT.    Most machines use all lower-case names.
  28.  
  29.     The second field (Any in the examples above) may have no spaces:
  30.  
  31.         Any         the system can be called at any time
  32.  
  33.         Never        the system can never be calleod
  34.  
  35.         hh:mm-hh:mm     any day in the hour range indicated (24hr time)
  36.  
  37.         MoTuWeThFrSaSuhh:mm-hh:mm
  38.                 On the days indicated in the hour range indicated.
  39.  
  40.         <timespec>,<timespec>
  41.         MoTuWeThFr02:00-03:00,SaSu00:00-23:59
  42.                 On the days indicated in the hour range indicated,
  43.                 time specs separated by commas.
  44.  
  45.  
  46.     The third field is currently not used by AmigaUUCP but should
  47.     remain SER: for future compatibility.  The SER: device is not
  48.     actually used by UUCICO.
  49.  
  50.     The fourth field is the call-out baud rate.  Call-in baud rates
  51.     (that is, receiving a call) are determined by Getty and/or the
  52.     modem if it is a smart modem.
  53.  
  54.     The fifth field is the phone number to call to reach the machine
  55.     in question.  Two forms are allowed for the phone number:
  56.  
  57.     Form1:        5551234
  58.  
  59.     Form2:        AT<commands>D[T/P]5551234
  60.  
  61.     If just the number is given uucico will automatically prepend ATDT.  If
  62.     the phone number starts with AT then UUCICO will send the string
  63.     verbatim.  Normally the second form is used to turn on special
  64.     modes of a smart modem for specific sites.    WARNING, to properly
  65.     turn off any modes you turn on in this manner it is suggested you
  66.     add appropriate AT commands to the GETTY command line when you start up
  67.     your GETTY (that GETTY runs whenever it resets the modem).    Also,
  68.     note that if UUCICO calls up several systems in one gulp the
  69.     special modem options you might specify in Form2 will not be
  70.     turned off unless you use Form 2 for all dial strings, like this:
  71.  
  72.     cae780 Any SER: 2400 AT&E1DT5555667 ogin: Udillon sword: xarbge\r
  73.     spooge Any SER: 2400 AT&E0DT5551234 ogin: uucp sword: gugg\r
  74.  
  75.     Remaining fields are expect-send strings.  Once uucico dials out and
  76.     reaches the machine in question, it must login into that machine
  77.     using the proper login and password.  To do this you specify a
  78.     series of strings alternating between a string to expect from the
  79.     remote machine, and a string to send when the preceding string is
  80.     found.  The fields are always in the order expect send expect
  81.     send expect send expect ...until the end of the line.  The expect
  82.     field may be "" (two quote characters) to indicate we expect nothing
  83.     and should immediately move to the next (send) field.
  84.  
  85.     The example below may be read as follows.  Wait for 'ogin:' to be
  86.     sent.  When it is, send the user name 'uugenly'.  When the remote
  87.     machine asks for a password by sending 'sword:', send the password
  88.     'garbage9'.
  89.  
  90.            ogin: uugenly sword: garbage9
  91.  
  92.     If an expect string is not found in fifteen seconds, the connection
  93.     fails and uucico will hang up.  It is possible to specify an
  94.     alternate send expect sequence to use in the event of a timeout.
  95.     Simply follow the expect string by pairs of send expect strings all
  96.     seperated by '-'s.  No spaces are permitted in this extended expect
  97.     string.  Each time a timeout occurs, the next string in this
  98.     sequence will be sent, and then the string following that will be
  99.     expected.  Successive pairs of strings will be sent and expected
  100.     until either the total expect string has been used up, in which case
  101.     uucico will hang up, or if an expected string is received from the
  102.     remote machine, then the extended expect string will be skipped, and
  103.     the following send field will be sent.  This feature is very useful
  104.     if the remote site answers using the wrong baud rate and you must
  105.     send a break to force it to use another.
  106.  
  107.     The example below may be read as follows:  Wait for the login
  108.     message by looking for 'ogin:'.  If it doesn't come, then send a
  109.     break (\c\b), and wait for 'ogin:' again.  If it doesn't come, send
  110.     a break again and wait for 'ogin:'.  If 'ogin:' does not arrive this
  111.     time, hang up.  If 'ogin:' were to arrive at any of these expected
  112.     times, then the extended expect string would be skipped and the next
  113.     send string would send the user name 'uugenly'.  The rest is as
  114.     before.
  115.  
  116.     ogin:-\c\b-ogin:-\c\b-ogin: uugenly sword: garbage9
  117.  
  118.  
  119.     Special character sequences within a send field are recognized:
  120.  
  121.     \b        send break.
  122.     \r        write a carriage return
  123.     \n        write a line feed
  124.     \\        a backslash
  125.     \t        a tab character
  126.     \d        a 2 second delay occurs before further processing takes place
  127.     \s        a space
  128.     \c        Normally the send field is automatically terminated with
  129.         a CR.  This DISABLES that.
  130.  
  131.     As you will note by the above example, we usually do not have the
  132.     first character of an expected string.  This is because the
  133.     expect-send fields are case sensitive and some machines say
  134.     'login:' while others say 'Login:'... so we wait for 'ogin:'.
  135.  
  136.     Refer to GETTY:Passwd (Man Passwd) on how to set up a login name
  137.     and password for incomming calls.
  138.  
  139. REFERENCES
  140.  
  141.     UUMan:Passwd
  142.     UUMan:UUCico
  143.     UUMan:Getty
  144.