home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / cu / cunix.doc < prev    next >
Text File  |  2020-01-01  |  5KB  |  127 lines

  1. FILE CUNIX.SCR
  2.  
  3.  
  4.      AUTOMATIC LOGIN TO ACADEMIC UNIX SYSTEMS FROM MS-DOS KERMIT
  5.  
  6.                  Christine M. Gianone
  7.         Manager, Kermit Developement and Distribution
  8.                   CUCCA/AcIS
  9.                  October 1991
  10.  
  11.  
  12. CUNIX.SCR is a script program for logging in to an instructional SUN computer,
  13. such as CUNIXA or CUNIXB, using MS-DOS Kermit from a campus Rolmphone, either
  14. a D-type data phone or a 244PC.
  15.  
  16. Although you can run this script program from within Kermit by typing the
  17. command "TAKE CUNIX.SCR", it is intended to be run from DOS command level
  18. via DOS Batch programs that can feed it certain information to customize its
  19. actions.  Several of these Batch programs are provided:
  20.  
  21.   CUNIXA.BAT     - Connects you to CUNIXA, gets you to the prompt.
  22.   CUNIXB.BAT     - Connects you to CUNIXB, gets you to the prompt.
  23.   CUNIXD.BAT     - Connects you to CUNIXD, gets you to the prompt.
  24.  
  25. To use these batch files, and CUNIX.SCR itself, you must be running MS-DOS
  26. Kermit 3.11 or later, and it must be installed as KERMIT.EXE in a directory
  27. that is part of your DOS PATH definition.  CUNIX.SCR and the related Batch
  28. files should be in the same directory.  For hard disk systems, this would
  29. normally be the directory C:\KERMIT\.
  30.  
  31. For detailed instructions on installation and use of MS-DOS Kermit, see the
  32. Second Edition of "Using MS-DOS Kermit", available in the CUCCA/AcIS Business
  33. Office in 102 Philosophy and at local bookstores.
  34.  
  35. Run any of these Batch programs just by typing its name (the part before
  36. ".BAT"), for example:
  37.  
  38.   C:\>cunixa
  39.  
  40. (in this example, "C:\>" is the DOS prompt, and you type "cunixa" and then
  41. press the Enter key).
  42.  
  43. The Batch programs accept two optional words on the DOS command line, after
  44. their names.  The first is your UNIX user ID, for example abc123, and the
  45. second is your password:
  46.  
  47.   C:\>cunixa abc123 secret
  48.  
  49. If you leave out your password, CUNIX.SCR will prompt you for it.  If you
  50. leave out the user ID and password, CUNIX.SCR will prompt you for both of
  51. them.  If you run CUNIX.SCR from inside Kermit, it will prompt you for both
  52. of these, as well as which host to connect to.
  53.  
  54. Once CUNIX.SCR knows your user ID and password, it tries to connect you to
  55. the desired UNIX system through your ROLMphone, using the default
  56. communication port and speed.  Normally this is COM1 and 9600 bps, but you
  57. can change them by putting SET commands in your MSKERMIT.INI file, for
  58. example:
  59.  
  60.   SET PORT 2
  61.   SET SPEED 19200
  62.  
  63. If CUNIX.SCR fails to communicate with your ROLMphone, it will give you an
  64. informative message.  Check your port and speed setting, make sure you 
  65. have a data cable connecting your PCs serial port and the ROLMphone, make
  66. sure Kermit is using the same port the cable is connected to, make sure your
  67. ROLMphone actually does have a working data option, etc.  For detailed
  68. troubleshooting instructions, see "Preparing for Data Communication with
  69. the CBX".
  70.  
  71. Once CUNIX.SCR is talking to your ROLMphone, it attempts to connect to one of
  72. the CUTS terminal servers (CUTSA, CUTSB, ...), then it tries to connect to
  73. the desired CUNIX system, then it tries to log you in automatically, then it
  74. sets your UNIX terminal type to be the same as Kermit's (VT320), and finally
  75. it it gives you a terminal screen to the UNIX host.  Any of these steps can
  76. fail.  If they do, you'll get an informative error message.
  77.  
  78. Once you are successfully connected to the Info system (CUNIXF), you will
  79. have a terminal screen.  The characters you type on the keyboard are sent
  80. to CUNIXF, and the characters sent by CUNIXF appear on your screen.
  81.  
  82. Two special Alt-key combinations are available for your use while the terminal
  83. screen is active.  An Alt-key combination is entered by holding down the Alt
  84. key and pressing the indicated letter while Alt is held down.
  85.  
  86.   Alt-q (hold down Alt, press q):
  87.      Log out from CUNIXF, hang up the data connection, exit Kermit,
  88.      return to DOS.
  89.  
  90.   Alt-x (hold down Alt, press x):
  91.      Return to Kermit's "MS-Kermit>" prompt without logging out from
  92.      CUNIXF.  To get back to CUNIXF, type CONNECT and then press the
  93.      Enter key.
  94.  
  95.                 CUSTOMIZATIONS
  96.  
  97. Once you have the CUNIX.SCR, CUNIXA.BAT, CUNIXB.BAT, and CUNIXD.BAT files on
  98. your PC, you can edit them for convenience.  In most cases this won't be
  99. necessary.
  100.  
  101. However, the correct operation of CUNIX.SCR depends upon your UNIX system
  102. prompt being either "$ " (dollar sign followed by space, the standard Shell
  103. and K-Shell prompt) or "% " (percent followed by space, the standard C-Shell
  104. prompt).  If your prompt is different, you MUST edit CUNIX.SCR to tell it what
  105. your prompt is.  Find the line that looks like this:
  106.  
  107. ; define myprompt {cunixa: }
  108.  
  109. Remove the ";" (semicolon) comment indicator, and change "cunixa: " to
  110. whatever your prompt is (leave the curly brackets), for example:
  111.  
  112.   define myprompt {unix> }
  113.  
  114. If you don't want to type your user ID each time, add a line immediately
  115. below "define myprompt" like this:
  116.  
  117.   define userid abc123
  118.  
  119. where "abc123" is your user ID.
  120.  
  121. But please, DO NOT put your password in this or any file.  You should always
  122. enter it every time you log in.  If you password is in the CUNIX.SCR file,
  123. anybody can walk up to your PC and access your private data -- they can read
  124. it, change it, or delete it.
  125.  
  126. [End of CUNIX.DOC]
  127.