On 08/03/2012 03:53 AM, Sergey Poznyakoff wrote:
David Rosenstrauch <[email protected]> ha escrit:
[darose@daroselin 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?
So far the only way is to write a wrapper script calling "pigz -p 2" and
pass it to tar as "--use-compress-program scriptname". Unfortunately
the tar docs incorrectly stated that it is possible to supply a complete
command line as an argument to that option, which is not the case.
Regards,
Sergey
Oh well. :-( Kludgey, but it'll obviously get the job done.
Thanks for the quick response.
DR