[Cialug] create .tgz on Win32
Bryan Baker
cialug@cialug.org
Fri, 21 Jan 2005 15:43:51 -0600
--Apple-Mail-4--812386681
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
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
On Jan 21, 2005, at 3:29 PM, David Champion wrote:
> Will be running as a .bat script scheduled task, as Administrator. My
> test was when logged in as Administrator.
>
> I typed:
>
> tar -cvf - c:\test\*.* | gzip > test.tgz
>
> It says:
>
> tar: Cannot open-: Permission denied
>
> Maybe the stdin / stdout thing is b0rked in the Win32 version.
>
> -dc
>
> Nathan C. Smith wrote:
>> If you are running it in a script (webserver?) on windows, did you
>> make sure
>> the account it is running under has permissions to the executable and
>> to the
>> drives it is accessing?
>> -Nate
>> -----Original Message-----
>> From: David Champion [mailto:dave@visionary.com] Sent: Friday,
>> January 21, 2005 3:21 PM
>> To: cialug@cialug.org
>> Subject: [Cialug] create .tgz on Win32
>> What tools would all y'all use to create a .tgz (gnu tar gzip) on a
>> Win32 server? Has to be command line capable to call from a script.
>> I tried the tools from gnuwin32.sourceforge.net, and they're getting
>> errors. I can create a plain tar, and can create a gzip, but piping
>> the tar thru gzip generates dll errors.
>> I suppose I could do it in 2 steps - create the tar, then gzip it.
>> -dc
>
>
> _______________________________________________
> Cialug mailing list
> Cialug@cialug.org
> http://cialug.org/mailman/listinfo/cialug
>
--
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
--Apple-Mail-4--812386681
Content-Transfer-Encoding: base64
Content-Type: application/pkcs7-signature;
name=smime.p7s
Content-Disposition: attachment;
filename=smime.p7s
MIAG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