Re: Make "exp" be quiet
From: codadilupo <yossarian99_at_operamail.com>
Date: Tue, 26 Feb 2008 09:18:06 +0100
Message-ID: <47c3cb3e$0$21204$5fc30a8@news.tiscali.it>
Date: Tue, 26 Feb 2008 09:18:06 +0100
Message-ID: <47c3cb3e$0$21204$5fc30a8@news.tiscali.it>
Michael Schmarck wrote:
> exp ${ora_user}/${ora_pass} FILE=/tmp/test.exp LOG=/tmp/test.exp.log \
> DIRECT=Y FULL=Y STATISTICS=NONE > /dev/null
>
> But despite the "> /dev/null", exp writes something on the terminal.
That's because exp writes messages on standard error, not on the standard input.
Try:
exp ${ora_user}/${ora_pass} FILE=/tmp/test.exp LOG=/tmp/test.exp.log \ DIRECT=Y FULL=Y STATISTICS=NONE 2>/dev/null
> How can I make "exp" shut up and only "say" something, when there's
> an error?
I don't think this is possible. You have to grep through /tmp/test.exp.log and search for errors.
HTH - C. Received on Tue Feb 26 2008 - 02:18:06 CST