useprogram-inside-begin: 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/lib64/piglit/bin/useprogram-inside-begin - from package: piglit

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