home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 646a.lha / Remote / remote.doc.pp / remote.doc
Text File  |  1992-06-25  |  8KB  |  191 lines

  1.  
  2.         REMOTE AUX: Support         Steve Drew 
  3.         -------------------
  4.  
  5.         Here are  some  utilities  I  wrote  to enchance and support,
  6.         remote AUX:   logins.    Including  Zmodem transfers, editing
  7.         files, and my enchanced AUX:  handler. When combined with Getty
  8.         (from UUCP package by Matt Dillon) and csh a nice aux: enviroment
  9.         is only a phone call away.
  10.         
  11.         
  12.   I     Files included
  13.         ~~~~~~~~~~~~~~
  14.  
  15.         Remote-Startup
  16.                 
  17.                 Mounts  sd-aux-handler,  dismounts  the  cmd  one  if
  18.                 already mounted  (dismount  only  works  on  2.0)  It
  19.                 relies on the assigned name Rem:  to be the directory
  20.                 for these files.
  21.                 
  22.         guruhandler
  23.                 
  24.                 This program patches the DisplayAlert() Rom  call  to
  25.                 simulate a left mount button push, whenever  the  RED
  26.                 GURU box would normally be called.  The  result is an
  27.                 unattended  reboot, ideal for over the aux port.   So
  28.                 if  your  machine  should  happen  to  crash  for any
  29.                 reason, it  will  not wait at the Guru BOX but rather
  30.                 continue to reboot.
  31.                 
  32.                 Guruhandler does more  that  just allow the system to
  33.                 reboot it also gathers  any  information it can about
  34.                 the reason for the crash  and  saves  this in memory.
  35.                 Then  any  time  later  you  can  enter  the  command
  36.                 'guruhandler -l' to obtain the reason for the crash.
  37.  
  38.                 Heres an example of a odd address trap (code 3):
  39.  
  40.                 1> REM:Guruhandler -l
  41.  
  42.                 System Crash Information:
  43.  
  44.                 Alert Code  :  00000003 
  45.  
  46.                 Process Id  :  00234948 
  47.                 Process Type:  PROCESS
  48.                 Task Name   :  ARP Shell Process
  49.                 CLI Command :  dh0:progs/crasher
  50.  
  51.                 Total Reboots/Gurus :  4/1
  52.  
  53.                 1>
  54.                 
  55.         sd_aux_handler
  56.         mountlist.aux
  57.         
  58.                 This is version 1.2 of my aux handler an  upgrade  to
  59.                 version  1.0a  release  a  couple  of  years ago. 
  60.                 
  61.                         - Supports AZ Zmodem program (see below)
  62.                         - ^R key (retype current line)
  63.                         - Better  typeahead  handling.    Typing    a
  64.                           command while the display is  active,  does
  65.                           not stop the current output, instead  it is
  66.                           buffered  and  printed  after  the next CLI
  67.                           prompt.    (Like VMS).  To stop the current
  68.                           output just  use  standard XON, XOFF.  This
  69.                           is much better  when over the modem as with
  70.                           the 1.3 aux:   handler any line noise would
  71.                           stop the current output until  ^X  or  <CR>
  72.                           was entered.
  73.                        -  When  the  typeahead  buffer  is full  AUX:
  74.                           sends a BELL back to the user.
  75.                        -  Support to  'kill  off' a AUX:  CLI process
  76.                           via  the  'ECHO >AUX:ENDCLI'  command  from
  77.                           another CLI window.  
  78.                        -  Prevents multiple 'NEWCLI AUX:' commands.
  79.                        -  Suspends input/output on loss of carrier.
  80.  
  81.                 The  mountlist  file  needs  to be inserted into your
  82.                 DEVS:mountlist  file.     Make  sure  to  remove  the
  83.                 definition of the commodore  AUX:   handler from your
  84.                 mountlist if you are planning to use mine.
  85.                           
  86.         aux.login
  87.         
  88.                 This  is  the  login file run by the NewShell process
  89.                 that  is  started  over  the AUX:.  It sets up a  few
  90.                 aliases, and to make az easy to use, and also ensures
  91.                 cleanly exiting of shell process.
  92.  
  93.                 This  is  written  for  csh517  or  higher,  similiar
  94.                 aliases can be done with commodore shell.
  95.                                 
  96.         NOTE: If using csh517c or higher, csh -t will turn of
  97.         the requesters and reqoff is not needed.
  98.         
  99.         emacs
  100.         .emacsrc
  101.         
  102.                 This is standard Emacs  3.9  which I have modified to
  103.                 support running over the AUX:  port to any ansi style
  104.                 terminal.   (It also still works fine on  other  than
  105.                 the aux:  port) The  .emacsrc  file  redefines  a few
  106.                 keys such not using ^S for  search,  and should be in
  107.                 your current directory or C: directory.
  108.  
  109.         az
  110.                 
  111.                 A  utility  I  wrote that uses XPRZmodem.library file
  112.                 protocol.    AZ  opens shares the port with the  AUX:
  113.                 and  provides  the    interface   i/o  routines  that
  114.                 XPRZmodem requires.  This  will  not  work  with  the
  115.                 commodore 1.3 or 2.0 AUX:    handler,  since  the cbm
  116.                 AUX:    handler  does  not  support   any  method  of
  117.                 releasing the Serial port to a protocol program.  The
  118.                 aux.login  file contains aliases for az.  It  defines
  119.                 the  alias  'rz'  and  'sz' for sending and receiving
  120.                 files.    
  121.                 
  122.                 For help on  AZ's  options  type  AZ  <Return>.  This
  123.                 utility requires the XPRZmodem.library file, (version
  124.                 1.0 or version 2.0).
  125.  
  126.  
  127.         aux.newcli
  128.         auxshell-start
  129.                 These are used to  setup  sd-aux-handler to work with
  130.                 UUCP/Getty logins.  aux.newcli spawns  a  wait cmd so
  131.                 that  control  is  not returned to  getty  until  the
  132.                 newcli'd shell exits.
  133.  
  134.         
  135.                 The Getty passwd entry would look as follows:
  136.                                 
  137.            drew,pass,202,0,(Steve Drew),UUPUB:,execute rem:auxshell-start
  138.  
  139.  
  140.                                 
  141.                 
  142.    II   Installation instructions
  143.         ~~~~~~~~~~~~~~~~~~~~~~~~~
  144.  
  145.         1. Unpack all files into a directory:
  146.                 
  147.         2. Add to your startup-sequence (user-startup)
  148.         
  149.            Assign Rem: dev:directory
  150.            
  151.            Execute Rem:Remote-Startup
  152.            
  153.         3. Add the line to your passwd file as noted above if you wish
  154.            to be able to login under Getty. (Getty is avail with UUCP
  155.            package by Matt Dillon).        
  156.         
  157.  
  158.   III  Notes
  159.        ~~~~~
  160.   
  161.       - REMOTELY Stopping an AUX: Process
  162.         
  163.         Once a CLI is  running  on  the  AUX:  port, you can remotely
  164.         cause the CLI to 'ENDCLI' by issuing the following command:
  165.         ECHO >AUX:ENDCLI , from another CLI window.
  166.         
  167.         The  sd-aux-handler  detects  a  file    open    request  for
  168.         'AUX:ENDCLI' and imediatley causes an ENDCLI  command  to  be
  169.         sent to the current reader of the  AUX:  device.  Note:  This
  170.         does not work with the 1.3 AUX:   handler,  and will not work
  171.         if  the  CLI  running  on the AUX:  is  currently  running  a
  172.         program, ie not at the cli or shell prompt.
  173.  
  174.  
  175.     --------------------------------------------------------------------
  176.  
  177.         Author:
  178.         
  179.         Steve Drew
  180.         216 MacEwan Valley Mews N.W.
  181.         Calgary, Alberta 
  182.         Canada.
  183.         T3K 3T3
  184.         
  185.         403-295-3601 (Home)
  186.         403-295-4357 (Work)
  187.         
  188.         drew@cgou11.enet.dec.com           
  189.  
  190.     ----------------------------------------------------------------------                                
  191.