jpegexiforient: 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/jpegexiforient - from package: libjpeg-turbo-progs

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