> 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
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to