*BSD News Article 10489


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA200 ; Fri, 29 Jan 93 13:00:17 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!usc!sol.ctr.columbia.edu!hamblin.math.byu.edu!news.byu.edu!ux1!fcom.cc.utah.edu!cs.weber.edu!terry
From: terry@cs.weber.edu (A Wizard of Earth C)
Subject: Re: 123 bytes too big bin01.56 - how to fix?
Message-ID: <1993Jan28.173920.15338@fcom.cc.utah.edu>
Sender: news@fcom.cc.utah.edu
Organization: Weber State University  (Ogden, UT)
References: <1993Jan28.100825.1@mrl.dsto.gov.au>
Date: Thu, 28 Jan 93 17:39:20 GMT
Lines: 43

In article <1993Jan28.100825.1@mrl.dsto.gov.au> ryanph@mrl.dsto.gov.au writes:
>I successfully downloaded the tinyBSD disk image file. I installed a 50 Meg 
>386bsd partition on my hard disk. I got the distribution files bin01.00 
>to bin01.56. I began 'extract bin01'.
>
>It checked the files and choked on the last one only: bin01.56.
>
>This last file is the only one which is not 240640 bytes long, instead, it is
>227717 bytes long. My Vax/VMS system's ftp, or else Kermit to the PC, has a 512
>byte minimum size, so that when I get the last file on the PC, it is 227840
>bytes long.
>
>Naturally, the extraction program chokes because the file no longer passes a
>CRC test, despite the fact that there is nothing missing from it.
>
>Does anyone know how to rid this file of the excess 123 bytes?

Write a program to trunc the file on DOS, or set your file type on download
to STREAM/LF.

This depends on you ability to change download types on your VMS FTP, and
that, in turn is dependent on whether you use a good TCP/IP package on your
VAX.

Another alternative (which your "Kernit" or whatever you download to your PC
with may choke on) is to use the convert utility and trunc the file on VMS
after conversion from blocked file to STREAM/LF file.  Kermit may not be
able to send such a file to the PC (bad Kermits, like the DECNet copy command,
choke when the apparent record size exceeds a preset value... so does the
print spooler on VMS).


					Terry Lambert
					terry@icarus.weber.edu
					terry_lambert@novell.com
---
Any opinions in this posting are my own and not those of my present
or previous employers.
-- 
-------------------------------------------------------------------------------
                                        "I have an 8 user poetic license" - me
 Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
-------------------------------------------------------------------------------