#!/bin/bash while true: do inotifywait -r -e close_write,moved_to --format %f Téléchargement/ | while read file; do if [ -f $file ]; then clamdscan --fdpass -1 --move $HOME/infected $HOME/Téléchargement/$file; if [ "$?" == "1" ]; then notify-send "Virus détecté" "dans le fichier '$file'" --icon=dialog-warning fi fi done done