Modèle:Boîte déroulante
De Wiki de Projets IMA
Révision datée du 11 avril 2012 à 12:31 par Achemin (discussion | contributions)
CONTENU
#!/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