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:

#!/bin/bash
MYSQL='/usr/bin/mysql -u uid --password=**** --tee=/srv/www/sites/someorg.org/tmp/drupal_404-query.tmp dbname'
$MYSQL -e 'SELECT DISTINCT `message`, `location`, `referer` FROM `watchdog` WHERE `referer` LIKE "%someorg.org%" 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.