Mail Archives: cygwin/2007/05/16/19:06:15
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 doesn't
> 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.
>
> That being said, I am a huge cygwin fan and am not willing to give
> up on a shell script as my solution quite yet.
>
> The cygwin version on the servers does have gzip, gunzip, bzip2,
> bunzip2, and unzip.
>
> Unfortunatly I have as yet been unsucceful in using these tools to
> add a file to my windows zip archive.
>
> Any suggestions?
The only Cygwin dependency that zip.exe shows, according to chgcheck,
is cygwin1.dll. Why not just push zip.exe over to all your servers?
Granted, it's a one-time pain, but it will fix the problem.
--------------------------------------------------------
Goss ... Innovation for Business
NOTICE: This e-mail and any attachment(s) may contain confidential and proprietary information of Goss International Corporation and/or its subsidiaries and may be legally privileged. This e-mail is intended solely for the addressee. If you are not the addressee, dissemination, copying or other use of this e-mail or any of its content is strictly prohibited and may be unlawful. If you are not the intended recipient please inform the sender immediately and destroy the e-mail and any copies. All liability for viruses is excluded to the fullest extent permitted by law. Any views expressed in this message are those of the individual sender. No contract may be construed by this e-mail.
--
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/
- Raw text -