Re: HELP: Repair of tar.gz files??

1998-10-26 Thread Rick Younie
In article [EMAIL PROTECTED] you wrote:
  Rick Younie wrote:
  If the file was corrupted by being transferred in ascii mode
  instead of binary, you can fix it.  There's a program in the
  window's world called NOCRLF that will do it.  Or if you have a
  language or a good hex editor, replace the carriage return/line
  feed pairs with a linefeed and that will fix.
  
  No, generally you can't fix binary files downloaded in ASCII mode.  The CR
  - CR/LF transformation is irreversible for binary files.  That is, there
  may have been some (valid) CR/LF's in the binary file at first, which will
  then be converted into CR's by the reverse transformation.
  
  If you're lucky it might work, though.

Yeah, when the tech on my ISP posted this I emailed him directly
rather than posting to the newsgroup so as not to embarrass him.
We've probably all heard 'irretrievably corrupted' many times
over the years; it's common knowledge.

But it works.  I've done it and it never fails if this is the
cause of the corruption.  As he patiently explained to me, it
works because any legal cr/lf's are converted to cr/cr/lf and you
convert them back to cr/lf.  If you were doing this recursively,
that would be a problem.

Best,
Rick


Re: HELP: Repair of tar.gz files??

1998-10-22 Thread Peter S Galbraith

  I dwnloaded   newsletr.tar.gz from the CTAN site. On attempting a tar
  xvfz, I got:
  
  icarus:~/writing/newsletter tar xvfz  newsletr.tar.gz
  tar: Hmm, this doesn't look like a tar archive
  tar: Skipping to next file header
  
  Is there anything I can do to recover the file, or am I out of luck for
  a Tex newsletter include??

When I use netscape to download a file, it uncompresses it but doesn't
change the name.

So for the heck of it, try:

$  tar xvf  newsletr.tar.gz
-- 
Peter Galbraith, research scientist  [EMAIL PROTECTED]
Maurice Lamontagne Institute, Department of Fisheries and Oceans Canada
P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada. 418-775-0852 FAX: 775-0546
6623'rd GNU/Linux user at the Counter - http://counter.li.org/ 


Re: HELP: Repair of tar.gz files??

1998-10-22 Thread Rene Hojbjerg Larsen
Rick Younie wrote:
 If the file was corrupted by being transferred in ascii mode
 instead of binary, you can fix it.  There's a program in the
 window's world called NOCRLF that will do it.  Or if you have a
 language or a good hex editor, replace the carriage return/line
 feed pairs with a linefeed and that will fix.

No, generally you can't fix binary files downloaded in ASCII mode.  The CR
- CR/LF transformation is irreversible for binary files.  That is, there
may have been some (valid) CR/LF's in the binary file at first, which will
then be converted into CR's by the reverse transformation.

If you're lucky it might work, though.
-- 
   /'`\  zzzZ  | My PGP Public Key is available at:
  ( - - )   | http://home1.inet.tele.dk/renehl/
--oooO--(_)--Oooo-- 
 Don't ya just hate it when there's not enough room to fin 


HELP: Repair of tar.gz files??

1998-10-19 Thread Albert Hurd
I dwnloaded   newsletr.tar.gz from the CTAN site. On attempting a tar
xvfz, I got:

icarus:~/writing/newsletter tar xvfz  newsletr.tar.gz
tar: Hmm, this doesn't look like a tar archive
tar: Skipping to next file header

Is there anything I can do to recover the file, or am I out of luck for
a Tex newsletter include??

Albert Hurd


Re: HELP: Repair of tar.gz files??

1998-10-19 Thread Egon Schmid
Thats wrong. The four letter contains only one option with an additional
paramter (the filename). I bet Albert had only forgotten to switch in
binary mode before download.

-Egon

On Sun, 18 Oct 1998, George Bonser wrote:

 
 Make sure that f is the LAST option just before the filename. Try it this
 way:
 
 tar zxvf newsletr.tar.gz
 
 
 On Sun, 18 Oct 1998, Albert Hurd wrote:
 
  I dwnloaded   newsletr.tar.gz from the CTAN site. On attempting a tar
  xvfz, I got:
  
  icarus:~/writing/newsletter tar xvfz  newsletr.tar.gz
  tar: Hmm, this doesn't look like a tar archive
  tar: Skipping to next file header
  
  Is there anything I can do to recover the file, or am I out of luck for
  a Tex newsletter include??
  
  Albert Hurd
  
  
  -- 
  Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
  
  
 
 George Bonser
 
 The Linux We're never going out of business sale at an FTP site near you!
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 
 


Re: HELP: Repair of tar.gz files??

1998-10-19 Thread David B. Teague

On Sun, 18 Oct 1998, Albert Hurd wrote:

 I dwnloaded   newsletr.tar.gz from the CTAN site. On attempting a tar
 xvfz, I got:
 icarus:~/writing/newsletter tar xvfz  newsletr.tar.gz
 tar: Hmm, this doesn't look like a tar archive
 tar: Skipping to next file header
 Is there anything I can do to recover the file, or am I out of luck for
 a Tex newsletter include??

Albert:

The one thing you can try is

zcat newsletr.tar.gz | tar vx

This will unpack as far as the error. I don't know what else you might
do from that point. Can you download this again?

I hope someone else has an answer for that. 

--David
---
 LINUX: because I want to get there *TODAY*(thanks Shaleh)
David B Teague | Ask me how user interface copyrights  software patents 
[EMAIL PROTECTED] | make programming a dangerous business.