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

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