[comp.sys.ibm.pc] Kermit file transfer between MS-DOS and UNIX

sears@sun.uucp (Daniel Sears) (04/26/88)

Here is a short tutorial on Kermit file transfer between an MS-DOS machine
and a Sun workstation.

--Dan


            KERMIT FILE TRANSFER BETWEEN A PC AND A SUN WORKSTATION

Kermit is a file transfer protocol for sending files between different kinds
of machines.  The following instructions illustrate how to use MS-DOS Kermit
to transfer files between a Sun workstation and an MS-DOS machine.  The basic
idea is that you use MS-DOS Kermit to control the modem on your PC and dial
into a Sun workstation with an attached modem.  MS-DOS Kermit has a terminal
emulator, so you can read your mail and do other things that you normally
would with a terminal.  Then you start UNIX Kermit on the Sun workstation and
transfer files between the two Kermits.

We presume that you already have a properly installed modem and that you have
access to the binary executables for MS-DOS Kermit and UNIX Kermit.  The latest
version of MS-DOS Kermit (as of 1/8/88) is version 2.30; the latest version of
Unix Kermit (as of 1/29/88) is 4E(067).  Kermit is designed to deal with many
different versions of itself so don't worry about incompatible versions of the
protocols.  Kermit is much more powerful than these notes imply.  For more
information, see the manuals "MS-DOS Kermit User Guide" and "UNIX Kermit User
Guide" from Columbia University.

1) Install "kermit.exe" on the PC in a directory in the DOS PATH.

2) Install UNIX Kermit on the Sun workstation in a directory in the shell PATH.

3) Use a text editor to create a file called "mskermit.ini" in the same
directory as "kermit.exe" and add a Kermit macro for auto-dialing into the
Sun workstation:

    define sun set port x, set baud yyyy, output ATDTzzz-zzzz\13, connect

This macro has three variables that you must fill in: x, the serial port for
the modem (usually 1 for external modems and 2 for internal modems); yyyy,
the baud rate (usually 300, 1200 or 2400); and zzz-zzzz, the dial-in number
for the modem connected to the Sun workstation.  Note: the ATDT string is for
tone dialing; use ATDP for pulse dialing.  This assumes that your modem is
"Hayes-compatible" (most PC modems are).  If not, substitute your modem's
dialing commands here.

4) Start MS-DOS Kermit: type "kermit" to the DOS shell prompt.  The MS-DOS
Kermit prompt will appear: "MS-Kermit>".  MS-DOS Kermit commands are finished
with carriage returns like shell commands.

5) Dial into the Sun workstation: type "do sun" to the MS-DOS Kermit prompt.

6) Synchronize the modems: after the PC modem establishes a connection with
the Sun modem, press <RETURN>.

7) Login to the Sun workstation with your user name and password and then
optionally remote login to another Sun workstation on the network.

8) Put UNIX Kermit in server mode:
    a) text files: type "kermit -x"
    b) binary files: type "kermit -ix"

9) Put MS-DOS Kermit in local mode: type <CONTROL>-]c (<CONTROL> and right
bracket simultaneously, followed by "c").

10) Transfer files:
    a) retrieve a file from the Sun to the PC: type "get file1"
    b) send a file from the PC to the Sun: type "send file2"
Beware of MS-DOS filename restrictions -- the file may be renamed to fit into
the name length imposed by MS-DOS or to avoid filename collision.

11) Shut down the remote server from MS-DOS Kermit: type "finish" or "bye".

12) Return MS-DOS Kermit to remote mode: type "connect".  Press <RETURN>
to see a new UNIX shell prompt.

13) Logout of the Sun workstation: type "logout".

14) Put MS-DOS Kermit in local mode: type <CONTROL>-]c.

15) Hang up the telephone line: type "hangup" to the MS-DOS Kermit prompt.

16) Exit MS-DOS Kermit: type "quit".
-- 
Daniel Sears                Sun Microsystems, Inc.
Technical Publications      MS 5-42
(415) 691-7435              2550 Garcia Avenue
sears@sun.com               Mountain View, CA  94043

davidsen@steinmetz.ge.com (William E. Davidsen Jr) (04/26/88)

  One last point... at our site, and perhaps others, the only access to
Suns is via Ethernet. When accessing a Sun from a serial line, such as
dialin, a connection is made to a serial to telnet server which makes
the connection. To the user it looks like a serial connection.

  I found out the hard way that kermit only works over this type of
connection running both ends in *even parity*. This may not apply to
you, but rather than have someone else waste time finding it, or cursing
Kermit, if you can't get transfers to work try even parity.
-- 
	bill davidsen		(wedu@ge-crd.arpa)
  {uunet | philabs | seismo}!steinmetz!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me