[clue] Pipes and compression

Chris Fedde chris at fedde.us
Fri Dec 16 22:07:32 MST 2011


sometimes tools that require a -output argument will accept a dash ( -
) to represent stdout.   But if that does not work you can still use
named pipes:

mknod foo p
backup ... --output=foo; gzip < p > foo.gz
rm foo

On Fri, Dec 16, 2011 at 8:18 PM, Jason Friedman <jason at powerpull.net> wrote:
> I am using an application that allows me to back up its contents using
> a command:
> $ backup --user=user --pass=password --outputfile=/path/to/my/backup
>
> --outputfile is a mandatory option, I cannot redirect to STDOUT.
>
> The output is large and I compress after-the-fact.  Is there a way to
> use a pipe as "outputfile" and backup-and-compress in a single step?
> _______________________________________________
> clue mailing list: clue at cluedenver.org
> For information, account preferences, or to unsubscribe see:
> http://cluedenver.org/mailman/listinfo/clue


More information about the clue mailing list