visgrep: 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/visgrep - from package: xautomation

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