Re: How redirect command output into zip compressed (!) file ? Sample: "cmd .... >>mylogfile.zip"
- From: Tobias Nissen <tn@xxxxxxx>
- Date: Mon, 19 May 2008 11:44:59 +0200
Wolfgang Meister wrote:
I could execute a command with simple (=uncompressed) redirection like
cmd ...... >>mylogfile.txt &2>1
Ok. Now I want to do the same with a zip compressed logfile similar
to:
cmd ...... >>mylogfile.txt.zip &2>1
How can I tell the command to use a redirection to a zip (gzip or
bzip2) file?
In other words: You want to pipe the output (STDOUT and STDERR) of one
program through gzip and attach the gzipped stream to a file? Then
you can do this:
cmd ... 2>&1 | gzip >> mylogfile.txt.gz
Attachment:
pgpUdmOdsE7Ny.pgp
Description: PGP signature
- Prev by Date: Re: "nohup rsync ... >my.log &2>1" does not work
- Next by Date: Re: How do I list all processes currently running with "nohup" ?
- Previous by thread: Re: Science FICTION (was: Re: How redirect command output into zip compressed (!) file ? Sample: "cmd .... >>mylogfile.zip")
- Next by thread: Re: How redirect command output into zip compressed (!) file ? Sample: "cmd .... >>mylogfile.zip"
- Index(es):
Relevant Pages
|