[Cialug] create .tgz on Win32

David Champion cialug@cialug.org
Fri, 21 Jan 2005 15:53:53 -0600


I use the -czvf all the time in linux. When you try it in the Win32 
version, it errors with "cannot fork, not implemented" or some such bull.

Like I said, I can just create the tar, then gzip it.

"Move along, folks. Nothing to see here."

-dc

Bryan Baker wrote:
> Actually, just checked it here on some random files (OSX) and what you 
> want is:
> 
> tar cvzf test.tgz C:\test\*.*
> 
> remembering that the first argument after the f needs to be the name of 
> the file to create.
> why complicate it w/ piping?
> 
> On Jan 21, 2005, at 3:43 PM, Bryan Baker wrote:
> 
>> doesn't the win32 version have the "z" option?
>> I usually just use tar to do the compression itself on *nix.
>>
>> from tar's MAN:
>>
>> -z
>>      --gzip
>>      --ungzip
>>      --gunzip                Filter the archive through gzip(1).
>>      --use-compress-program program
>>                              Filter the archive through program (which 
>> must
>>                              accept -d to mean ``decompress'').
>> so I'd try:
>>
>> tar -cvzf - c:\test\*.* test.tgz
>>
> -- 
> Bryan Baker
> Technology Advocate
> Iowa Legal Aid
> Suite 230
> 1111 9th Street
> Des Moines, Ia 50314-2527
> 
> (515) 243-2151 (x1635)
> 
> http://www.iowalegalaid.org
> bbaker@iowalaw.org
>