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 [EMAIL PROTECTED] => 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 mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-tar
