X-Spam-Check-By: sourceware.org
X-IronPort-AV: E=Sophos;i="4.14,544,1170651600";     d="scan'208";a="20942"
Subject: Re: Adding to a windows zip file without zip.exe
From: Reid Thompson <Reid.Thompson@ateb.com>
Reply-To: Reid.Thompson@ateb.com
Cc: cygwin@cygwin.com
In-Reply-To: <f2fpg3$ngi$1@sea.gmane.org>
References:  <10653042.post@talk.nabble.com>  <f2fpg3$ngi$1@sea.gmane.org>
Content-Type: text/plain; charset=UTF-8
Date: Wed, 16 May 2007 16:28:55 -0400
Message-Id: <1179347335.8122.0.camel@jhereg>
Mime-Version: 1.0
X-Mailer: Evolution 2.11.2
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
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l4GKVmgx014962

On Wed, 2007-05-16 at 15:29 -0500, René Berber wrote:
> 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 windows
> > ZIP file.
> > 
> > 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 the
> > PKZIP.exe I would used with a batch script is so old it only accepts 8.3
> > filenames.
> > 
> > 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 thingy, 
> 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.

jar -uvf your.zip  the_new_file

--
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/


