- To: Voytek <lists@xxxxxxxxxx>
- Subject: Re: [SLUG] gzip from perl script
- From: Jacinta Richardson <jarich@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 22 Sep 2005 17:16:32 +1000
- Cc: slug@xxxxxxxxxxx
- Organization: Perl Training Australia Pty Ltd
- User-agent: Debian Thunderbird 1.0.2 (X11/20050817)
Voytek wrote:
> I just need to force a 'y' here, or pass to gzip
>
> ...screen snip---
> gzip: /backup/mysql/postfix-20050922.sql.gz already exists; do you wish to
> overwrite (y or n)?
> ...
I guess there's alway -f
-f --force
Force compression or decompression even if the file has multiple
links or the corresponding file already exists, or if the com-
pressed data is read from or written to a terminal. If the input
data is not in a format recognized by gzip, and if the option
--stdout is also given, copy the input data without change to
the standard ouput: let zcat behave as cat. If -f is not given,
and when not running in the background, gzip prompts to verify
whether an existing file should be overwritten.
if you have a copy of the man page available. ;)
Jacinta
--
("`-''-/").___..--''"`-._ | Jacinta Richardson |
`6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia |
(_Y_.)' ._ ) `._ `. ``-..-' | +61 3 9354 6001 |
_..`--'_..-_/ /--'_.' ,' | contact@xxxxxxxxxxxxxxxxxxx |
(il),-'' (li),' ((!.-' | www.perltraining.com.au |