expect_xpstat: 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

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

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