cleanupDatabase.pl: 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/share/haci/bin/cleanupDatabase.pl - from package: haci

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