Modèle:Boîte déroulante/fin
De Wiki de Projets IMA
#!/bin/sh # CONFIGURATION DIR="path" EVENTS="create" # MAIN inotifywait -m -e $EVENTS --timefmt '%Y-%m-%d %H:%M:%S' --format '%$ while read date time file do echo "$date $time Fichier recu: $file"; rm -rf $DIR/$file; ls $DIR; echo "Has $file been removed ?"; done