OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
RE: spool log to a file

From: Mary Bahrami (mbahramiseattletimes.com)
Date: Tue Jul 29 2008 - 09:58:52 CDT


I use
mysql -uroot -pxxx -Dtest -s -e 'select * from amc_25;' > aaaa1.txt

but it would be nice to see other solutions...

-----Original Message-----
From: Ananda Kumar [mailto:anandklgmail.com]
Sent: Tuesday, July 29, 2008 6:37 AM
To: mysql
Subject: spool log to a file

Hi All,
I am executing below command, but there is no entires in aaaa1.txt, its
an
empty file. How can i write the logs into this file.

mysql -uroot -pxxx -Dtest -s --tee=aaaa1.txt -e 'select * from
amc_25;'

regards
anandkl

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql