Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!unixg.ubc.ca!brazeau.ucs.ualberta.ca!alberta!herald.usask.ca!ccu.umanitoba.ca!grdetil From: grdetil@ccu.umanitoba.ca (Gilles R. Detillieux) Newsgroups: comp.sys.next Subject: Re: retrieving from ftp sites Message-ID: <1991Jun5.183326.19119@ccu.umanitoba.ca> Date: 5 Jun 91 18:33:26 GMT References: <1991Jun4.214435.3787@cs.ucla.edu> Distribution: na Organization: University of Manitoba, Winnipeg, Canada Lines: 36 In <1991Jun4.214435.3787@cs.ucla.edu> ted@maui.cs.ucla.edu (Theodore Bujewski) writes: >I am unsure of how to uncompress and untar many of the files at the >archive sites. I have retrieved many files and have tried to >uncompress them and untar them with the command > zcat "file".tar.Z | tar -xvf - >I have also tried several permutations of this. The result is either >it works or I get a checksum error. My question is: Is this a problem >with the commands I am using, my machine, the way I am retrieving the >file, or the way I am transfering the file onto my machine? (I >download the ftp file to a DOS floppy and then copy it to my Next). >I would really appreciate it if someone would tell me what I need to >do. There are a lot of files which do not work. The mostly likely error I can think of offhand is you didn't explicitly tell ftp to do a binary transfer. Most implementations of ftp default to a text file transfer, which wreaks havock on a compressed tar archive. You usually have to give a "binary" command before the "get" or "mget" command. Some ftp's have a "bget" command for binary files. Check your documentation. >Thanks in advance, >Ted (ted@cs.ucla.edu) >(BTW This may be a stupid question, but what is a checksum error?) "tar" calculates a checksum for each directory entry in the archive, then verifies it on extraction, to see if the entry is valid. Hope this helps. -- Gilles Detillieux Spinal Cord Research Centre or Dept. of Physiology, U. of Manitoba Phone: (204)788-6766 Winnipeg, MB R3E 0W3 (Canada) Fax: (204)786-0932