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

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

On Debian possible default full paths are:

/usr/bin/autoexpect - from package: expect

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