Kbase 13752: Some hints to remember when using kermit for file transfers
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
Some hints to remember when using kermit for file transfers
Subject: Re: kermit/download
> I am trying to send compiled .r code to a remote location that
> only has runtime, but i send it via kermit and when i try to run
> the program at the remote site i get a progress error 290, system
> error 0
By default, kermit transfers files in text mode so when you send text
files between different types of systems such as Unix, MS-DOS, Mac,
VMS, the newline characters will be translated correctly. However,
when transfering binary files such as .Z, .gz, .zip, Progress .r's,
etc, you must tell kermit to transfer files in binary mode.
>From within kermit or in a .kermrc start up file put:
set file type binary
You can also start kermit with the -i (image) option which does the
same thing.
Here is a sample .kermrc file which if found in your home directory,
will be executed (on some older kermit's it looks in the current
directory instead):
-----
# C-Kermit v5A(189) startup file for binary file transfers
set prompt name-of-host>
set file type binary
set block-check 2
set send packet-length 2000
set receive packet-length 2000
set window-size 2
echo Be sure to set block-check to 2 and adjust packet
length on remote kermit
-----
You could put a file like the above in the home directory of the
accounts on the local and remote machine(s). If you are running a
version 4 kermit, then packet-lengths over 94 and window-size won't
work.
If you are transferring many .r files such as a whole directory tree,
consider the following procedure:
1. cd to-.r-file-directory
2. Create a compressed cpio archive of all the .r files:
find . -name '*.r' -print |cpio -ocv |compress -v >rfiles.cpio.Z
3. Transfer the rfiles.cpio.Z file in binary mode to the remote
system.
4. On the remote system: cd to-.r-file directory
5. Unpack the archive: zcat rfiles.cpio.Z |cpio -icvdum
If you set up uucp between the machines, then the transfer happens in
the background and will retry automatically if the line is busy or the
connection cannot be made for some reason.
Progress Software Technical Support Note # 13752