bug-tar
[Top][All Lists]
Advanced

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

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


From: David Rosenstrauch
Subject: Re: [Bug-tar] Any way to pass options to alternative compress program?
Date: Fri, 03 Aug 2012 11:54:23 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0

On 08/03/2012 03:53 AM, Sergey Poznyakoff wrote:
David Rosenstrauch <address@hidden> ha escrit:

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?

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




reply via email to

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