Re: W|tee|F? DataPump doesn't work with Unix tee function?

From: Adric Norris <spikey.mcmarbles_at_gmail.com>
Date: Thu, 2 Jul 2009 08:24:09 -0500
Message-ID: <d4beff360907020624h3fc5c4ffn639cc0f91ad8bd28_at_mail.gmail.com>



Perhaps expdp uses stderr instead of stdout for some reason? If so, something like this would probably work.

expdp username/incrediblysecretpassword parfile=x.par 2>&1 | tee -a somefile

On Thu, Jul 2, 2009 at 08:01, Bellows, Bambi (Comsys) <bbel5_at_allstate.com>wrote:

> Friends –
>
>
>
> I am trying to mechanize a datapump process and send an email if it fails.
> Problem is that
>
>
>
> expdp username/incrediblysecretpassword parfile=x.par|tee –a somefile
>
>
>
> does not, in fact, tee –a anything! I can do
>
>
>
> expdp username/incrediblysecretpassword parfile=x.par >somefile 2>somefile
>
>
>
> but that disables output to the screen, which the user running the job
> certainly wouldn’t like. So… three questions…
>
>
>
> 1) How do you get output onto the screen and into a file without
> using tee?
>
> 2) How in the world did Oracle manage to disable tee in the first
> place?
>
> 3) Why would they want to?
>
>
>
> Other than that, best wishes to all my good friends for a lovely holiday
> and/or quiet list day!
>
>
>
> Thanks!
>
> Bambi.
>

-- 
"I'm too sexy for my code." - Awk Sed Fred.

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Jul 02 2009 - 08:24:09 CDT

Original text of this message