mycli icon indicating copy to clipboard operation
mycli copied to clipboard

logfile -l option not working with -e option

Open adriesponpo opened this issue 1 year ago • 2 comments

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.

adriesponpo avatar Mar 24 '23 11:03 adriesponpo

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

guo-shaoge avatar Apr 20 '23 02:04 guo-shaoge

Can you please write an example here? Thanks.

adriesponpo avatar Apr 20 '23 07:04 adriesponpo