When I run the following for the mysql> promt:
USE database;
TEE out.log;
UPDATE...query...
the result ends up in out.log as expected. However when running the following command from CLI:
mysql -u user -pSECRET --tee out.log database < query.sql
out.log comes up blank. I've also tried
mysql -u user -pSECRET database < query.sql > out.log
with the same result (blank file). I'm having a heck of a time figuring out why. What am I missing?