External tools - result is printed into console instead of file
Some time ago I configured an external remote tool for making a DB backup:
mysqldump -h xxx -u xxx --password=xxx --databases xxx > backup_$(date +%Y-%m-%d-%H.%M.%S).sql
Everything worked fine. Today I tried to run such command and IDE printed all output to the console. Running that command directly from command line works fine. Last time when I ran that tool from IDE it also worked fine. It was on 2018-08-03.
Has something changed since then or it's a bug?
My current IDE version is: 2018.2.5
On that time I've got latest stable version of phpStorm (not EAP) but I can't remember numbers.
请先登录再写评论。
please see comments in https://youtrack.jetbrains.com/issue/IDEABKL-6481 for possible workarounds
Wrapping arguments line with quotes caused another error:
Without quotes command runs fine, but with output to console. Unfortunatelly it looks like server doesn't allow to quoting arguments in this case.
You can create a bash script that runs your command, and configure this script as external tool