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

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