pilfile.py: 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/pilfile.py - from package: python-pil

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