home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 September / Simtel20_Sept92.cdr / msdos / kermit / ker_scp3.arc / VAX.SCP < prev   
Text File  |  1988-09-10  |  3KB  |  62 lines

  1. Comment    UNIX.SCP to log on to a VAX running Unix BSD 4.3
  2. ;v1.0, 1987
  3. ;
  4. ;Fire up PC-Kermit, setting your port, terminal emulation, etc.
  5. ;either thru the MSKERMIT.INI file or manually.
  6. ;Then, at the Kermit prompt, give Kermit the following command:
  7. ;    Kermit-MS> take unix.scp
  8. ;Kermit will run the following script file.
  9. ;
  10. ;Tested with braggvax.ARPA, Fort Bragg NC (through a direct dialin modem)
  11. ;and should work with similar VAX systems.
  12. ;If not, read TOADSCRP.DOC for suggestions on how to build your own
  13. ;Kermit script file.
  14. ;
  15. ;This works fine with PC-Kermit v2.29 and up.  It does NOT use the more
  16. ;powerful script language available with the latest (v2.31).
  17. ;(Haven't figured it all out yet!)
  18. ;David Kirschbaum
  19. ;Toad Hall
  20. ;kirsch@braggvax.ARPA
  21. ;
  22. ;Substitute the baud rate you want here:
  23. SET BAUD 1200;            insure we're at 1200 baud
  24. CLEAR;                flush any junk at the port
  25. SET TAKE OFF;            don't display Take file commands as we go
  26. SET INPUT TIMEOUT-ACTION QUIT;    quit script if proper answers do not appear
  27. OUTPUT \10;            Send a CR to the modem to get a new line
  28. OUTPUT AT\13;            see if modem is alive
  29. INPUT OK;            look for its normal response
  30. ;Substitute your host's dial-in number here:
  31. ;(I have only pulse dial, therefore the ATDP.  You might want ATDT.)
  32. OUTPUT ATDP 999-9999\13;    Tell the modem to dial the host's number
  33. INPUT 25 CONNECT;        Wait for the modem to say we got a modem answer
  34. PAUSE 1;            wait 1 sec for modem to get ready
  35. SET INPUT TIMEOUT PROCEED;    ignore timeouts from here on
  36. INPUT 30 login:;        Wait for VAX's login sequence
  37. ;Substitute your username here:
  38. OUTPUT kirsch\13;        Send our username
  39. INPUT 10 Password:;        Wait for VAX's password prompt
  40. ;Substitute your password here:
  41. OUTPUT password\13;        Send our password
  42. ;
  43. ;My MSKERMIT.INI sets Kermit's terminal emulation to VT102 by default.
  44. ;My host has a query as to what kind of terminal I am
  45. ;(with a default of vt102 from my Unix .login file).
  46. ;Your host may differ, your account may be "hardwired" to a terminal
  47. ;type, whatever.  Edit accordingly.
  48. INPUT 10 TERM = (vt102);    Wait for VAX's terminal type query
  49. OUTPUT \13;            respond with CR to accept default VT102
  50. ;You could substitute something else for a terminal, like:
  51. ;OUTPUT vt52\13;        Be a VT52 terminal
  52. ;OUTPUT dumb\13;        Be a dumb terminal
  53. ;Or get REALLY fancy and be a Tektronics 4010 terminal (assuming your
  54. ;host has such a termcap!).
  55. ;To do that, you must tell Kermit to go into Tektronics emulation as well:
  56. ;SET TERM TEK;            Tell Kermit to emulate Tek4010
  57. ;OUTPUT tek4010\13;        And tell the VAX
  58. ;
  59. ;Kermit will drop you back at its command line.
  60. ;Enter "c" to go into "connect" or terminal mode,
  61. ;and you can continue with your Unix session.
  62.