[Novalug] capturing rsync error output?
Kevin Dwyer
kevin at pheared.net
Thu Dec 20 16:49:52 EST 2007
By the way, there is a shortcut for "> outfile 2>&1" which is: "&> outfile"
or ">& outfile"
The bash manpage prefers the first.
On 12/20/07, Brandon Saxe <brandon20va at yahoo.com> wrote:
>
> I see what you are saying. I will try this when I get
> home.
>
> Thanks!
>
> --- Mark Smith <mark at winksmith.com> wrote:
>
> > your shell redirects are not ordered correctly.
> > ordering is important.
> > these two are NOT the same:
> >
> > program > output 2>&1
> > program 2>&1 > output
> >
> > you need to do the first form. iow, redirect stdout
> > first, then redirect
> > stderr to the same place as stdout.
> >
> > On Thu, Dec 20, 2007 at 06:19:00AM -0800, Brandon
> > Saxe wrote:
> > > rsync -avz brandon /nas/oldbak/backup/shared/homes
> > 2>&1 > /nas/oldbak/rsync.log
> >
> > --
> > Mark Smith
> > mark at winksmith.com
> > mark at tux.org
> >
>
> _______________________________________________
> Novalug mailing list
> Novalug at calypso.tux.org
> http://calypso.tux.org/cgi-bin/mailman/listinfo/novalug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://calypso.tux.org/pipermail/novalug/attachments/20071220/d6f622f4/attachment.htm
More information about the Novalug
mailing list