Sample-NiRecordSynthetic: 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 Debian possible default full paths are:

/usr/bin/Sample-NiRecordSynthetic - from package: openni-utils

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