How can I redirect stdout from the ufsdump of a ufsdump|gzip command line?
e.g. starting with the following, how can I send the ufsdump stdout (and stderr) info to a logfile:
$ ufsdump 0uf - /home | gzip > /tmp/home.gz
I've tried:
$ ufsdump 0uf - /home | gzip > /tmp/home.gz >> /tmp/ufsdump.out 2>&1
and
$ ufsdump 0uf - /home >> /tmp/ufsdump.out 2>&1 | gzip > /tmp/home.gz
but either way, the dump itself gets written to the logfile.
e.g. starting with the following, how can I send the ufsdump stdout (and stderr) info to a logfile:
$ ufsdump 0uf - /home | gzip > /tmp/home.gz
I've tried:
$ ufsdump 0uf - /home | gzip > /tmp/home.gz >> /tmp/ufsdump.out 2>&1
and
$ ufsdump 0uf - /home >> /tmp/ufsdump.out 2>&1 | gzip > /tmp/home.gz
but either way, the dump itself gets written to the logfile.