pgmtoimgv: 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 Debian possible default full paths are:

/usr/bin/pgmtoimgv - from package: imgvtopgm

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