mgrtopbm: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/mgrtopbm - from package: netpbm-progs

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/mgrtopbm - from package: netpbm

You may install the required package with command apt-get install {package}
Error in other languages:
mgrtopbm: bevel nie gevind nie
mgrtopbm: comandă negăsită
mgrtopbm: comando não encontrado
mgrtopbm: commande introuvable
mgrtopbm: command not found
mgrtopbm: käsku ei ole
mgrtopbm: không tìm thấy lệnh
mgrtopbm: komanda nerasta
mgrtopbm: Kommando nicht gefunden.
mgrtopbm: kommandot finns inte
mgrtopbm: komut yok
mgrtopbm: nie znaleziono polecenia
mgrtopbm: níor aimsíodh an t-ordú
mgrtopbm: no se encontró la orden
mgrtopbm: no s'ha trobat l'ordre
mgrtopbm: opdracht niet gevonden
mgrtopbm: parancs nem található
mgrtopbm: perintah tidak ditemukan
mgrtopbm: príkaz nenájdený
mgrtopbm: příkaz nenalezen
mgrtopbm: команда не найдена
mgrtopbm: командата не е открита
mgrtopbm: 命令找不到
mgrtopbm: コマンドが見つかりません