just to confirm, running 

.output result.html
.mode html

Then running a query, produces output on stdout for you?