Subversion Repositories ALCASAR

Rev

Rev 958 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
672 richard 1
#!/bin/bash
174 franck 2
# $Id: alcasar-import-clean.sh 1056 2013-03-26 21:46:36Z stephane $
170 franck 3
 
672 richard 4
# alcasar-import-clean.sh
5
# by Franck BOUIJOUX
6
# This script is distributed under the Gnu General Public License (GPL)
518 stephane 7
 
672 richard 8
# nettoyage des fichiers de mots de passe générés après l'import d'une liste de nom (après 24h).
9
# delete password files generated during the importation of a names list (after 24 hrs)
10
 
170 franck 11
DATE=`date +%F`
12
REP="/tmp"
179 franck 13
delay=0
170 franck 14
 
15
find $REP -mtime +$delay -name '*.pwd' -exec rm -f {} \;
16
 
17
exit 0