home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d6xx / d619 / afaxdemo.lha / AFaxDemo / AFaxDemo.lha / docs / getty_doc < prev    next >
Text File  |  1992-02-16  |  9KB  |  266 lines

  1. Additional Features added to AmigaUUCP1.15D Getty for AmigaFax
  2. ==============================================================
  3.  
  4. Additional command line parameter added.
  5.  
  6. -Fn          n=bit-mapped register
  7.                              
  8.  bit                                                          
  9.   0  =  1   (always set for Fax)                              
  10.  
  11.   1  =  0   Set rate to 19200 after +FCO                      
  12.      =  1   Don't set rate to 19200 after +FCO, DCE/DTE locked
  13.  
  14.   2  =  0   Dont Open/Close serial on modem-init              
  15.      =  1   Open/Close serial on modem-init
  16.  
  17. So for example, if you want to operate in Fax-Compatible mode, with
  18. your modem having a locked DCE/DTE rate, and you want to Close/Open
  19. the serial device between calls (for some reason this helps a lot when
  20. using the ZyXEL modem, and the A2232 multi-port serial card), you
  21. would add the parameter -F6 when starting Getty.
  22.  
  23. ==========================================================================
  24.  This is the Getty documentation from the AmigaUUCP1.15D distribution
  25. ==========================================================================
  26. NAME
  27.     Getty
  28.  
  29. SYNOPSIS
  30.     Getty -Sserialname -Uunit -Bbaud -Bbaud.. -Mc -bn -ln
  31.           -m1 -r0 -h0 -c0 -d0 -xn -A -7 -0 [modem-cmds]
  32.  
  33. FLASH!
  34.     Getty now works with multi-serial ports.  The 1.08 and 1.09
  35.     getty were broken due to bugs in the serial.device ... the 1.10
  36.     Getty now fixes this by introducing file locking constructs to
  37.     lock the serial port instead of intercepting the device vectors.
  38.  
  39.     IN ORDER TO BEHAVE WELL WITH GETTY, YOU MUST USE THE LockSerial
  40.     command to run any external programs that use that particular
  41.     serial port.  You can no longer run terminal programs direct
  42.     because they are no longer locked out by getty if getty is
  43.     accepting a call.
  44.  
  45.     HOWEVER, programs run *FROM* a password entry should NOT use
  46.     LockSerial becaues the port has already been locked by getty
  47.     for the program.
  48.  
  49. DESCRIPTION
  50.     Getty hangs on the specified serial port (serial.device unit 0 by
  51.     default) waiting for connections via the connected modem.  Once
  52.     a connection is accepted Getty adjusts to the proper baud rate
  53.     using the CONNECT message, -B, -A options, then provides a
  54.     Login: request to the caller.
  55.  
  56.     NOTE: A CONNECT message from the modem with no baud rate specified
  57.     will cause Getty to use the first baud rate in the -B list.  If
  58.     the -A option is specified, Getty *always* uses the first baud
  59.     rate in the -B list and never switches to any other baud rate.
  60.  
  61.     Getty disconnects any caller who cannot provide a legal Login and
  62.     Password within 60 seconds.  It also allows only 5 login attempts
  63.     before disconnecting, and any illegal password will result in a
  64.     4 second delay before the next Login: prompt is output.
  65.  
  66.     Upon receiving a legal Login and and Password, verified via
  67.     GETTY:PASSWD, Getty will execute the program specified in
  68.     GETTY:PASSWD, usually UUCICO, and stay off the line until
  69.     UUCICO returns.  When UUCICO returns, Getty will disconnect
  70.     the caller and reset the modem, returning to its original state.
  71.  
  72.     The file GETTY:Getty-Header contains a couple lines of text
  73.     that are sent over the serial port before the Login: request.
  74.     In it you normally have your machine type, name, etc...
  75.  
  76.     Getty runs the specified program in the password entry adding
  77.     the following arguments:
  78.  
  79.         -Getty -DEVICE devicename -UNIT unitnumber
  80.  
  81.     (uucico will recognize said arguments and not attempt to
  82.      initialize / waitfor calls / hangup the modem itself, nor
  83.      will uucico attempt to lock the already locked serial port)
  84.  
  85. TECH NOTES
  86.     In order to monitor the request lock for the serial port (see
  87.     UUMAN:LockSerial and src/util/lockserial.c), GETTY must open
  88.     a file in T: for write and then close it every 3 seconds.  Thus,
  89.     T: should be in your RAM disk.
  90.  
  91. OPTIONS
  92.     Options are given on the command line when you run Getty.  You can
  93.     also UPDATE a currently running Getty's options by running Getty
  94.     for the same device and unit again with the options that need to
  95.     be changed.  Getty will detect whether another getty is already
  96.     running on that port and send the new options to the running getty,
  97.     then return.
  98.  
  99.  
  100.     -Sserialname        Specify serial device, default "serial.device"
  101.  
  102.     -Uunit            Specify unit number, default 0
  103.  
  104.     -Bbaud            Specify up to 32 baud rates
  105.  
  106.     -A            Specify modem will adjust to a single baud
  107.                 rate (locks the serial.device at the first
  108.                 baud rate in the -B list)
  109.  
  110.     -7            Use SERF_7WIRE protocol while online,
  111.                 else uses no protocol while online.  If
  112.                 you are using a modem with speed conversion
  113.                 you need this option or you will most likely
  114.                 overflow the modem's buffer!
  115.  
  116.     -Mc            Select Modem type,
  117.  
  118.                 c = m   Multimodem
  119.                 h   Hays
  120.                 d   Dumb  (no AT or +++ commands are
  121.                        sent to the modem ever).
  122.  
  123.     -mn            Set modem speaker level, default 0.
  124.                 (ATMn command)
  125.  
  126.     -rn            Set modem to answer on the Nth ring
  127.                 (modem must support ATMn).  0 disables
  128.                 answer capability.    The default is to
  129.                 answer on the second ring.
  130.  
  131.     -h0            Ignore CD (carrier detect).  If this option
  132.                 is specified a continuous carrier detect is
  133.                 assumed, causing Getty to request Login:'s
  134.                 over the line as soon as it receives a CONNECT
  135.                 message.
  136.  
  137.                 It is suggested you ONLY use this option
  138.                 when combined with -c0
  139.  
  140.     -c0            Do NOT look for a CONNECT message from the
  141.                 modem... useful for dumb modems.
  142.  
  143.     -d0            Normally Getty will disconnect by dropping
  144.                 DTR.  If this option is specified, Getty will
  145.                 use the less reliable +++ ATH0 sequence.
  146.  
  147.                 NOTE: If your modem has the capability to LOCK
  148.                 the COMPUTER'S SERIAL PORT baud rate, it is
  149.                 *strongly* suggested that you do this for +++
  150.                 to be reliable.
  151.  
  152.     -xn            Set debugging level to n.  If specified
  153.                 debugging messages are sent to stdout instead
  154.                 of GETTY:LOGFILE
  155.  
  156.                 Note: to avoid GETTY:LOGFILE getting too
  157.                 large for busy systems, you can always add
  158.                 an entry to your crontab to delete it once
  159.                 a week (or whenever), or use 'trimfile' to
  160.                 trim it.
  161.  
  162.     -l1            add -HLINK option to commands started by
  163.                 Getty.
  164.  
  165.     -b1            add -BAUD <baud> option to commands started by
  166.                 Getty, this informs the run command what the
  167.                 actual connect baud rate is regardless of the
  168.                 serial port communications baud rate (which is
  169.                 already preset by getty for the application)
  170.  
  171.     -0            Kill any already-running Getty for this
  172.                 serial port and unit.
  173.  
  174.     modem-cmds        You may specify up to 16 specific commands
  175.                 to be sent to the modem whenever it is
  176.                 initialized (usually after a disconnect
  177.                 and on startup).  Each command will be
  178.                 sent to the modem with a CR on the end and
  179.                 a seconds delay afterwords.  Example:
  180.  
  181.                 ATS2=.
  182.  
  183.                 This is useful for provided specialized
  184.                 modems with the appropriate initialization
  185.                 strings.
  186.  
  187. EXAMPLE
  188.     ;   Run a Getty for a MultiModem
  189.  
  190.     run >nil: <nil: Getty -Mm -A -B19200
  191.  
  192.     ;   Run a Getty for a Hays Modem
  193.  
  194.     run >nil: <nil: Getty -Mh -B1200 -B2400
  195.  
  196.     ;   Run a Getty for a Hays Modem and use +++ instead of DTR to
  197.     ;   hangup.  NOTE, when using -d0 you should lock the serial port
  198.     ;   baud rate (if possible) or +++ may be unreliable as a hangup
  199.     ;   method.
  200.  
  201.     run >nil: <nil: Getty -Mh -B2400 -d0
  202.  
  203.     ;   Modify options to a Getty already running in the background
  204.  
  205.     Getty -m1        ; Set speaker on during dialing
  206.     Getty -m0        ; speaker off at all times.
  207.     Getty -0        ; kill background Getty
  208.  
  209. EXAMPLE CRONTAB ENTRIES
  210.     Assuming a getty has been run in the background from your
  211.     startup sequence, the most common desire is to disable the
  212.     modem speaker while you are asleep, and enable it at other
  213.     times.    The following crontab entry will accomplish this:
  214.  
  215. 0    23    *    *    *    getty -m0
  216. 0    11    *    *    *    getty -m1
  217.  
  218.     You can also kill (getty -0) or restart getty from your
  219.     crontab, though the prefered method is to leave it running
  220.     and only disable/enable the autoanswer (-r option) for those
  221.     times you wish your modem to not accept calls.
  222.  
  223. EXAMPLE HARDWIRED ENTRY
  224.     Lets say you have two amigas connected together via a permanent
  225.     serial line.  To run AmigaUUCP between them you want to run Getty
  226.     on one of them (NOT BOTH!).  On machine A you would run Getty
  227.     as follows:
  228.  
  229.     (Machine A):
  230.  
  231.         run >nil: <nil: Getty -B9600 -Md -h0 -c0
  232.  
  233.     The Passwd entry for the remote machine would be something like:
  234.     (Machine A)
  235.  
  236.         machb,uupc,203,0,(UUCP-NOPAS),ram:,uucico -h0 -o
  237.  
  238.     Machine B would have an L.sys entry that looks like:
  239.  
  240.         macha Any SER: 9600 "" "" \r\r\c ogin: machb sword: uupc
  241.  
  242.     In the above configuration, with Getty running on Machine A, Machine
  243.     B would run uucico (usually every X minutes from dcron) using:
  244.  
  245.         1> uucico -smacha -h0 -o -xx
  246.  
  247.     UNFORTUNATELY, with a permanent serial line you cannot run Getty
  248.     on BOTH machines.  This will cause one Getty to echo the other's
  249.     login message and vise versa, causing an infinite loop.  So only
  250.     one machine can poll.
  251.  
  252. FILES/REQUIRES
  253.     GETTY:PASSWD
  254.     GETTY:Getty-Header
  255.     GETTY:LOGFILE
  256.  
  257.     The NULL: handler must be mounted
  258.     The UUSER: handler must be mounted if Passwd file contains
  259.         *'d executable entries (don't confuse *'d executables
  260.         with using '*' for the password field).
  261.  
  262. REFERENCES
  263.     Getty
  264.     Passwd
  265.  
  266.