MySQL Forums
Forum List  »  Newbie

Re: Ascii text boxes disappear when query output is redirected
Posted by: Michael Lueck
Date: August 20, 2010 08:25PM

Getting even closer... now I get a zero (0) length temp file using the following bash script:

MYSQL='/usr/bin/mysql -u uid --password=**** --tee=/srv/www/sites/ dbname'
$MYSQL -e 'SELECT DISTINCT `message`, `location`, `referer` FROM `watchdog` WHERE `referer` LIKE "" AND `type` = "page not found" ORDER BY `location`, `referer`;'

The query output still appears on the console.

Options: ReplyQuote

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.