tosthreads-gen-dynamic-app: 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/tosthreads-gen-dynamic-app - from package: tinyos-tools

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