dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
http://mycli.net
Other
11.49k stars 663 forks source link

logfile -l option not working with -e option #1108

Open adriesponpo opened 1 year ago

adriesponpo commented 1 year ago

Hi,

In the man I read:

-l, --logfile FILENAME Log every query and its results to a file.

But if I run:

mycli -v -h thehost -P theport-u theuser -p thepassword -e "thecommand" --logfile result.log -t

result.log is empty, while I was expecting to find the outpot of the command passed in -e

Is this the wanted behaviour?

Thanks.

guo-shaoge commented 1 year ago

Got the same problem, I use shell redirection as workaround.

adriesponpo commented 1 year ago

Can you please write an example here? Thanks.