Re: gzip 1.4-1 creates corrupt archive

2012-08-27 Thread Earnie Boyd
On Sun, Aug 26, 2012 at 12:38 AM, K Stahl wrote: Missed that section, was reading from my phone. Anyway, how about instead of chastising someone for trying to help, you come up with an alternative solution? Stating that you missed something in a post isn't really chastising as much as it is

Re: gzip 1.4-1 creates corrupt archive

2012-08-27 Thread Ryan Johnson
On 27/08/2012 7:29 AM, Earnie Boyd wrote: On Sun, Aug 26, 2012 at 12:38 AM, K Stahl wrote: Missed that section, was reading from my phone. Anyway, how about instead of chastising someone for trying to help, you come up with an alternative solution? Stating that you missed something in a post

Re: gzip 1.4-1 creates corrupt archive

2012-08-27 Thread KHMan
On 8/27/2012 8:01 PM, Ryan Johnson wrote: On 27/08/2012 7:29 AM, Earnie Boyd wrote: On Sun, Aug 26, 2012 at 12:38 AM, K Stahl wrote: [snip snip snip] [snip snip snip] [snip snip snip] Back on topic, I can't repro using text or binary (executable) files, which makes me wonder whether the

Re: gzip 1.4-1 creates corrupt archive

2012-08-27 Thread Warren Young
On 8/25/2012 12:11 AM, Peter wrote: cat $LOG | gzip $LOG.old.gz Generally speaking, cat with a single file is a sign you're not using redirection to its fullest. In this case, you get the same effect with much less overhead with: gzip $LOG $LOG.old.gz The resulting archive was

gzip 1.4-1 creates corrupt archive

2012-08-25 Thread Peter
To trim a log file on my windows box I tried the lines below in a bash script. (my bash is 4.1.10(4)) cat $LOG | gzip $LOG.old.gz $LOG The resulting archive was corrupt. Directly compressing like gzip $LOG works OK but is not suitable in my case as the logging service constantly writes to

Re: gzip 1.4-1 creates corrupt archive

2012-08-25 Thread K Stahl
cat $LOG | gzip $LOG.old.gz $LOG Don't have access to my machine at the moment, but try adding the '-c' options to gzip (e.g. gzip -c ...) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html

Re: gzip 1.4-1 creates corrupt archive

2012-08-25 Thread Ryan Johnson
On 25/08/2012 11:45 AM, K Stahl wrote: cat $LOG | gzip $LOG.old.gz $LOG Don't have access to my machine at the moment, but try adding the '-c' options to gzip (e.g. gzip -c ...) He said he tried that and it didn't work... Ryan -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: gzip 1.4-1 creates corrupt archive

2012-08-25 Thread K Stahl
Missed that section, was reading from my phone. Anyway, how about instead of chastising someone for trying to help, you come up with an alternative solution? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: