1753816 Members
8179 Online
108805 Solutions
New Discussion юеВ

Re: tar problem

 
marvik
Regular Advisor

tar problem

Dear All,

I have this tar file I want to extract.But its giving the below error.Any suggestions pls.

server:/var > tar -tvf scripts.tar
drwx------ unixadm/unixadm 0 2007-06-26 19:51:29 home/unixadm/vkarmak/
-rw-rw-r-- unixadm/unixadm 1903 2006-05-24 14:04:14 home/unixadm/vkarmak/UnixNP
tar: Skipping to next header
tar: Error exit delayed from previous errors

Thanks
Marvik
7 REPLIES 7
Stuart Browne
Honored Contributor

Re: tar problem

Looks like a broken tar file.

Are we talking GNU tar here? How big?

One long-haired git at your service...
marvik
Regular Advisor

Re: tar problem

Hi Stuart ,

Its belw.I created the tar file in Linux and trying to extract it in HP-UX is that any reason ?

-rw-r----- 1 unixadm unixadm 14471432 Sep 14 13:48 /var/scripts.tar
Victor Semaska_3
Esteemed Contributor

Re: tar problem

I've run into problems with tar files created on Linux systems but I got different errors. In my case it's Tru64. The solution was to install the GNU version of tar and use that.

Vic
There are 10 kinds of people, one that understands binary and one that doesn't.
Stuart Browne
Honored Contributor

Re: tar problem

If you can still re-create the archive (or have a linux box handy to extract this too, to re-archive it), try using the '-o' switch to GNU's tar. This puts it into the 'old' non-ANSI archive format, rather than the newer style.

Failing that, use 'cpio' with the '-H tar' format (I think 'tar' encoding is hp-ux happy.. failing that try 'hpodc', and use cpio to extract it again).
One long-haired git at your service...
James R. Ferguson
Acclaimed Contributor

Re: tar problem

Hi Marvik:

Assuming that your Linux 'tar' archive is extractable on your Linux server, you could try using HP-UX 'pax' to extract it on your HP platform.

# cd destdir && pax -rv < scripts.tar

Regards!

...JRF...

Steven Schweda
Honored Contributor

Re: tar problem

> [...] I created the tar file in Linux and
> trying to extract it in HP-UX [...]

And how did you get the file from the Linux
system to the HP-UX system? ASCII FTP?

Can you do a "tar tvf scripts.tar" on the
Linux system? If you transfer the file back
to the Linux system, does that still work on
the copy?


Posting the same question to two forums
without any links is not the best practice.
marvik
Regular Advisor

Re: tar problem

Dear All,
Many Thanks for the replies ,I will check and update the result on 17th.I dont have access to system on weekend

Rgds
MArvik