Comment 1 for bug 894255

Revision history for this message
James Byers (jbyers) wrote : Re: pt-kill: when --daemonize is given, should not check that stdin is a tty

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.