[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stdout in script



On 03/21/15 06:35, Tim Bishop wrote:
> I was going to suggest that but the manual page says stdout:
> 
>      Statistics on archives can be printed by running tarsnap --print-stats
>      and during archive creation or deletion statistics on the created or
>      deleted archive can be printed using the --print-stats option.  In either
>      case, tarsnap will print to the standard output a table in the following
>      format:
> 
> Mistake?

Hmm, yes.  If you run `tarsnap --print-stats`, the statistics go to stdout,
but if you run `tarsnap -[cd] --print-stats` the statistics go to stderr.

-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid