bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] Any way to pass options to alternative compress program?


From: David Rosenstrauch
Subject: [Bug-tar] Any way to pass options to alternative compress program?
Date: Thu, 02 Aug 2012 15:49:13 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0

I'm trying to make use of the --use-compress-program option of tar, to use an alternative compression app when building my tarball. However, I'm trying to find a way to pass parameters to the compression program, but I don't see any way to do that.

The alternative compression program I'm calling, pigz (a parallelizable version of gzip compression), has a parameter -p to control the number of CPU's to use in the parallelization. But there doesn't seem to be any way for me to pass that parameter from the tar command. For example, the following command doesn't work:

address@hidden code]$ tar --use-compress-program "pigz -p 2" -cf /tmp/test.tar.pgz .
tar (child): pigz -p 2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now

Anyone know how I might accomplish this?

Thanks,

DR



reply via email to

[Prev in Thread] Current Thread [Next in Thread]