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

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