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: Sergey Poznyakoff
Subject: Re: [Bug-tar] Any way to pass options to alternative compress program?
Date: Fri, 03 Aug 2012 10:53:51 +0300

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




reply via email to

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