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

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