View Single Post

   
  #3 (permalink)  
Old 02-28-2008, 07:17 AM
Joerg Bruehe
 
Posts: n/a
Default Re: spool data/log into a file.

Hi Michale, all


mizioumt@netscape.net wrote:
> most likely you just need to redirect STDERR to tee as well so it's not
> a mysql problem:
>
> mysql -u -p -f << eof 2>&1 | tee ttt.txt
> ...
>
> assuming it's Bourne or ksh, don't remember what's csh for 2>&1


It is an appended '&': prog >& file
prog |& tee ...

But remember this one:
http://www.gregor.com/dgregor/csh_whynot.html

Regards,
Joerg

--
Joerg Bruehe, Senior Production Engineer
MySQL AB, www.mysql.com
Office: (+49 30) 417 01 487 VoIP: 4464@sip.mysql.com
Reply With Quote