Re: extra bytes in zip archive when used with logrotate

2012-08-06 Thread Oleg Goldshmidt
shimi writes: > * Aliases existing on some user and not on the other No, I used full paths for all executables, as /bin/cat and /usr/bin/zip. > * Running from shell vs. not from shell (related to above two) This reminds me of my other recent discovery (/dev/stderr, pipes, and crontab), but the

Re: extra bytes in zip archive when used with logrotate

2012-08-06 Thread shimi
On Mon, Aug 6, 2012 at 9:15 PM, Oleg Goldshmidt wrote: > > Now, while the problem is fixed I am not satisfied yet: > > 1) I have never had to add -q before: zip/unzip have always worked >fine. Why now? The man page does not say anything really > > 2) It is my script that calls zip - it is not

Re: extra bytes in zip archive when used with logrotate

2012-08-06 Thread Oleg Goldshmidt
Martha Greenberg writes: > Run zip with the -q option. Otherwise, the output of zip ends up in > the created zip file. You can see this by running strings on the > zip file, which (without -q) shows: > > (deflated 3%) > > Adding -q to zip fixes this. Well, answering both to shimi and to Marth

Re: extra bytes in zip archive when used with logrotate

2012-08-06 Thread Martha Greenberg
Run zip with the -q option. Otherwise, the output of zip ends up in the created zip file. You can see this by running strings on the zip file, which (without -q) shows: (deflated 3%) Adding -q to zip fixes this. Martha Greenberg On Aug 6, 2012, at 17:35 , Oleg Goldshmidt wrote: > Hi ever

Re: extra bytes in zip archive when used with logrotate

2012-08-06 Thread shimi
On Mon, Aug 6, 2012 at 7:16 PM, Oleg Goldshmidt wrote: > shimi writes: > > > On Mon, Aug 6, 2012 at 5:35 PM, Oleg Goldshmidt > wrote: > > > >$ unzip -l file.log.zip > > Archive: file.log.zip > > warning [file.log.zip]: 16 extra bytes at beginning or within > > z

Re: extra bytes in zip archive when used with logrotate

2012-08-06 Thread Oleg Goldshmidt
shimi writes: > On Mon, Aug 6, 2012 at 5:35 PM, Oleg Goldshmidt wrote: > >$ unzip -l file.log.zip > Archive:  file.log.zip > warning [file.log.zip]:  16 extra bytes at beginning or within > zipfile >   (attempting to process anyway) >   Length      Date  

Re: extra bytes in zip archive when used with logrotate

2012-08-06 Thread shimi
On Mon, Aug 6, 2012 at 5:35 PM, Oleg Goldshmidt wrote: > > $ unzip -l file.log.zip > Archive: file.log.zip > warning [file.log.zip]: 16 extra bytes at beginning or within zipfile > (attempting to process anyway) > Length DateTimeName > - -- - > 7

extra bytes in zip archive when used with logrotate

2012-08-06 Thread Oleg Goldshmidt
Hi everyone, I am looking at another weird problem on CentOS 6.2. Here is the outline - hope someone will be able to help me figure it out. Many (most?) of you are probably familiar with logrotate(8), and know that it is capable of a) compressing the rotated logs, and b) mailing them to a specifi