|
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 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |