www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org> |
Subject: | Re: Adding to a windows zip file without zip.exe |
Date: | Wed, 16 May 2007 15:29:49 -0500 |
Lines: | 39 |
Message-ID: | <f2fpg3$ngi$1@sea.gmane.org> |
References: | <10653042 DOT post AT talk DOT nabble DOT com> |
Mime-Version: | 1.0 |
User-Agent: | Thunderbird 1.5.0.10 (Windows/20070221) |
In-Reply-To: | <10653042.post@talk.nabble.com> |
OpenPGP: | url=hkp://wwwkeys.pgp.net |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Chadwick wrote: > Cygwin is currently installed on over a hundred windows 2003 servers, and= is > used to do some admin tasks as well as to pull files from the servers on a > daily basis via ssh. One of the files pulled from each server is a windo= ws > ZIP file. >=20 > I want to add an extra file to this ZIP file using a script. I looked at > both DOS batch scripts and cygwin shell scripts but have run into problems > because the cygwin installed on these boxes doesnt contain ZIP.exe, and t= he > PKZIP.exe I would used with a batch script is so old it only accepts 8.3 > filenames. >=20 > Updating the servers with new cygwin or command line packages is not an > option at this point. [snip] > Any suggestions? Use java, specifically `jar` which is just a fancy unzip-then-call-java thi= ngy,=20 and it also does just work as zip (with tar like use). Just do: jar -h jar -tvf your.zip jar -cvf another.zip files... Remember to use only DOS/Windows paths. --=20 Ren=E9 Berber -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |