lp-grab-attachments: 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/lp-grab-attachments - from package: lptools

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