On 31-mrt-2007, at 21:56, Jorge Peixoto de Morais Neto wrote:
On 3/31/07, Jorge Peixoto de Morais Neto <please.no.spam.here@gmail.com> wrote: I'm using a simple script for making backups with tar. I can't make tar quiet, so cron keeps mailing me 'Removing leading `/' from member names' . Adding > /dev/null doesn't help. What can I do to catch tar's output and keep it from shouting all over the place?
a "> /dev/null" redirects stdout to /dev/null, but stderr is left untouched.
a "&> /dev/null" redirects both stdout and stderr to /dev/null.
Yep, that did the trick
Will look at this, looks better than the howto I used until now.