I believe this also affects pt-kill when run from cron. I'd be happy to supply a patch, but I'm not sure which behavior is intended. The docs say that '-' specified as a file trigger reading STDIN, however the last usage example shows STDIN detection:
mysql -e "SHOW PROCESSLIST" | pt-kill --busy-time 60 --print
My personal preference would be for pt-kill to require '-' when used in this way.
I believe this also affects pt-kill when run from cron. I'd be happy to supply a patch, but I'm not sure which behavior is intended. The docs say that '-' specified as a file trigger reading STDIN, however the last usage example shows STDIN detection:
mysql -e "SHOW PROCESSLIST" | pt-kill --busy-time 60 --print
My personal preference would be for pt-kill to require '-' when used in this way.