oldlog2new: 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/sbin/oldlog2new - from package: wwwstat

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