home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / uucp / wUUCP_0.0.29.lha / man / L.Sys.doc < prev    next >
Encoding:
Text File  |  1994-06-12  |  5.9 KB  |  143 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, rmail
  8.     and sendmail) 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 specifies the ACU to use, refer to L.ports.doc
  47.     for further information.
  48.  
  49.     The fourth field is the call-out baud rate.  Call-in baud rates
  50.     (that is, receiving a call) are determined by Getty and/or the
  51.     modem if it is a smart modem.
  52.  
  53.     The fifth field is the phone number to call to reach the machine
  54.     in question.  Two forms are allowed for the phone number:
  55.  
  56.         Form1:      5551234
  57.  
  58.         Form2:      AT<commands>D[T/P]5551234
  59.  
  60.     If just the number is given uucico will automatically prepend ATDT.  If
  61.     the phone number starts with AT then UUCICO will send the string
  62.     verbatim.  Normally the second form is used to turn on special
  63.     modes of a smart modem for specific sites.  WARNING, to properly
  64.     turn off any modes you turn on in this manner it is suggested you
  65.     add appropriate AT commands to the GETTY command line when you start up
  66.     your GETTY (that GETTY runs whenever it resets the modem).  Also,
  67.     note that if UUCICO calls up several systems in one gulp the
  68.     special modem options you might specify in Form2 will not be
  69.     turned off unless you use Form 2 for all dial strings, like this:
  70.  
  71.         cae780 Any SER: 2400 AT&E1DT5555667 ogin: Udillon sword: xarbge\r
  72.         spooge Any SER: 2400 AT&E0DT5551234 ogin: uucp sword: gugg\r
  73.  
  74.     Remaining fields are expect-send strings.  Once uucico dials out and
  75.     reaches the machine in question, it must login into that machine
  76.     using the proper login and password.  To do this you specify a
  77.     series of strings alternating between a string to expect from the
  78.     remote machine, and a string to send when the preceding string is
  79.     found.  The fields are always in the order expect send expect
  80.     send expect send expect ...until the end of the line.  The expect
  81.     field may be "" (two quote characters) to indicate we expect nothing
  82.     and should immediately move to the next (send) field.
  83.  
  84.     The example below may be read as follows.  Wait for 'ogin:' to be
  85.     sent.  When it is, send the user name 'uugenly'.  When the remote
  86.     machine asks for a password by sending 'sword:', send the password
  87.     'garbage9'.
  88.  
  89.                ogin: uugenly sword: garbage9
  90.  
  91.     If an expect string is not found in fifteen seconds, the connection
  92.     fails and uucico will hang up.  It is possible to specify an
  93.     alternate send expect sequence to use in the event of a timeout.
  94.     Simply follow the expect string by pairs of send expect strings all
  95.     seperated by '-'s.  No spaces are permitted in this extended expect
  96.     string.  Each time a timeout occurs, the next string in this
  97.     sequence will be sent, and then the string following that will be
  98.     expected.  Successive pairs of strings will be sent and expected
  99.     until either the total expect string has been used up, in which case
  100.     uucico will hang up, or if an expected string is received from the
  101.     remote machine, then the extended expect string will be skipped, and
  102.     the following send field will be sent.  This feature is very useful
  103.     if the remote site answers using the wrong baud rate and you must
  104.     send a break to force it to use another.
  105.  
  106.     The example below may be read as follows:  Wait for the login
  107.     message by looking for 'ogin:'.  If it doesn't come, then send a
  108.     break (\c\b), and wait for 'ogin:' again.  If it doesn't come, send
  109.     a break again and wait for 'ogin:'.  If 'ogin:' does not arrive this
  110.     time, hang up.  If 'ogin:' were to arrive at any of these expected
  111.     times, then the extended expect string would be skipped and the next
  112.     send string would send the user name 'uugenly'.  The rest is as
  113.     before.
  114.  
  115.         ogin:-\c\b-ogin:-\c\b-ogin: uugenly sword: garbage9
  116.  
  117.  
  118.     Special character sequences within a send field are recognized:
  119.  
  120.     \b      send break.
  121.     \r      write a carriage return
  122.     \n      write a line feed
  123.     \\      a backslash
  124.     \t      a tab character
  125.     \d      a 2 second delay occurs before further processing takes place
  126.     \s      a space
  127.     \c      Normally the send field is automatically terminated with
  128.             a CR.  This DISABLES that.
  129.  
  130.     As you will note by the above example, we usually do not have the
  131.     first character of an expected string.  This is because the
  132.     expect-send fields are case sensitive and some machines say
  133.     'login:' while others say 'Login:'... so we wait for 'ogin:'.
  134.  
  135.     Refer to UULIB:passwd (man passwd) on how to set up a login name
  136.     and password for incomming calls.
  137.  
  138. REFERENCES
  139.  
  140.     UUMan:passwd.doc
  141.     UUMan:uucico.man
  142.     UUMan:getty.man
  143.