1*48632Sbostic# This file contains the majority of the information used to call 2*48632Sbostic# the destination system. It should not be readable to the world, as 3*48632Sbostic# there are logins and passwords stored here 4*48632Sbostic# 5*48632Sbostic# A line beginning with a # is a comment 6*48632Sbostic# If the last character of a line is \ 7*48632Sbostic# the next line is considered to be a continuation of the first. 8*48632Sbostic# 9*48632Sbostic# If the time is suffixed with ";N", then N is used as the retry time 10*48632Sbostic# insterad of the default. E.g. Any;1 or Evening;60 11*48632Sbostic# 12*48632Sbostic# If the time is suffixed with "/X", then only files of grade X or 13*48632Sbostic# lower will be sent during this time period. 14*48632Sbostic# Multiple grades may be used in conjunction with the ",". E.g. 15*48632Sbostic# Any/C,Evening/a,Night 16*48632Sbostic# which send grades C and lower anytime, grades a and lower in the Evening 17*48632Sbostic# and everything at Night 18*48632Sbostic# 19*48632Sbostic# The time may be any of the following: 20*48632Sbostic# Any Anytime 21*48632Sbostic# Evening When Evening rates are in effect 22*48632Sbostic# NonPeak Tymnet/Telenets non-peak rates 23*48632Sbostic# Night When Nighttime Phone rates are in effect 24*48632Sbostic# Wk Any Week Day 25*48632Sbostic# Mo Mondays 26*48632Sbostic# Tu Tuesdays 27*48632Sbostic# We Wednesdays 28*48632Sbostic# Th Thursdays 29*48632Sbostic# Fr Fridays 30*48632Sbostic# Sa Saturdays 31*48632Sbostic# Su Sundays 32*48632Sbostic# These time may be suffixed with a time range nnnn-mmmm in thge 24 hour clock 33*48632Sbostic# E.g. 34*48632Sbostic# Evening = Wk1700-0800,Sa,Su 35*48632Sbostic# NonPeak = Wk1800-0700,Sa,Su 36*48632Sbostic# Night = Any2300-0800,Sa,Su0800-1700 37*48632Sbostic# Wk = Mo,Tu,We,Th,Fr 38*48632Sbostic# 39*48632Sbostic# If the expect part of the expect/send sequence is suffixed with a ~number, 40*48632Sbostic# then that number will be used for the timeout instead of the default 41*48632Sbostic# MAXMSGTIME, which is delivered as 45 seconds. 42*48632Sbostic# E.g. ogin~10-\r-ogin~15-\b-ogin 43*48632Sbostic# will look for ogin for 10 seconds and if it doesn't find it, send a CR 44*48632Sbostic# then look for ogin for 15 seconds and if it doesn't fint it send a break 45*48632Sbostic# then look for ogin for MAXMSTIME seconds then exit 46*48632Sbostic# 47*48632Sbostic# 48*48632Sbostic# Example L.sys file 49*48632Sbostic# 50*48632Sbostic# The following entry indicates that system 'mcnc' can be called any time, 51*48632Sbostic# and is accessible over a hard-wired tty line (tty01) at 4800 baud. 52*48632Sbostic# The login sequence is: 53*48632Sbostic# "" expect nothing (sort of a kludge) 54*48632Sbostic# "" send carriage return 55*48632Sbostic# ogin:--ogin: look for 'login:', if not received send carriage return 56*48632Sbostic# and look again. 57*48632Sbostic# Urti login as Urti 58*48632Sbostic# ssword: look for Password: 59*48632Sbostic# fatchance supply the password. 60*48632Sbostic# 61*48632Sbosticmcnc Any DIR 4800 tty01 "" "" ogin:--ogin:--ogin: Urti ssword: fatchance 62*48632Sbostic# 63*48632Sbostic# The following entry shows that the machine 'rti-sel' can be called any time 64*48632Sbostic# via /dev/tty02 at 300 baud. The send-expect sequence is complex 65*48632Sbostic# because it is operating a Racal-Vadic auto-dialer. An easier method would 66*48632Sbostic# be to use the code supplied for a Vadic auto-dialer. See the Notes.L.sys 67*48632Sbostic# and L-devices files. 68*48632Sbostic# This is an unusual use of send-expect, but shows its capabilities. 69*48632Sbostic# "" expect nothing 70*48632Sbostic# \05 send ^E return (activate auto-dialer) 71*48632Sbostic# *~2-\05-*~2 look for *, wait 2 seconds, if no such reactivate 72*48632Sbostic# dialer, and look again for 2 seconds 73*48632Sbostic# d send 'd' to enter a phone number 74*48632Sbostic# NUMBER?~3-d... look for prompt from auto-dialer 75*48632Sbostic# 7654321\r\d send number, then return, then pause, then return 76*48632Sbostic# LINE wait for modem to say 'ON LINE' 77*48632Sbostic# \r\d\r send return, pause, then send return again 78*48632Sbostic# ogin:-\b-... look for login, if not found send a 'break' 79*48632Sbostic# look again, if still not found send another 'break' 80*48632Sbostic# and look one more time before giving up. 81*48632Sbostic# 82*48632Sbosticrti-sel Any ttyh3 300 ttyh3 "" \05 *~2-\05~2-* d NUMBER?~3-d-NUMBER?~3 7654321\r\d LINE \r\d\r ogin:-\b-ogin:-\b-ogin: Urti ssword: fatchance 83*48632Sbostic# 84*48632Sbostic# The next entry is for a normal ACU. uucp normally handles only a DN11. 85*48632Sbostic# However, the 'condevs.c' routine can be modified to handle any kind 86*48632Sbostic# of auto-dialer desired. (This is, however, an awful part of uucp.) 87*48632Sbostic# Calls can be placed any day but only between 11pm and 8am. 88*48632Sbostic# The connection is 300 baud. 89*48632Sbostic# 90*48632Sbosticrti-sel Any2300-0800 ACU 300 13057654321 ogin:--ogin: Urti ssword: fatchance 91*48632Sbostic# 92*48632Sbostic# The next entry is for a 4.2BSD TCP-IP connection. 93*48632Sbostic# There must be a #define BSDTCP in uucp.h, and you must install 94*48632Sbostic# a 'uucpd' uucico server daemon in /etc. 95*48632Sbostic# Also, add an entry to /etc/services, such as: 96*48632Sbostic# uucp 540/tcp uucpd 97*48632Sbostic# The '540' is the port number chosen for uucpd. 98*48632Sbostic 99*48632Sbostic# The fields are: remote uucpname, time-to-call, TCP, portnumber, networkname. 100*48632Sbostic# Sane installations will have identical uucp and networknames. However, 101*48632Sbostic# arpanet machines will probably have to add their domain. Make sure that 102*48632Sbostic# the network name (in this case seismo.CSS.GOV) is the entry returned for 103*48632Sbostic# the sites hostname by gethostbyaddr(). An alias will not (always) work. 104*48632Sbostic# This is mandatory if you are running the domain name server. 105*48632Sbostic# 106*48632Sbosticseismo Any TCP uucp seismo.CSS.GOV ogin: uucplogin ssword: uucppassword 107*48632Sbostic# 108*48632Sbostic# If ncsu cannot be raised by the method above, use the ACU. 109*48632Sbostic# uucico tries each entry for ncsu in turn, until one of them connects. 110*48632Sbostic# Calls on the ACU are only permitted when phone rates are cheap. 111*48632Sbostic# Send grade Z or lower in the evening and if you fail retry as 112*48632Sbostic# fast as 1 minute. send everything else at night. 113*48632Sbostic# 114*48632Sbosticncsu Evening/Z;1,Night ACU unused 987-6543 ogin:--ogin: Urti ssword: fatchance 115*48632Sbostic# 116*48632Sbostic# Connect to ihnp4 using PC Pursuit 117*48632Sbostic# 118*48632Sbostic# chicago is the PCPursuit City name. 119*48632Sbostic# 6907171 is the phone number for ihnp4 120*48632Sbostic# 121*48632Sbosticihnp4 NonPeak PCP chicago 6907171 "" \d@ ogin:~5-BREAK-ogin:~5-\r-ogin: UULOGIN ssword: PASWORD 122