cwgen: 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/cwgen - from package: cw

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