I have a process that is producing a big amount of log to the standard output in a short period of time. Is there a way to zip the standard output of my process to a file.
I am searching for something like: ./process | zip output.log.zip
You can do this with zip too
your-command | zip -q output.log.zip -
The output from your-command will be stored in the zip with afilename of -
.
I did like to improve on above answer.
This should work.
you-command | zip somename.zip -@
zip
andgzip
are two very different beasts.