eject: 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/eject - from package: eject
/usr/sbin/eject - from package: eject

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

On Debian possible default full paths are:

/usr/bin/eject - from package: eject

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