tos-write-image: 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/tos-write-image - from package: tinyos-tools

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