1836412 Members
2807 Online
110100 Solutions
New Discussion

ftp a tar file

 
SOLVED
Go to solution
karen_poon
Occasional Advisor

ftp a tar file

Hi,

I have a simple script something like:
tar cvf sf.tar $(find /pdir -name sf*.gif)
where my /pdir contains sf1.gif, sf2.gif, etc.

root:/#tar cvf sf.tar $(find /pdir -name sf*.gif)
a /pdir/sf1.gif 1 blocks
a /pdir/sf2.gif 1 blocks
a /pdir/sf3.gif 1 blocks

When I untar using tar xvf, I can see the 3 files are restored in my unix environment.

But when I ftp the sf.tar to my Windows PC, why is it when I used WinZip to unzip it gives me only the first file?

Thanks in advance..
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: ftp a tar file

Well tar and unzip are two different type of applications. "tar" is not a zipping utility, it is an archiving utility. If you want to transfer multiple files from unix to windows, try loading gzip and gunzip from www.gnu.org.

live free or die
harry
Live Free or Die
Deshpande Prashant
Honored Contributor

Re: ftp a tar file

Hi
You can not extract the tar file contents using windows winzip utility.

Thanks.
Prashant.
Take it as it comes.
Sanjay_6
Honored Contributor

Re: ftp a tar file

Hi,

Tar and winzip are two totally different utilitites. You cannot unzip a unix tar file on nt. to untar a unix tar file download wintar from one of the links below,

http://www.freedownloadscenter.com/Utilities/Compression_and_Zip_File_Utilities/WinTAR_Remote.html

http://www.spiralcomm.com/dwnldsc1.html

http://www.greatfreeware.com/Utilities/Compression_and_Zip_File_Utilities/7928.html

Hope this helps.

Regds
Patrick Wallek
Honored Contributor
Solution

Re: ftp a tar file

Sorry to burst your bubble guys, but WinZip DOES know how to handle tar archives. I've done it before without a problem.

I have WinZip 8.0 installed and it showed the contents of a patch tar file that I have on my PC for some reason. It looks correct when viewing the archive within WinZip and it is extracting the contents of the file correctly as well.

Do you have the latest version of WinZip installed? I'd give that a try.

I have also used CuteZip to successfully extract HP tar files.

http://www.cuteftp.com/products/cutezip/index.shtml
Darrell Allen
Honored Contributor

Re: ftp a tar file

Hello,

Not only does Winzip 8.0 handle tar files, it handles gzipped tar files. I've not had a problem with it not listing all my files.

Is the problem occuring after you extract? If so, are you sure you're selecting extract all files?

Also, are you ftp'ing the tar file in binary mode?

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
karen_poon
Occasional Advisor

Re: ftp a tar file

What I did is download CuteFtp, ftp using binary, then Convert to zip file before I extract it.

I get the 3 files that I ftp!

Thank you for all the replies..