pat2ppm: 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

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/pat2ppm - from package: xautomation

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