X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r.berber@computer.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.post@talk.nabble.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  quoted-printable
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@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

