RE: Problem with incron and unzip

From: Kumer, Franjo <>
Date: Wed, 21 Jan 2009 10:01:02 +0100

Thanks for the answer.

In composing my mail I appended wrong zip file. Perhaps this one is

My project is not realy autopatching, more a nick name. An operater has
to check zip file on portal and transfer it to linux box. This procedure
will allways do one person at a time an only by request of application
vendor. I is strictly intranet business aming to test site NOT

I send you my writings because I can run skript manually or by
cron and it works fine. If called by incron it does not work.

I made simpler test :

1. install incron
2. start incrond
3.create directory Download in working directory (in my case
4.edit incrontab (I used file incron.in2test)
5. write script
6. create file (no matter what is in that archive)
7. copy do Download
8. incrond fires and moves archive to working directory when
tries to unzip file unzip.log is written
9. unzip.log shows the error - End-of-central-directory....
manual control
10 kill incrond process
11 copy into Download
12 run ./ in terminal
13 archive is moved to working directory
14 archive is expanded - no unzip.log

Franjo Kumer

-----Original Message-----
From: Samat K Jain []
Sent: Tuesday, January 20, 2009 5:40 PM
Cc: Kumer, Franjo
Subject: Re: Problem with incron and unzip

On Tuesday 20 January 2009 4:42:48 am Kumer, Franjo wrote:
> I am working on a project AutoPatching.

For other people reading this thread, I feel as if I have to mention,
autopatching like this is a BAD idea... but I am sure you understand the

> I appended all files that are involved. The most interesting is

The contents of AutoErr.log seem pretty self-explanatory... the zip file
is bad? I confirmed this when I downloaded the file you provided,
renamed it from .txt to .zip, and ran unzip against it:

$ unzip -t
error []: missing 1 bytes in zipfile
  (attempting to process anyway)
error []: attempt to seek before beginning of
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)
  (attempting to re-compensate)
    testing: pozeni.sql OK
    testing: xxxxxxxr.rep OK
    testing: xxxxxxxr.fmb OK
    testing: RZP_IZRACUN_PZZ.pks OK
    testing: RZP_IZRACUN_PZZ.pkb OK
    testing: naslov.txt bad CRC 691786f0 (should be
file #7: bad zipfile offset (local header sig): 110845
  (attempting to re-compensate)
    testing: MG_NS-0544-2008.lst OK
    testing: authentication.lst OK
    testing: 1recompl.logr OK
    testing: 2recompl.logr OK
    testing: 3recompl.logr OK
    testing: 4recompl.logr OK
At least one error was detected in

Samat Jain <> | GPG: 0x1A1993D3 Partner, Chief
Technology Officer | Rhombic Networks, LLC
If you can't convince them, confuse them.
-- Harry S Truman (14)

Received on Wed Jan 21 2009 - 10:02:03 CET

This archive was generated by hypermail 2.2.0 : Tue Jun 05 2012 - 22:14:21 CEST