[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] tar and gzip
From: |
christophe . kirch |
Subject: |
[Bug-tar] tar and gzip |
Date: |
Wed, 15 Mar 2006 20:34:19 +0100 |
Hi Group,
I hope you will be able to help me here...
I am an SQR Report Developer.
My report produces several csv files, which i need to tar, then compress,
and then send by email.
To do so from the SQR, i am calling a unix command.
Here is the syntax i am using :
cd (my directory) ; tar -cvf file.tar *.csv | gzip --best > file.tar.gz;
uuencode file.tar.gz file.tar.gz | mailx -s Subject
address@hidden
=> the TAR command works great
=> The mailx command works great also
BUT the GZIP command does not work at all... the gz file created is
empty... so i guess my syntax is wrong.
I have been trying many many different syntaxes.
Sometimes with the pipe, sometimes with the semi-column, etc..
I have also tried the tar option -z (which invokes gzip) : the gz file was
created, it contained my data, but nothing was compressed !!
Thank you for helping, since i am about to forget about using gzip...
(fyi, i currently use "compress" which works fine, but does not compress as
much as gzip...)
Thanks for your help!
Christophe Kirch
HR Application Management & Support
Processes & IT / Enterprise Processes Systems
Equant
CVS: +316-2672
Phone: +33-1-4646-2672
Fax: +33-1-4646-7296
Mobile Phone: +33-6-6011-7755
- [Bug-tar] tar and gzip,
christophe . kirch <=