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

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

On Debian possible default full paths are:

/usr/bin/xdotool - from package: xdotool

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