LP #966703: pt-summary outputs an error instead of running df -h -P and top -bn 1

Description

**Reported in Launchpad by Fernando Ipar last update 11-06-2012 15:49:02

localhost:/home/percona# ./pt-summary >/dev/null
./pt-summary: 1229: df -h -P: not found
./pt-summary: 1229: top -bn 1: not found
localhost:/home/percona#

This change makes it work in this system (Debian 6.0.4):

localhost:/home/percona# diff -e pt-summary pt-summary-patched
1202c
eval $cmd | sed -e 's# *$##g' -e '/./{H;$!d;}' -e 'x;/PID/!d;' | grep . | head
.
1065c
eval $cmd | sort > $TMPDIR/percona-toolkit2
.

Environment

None

Smart Checklist

Activity

lpjirasync January 24, 2018 at 6:30 PM

**Comment from Launchpad by: Brian Fraser on: 11-06-2012 15:49:01

This was fixed on the 2.1 release of the toolkit, when most of pt-summary was rewritten, but never tagged as such.

Done

Details

Assignee

Reporter

Priority

Smart Checklist

Created January 24, 2018 at 6:29 PM
Updated January 24, 2018 at 6:30 PM
Resolved January 24, 2018 at 6:30 PM