hp-sendfax: 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/hp-sendfax - from package: hplip

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

On Debian possible default full paths are:

/usr/bin/hp-sendfax - from package: hplip-gui

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