Bonsoir,
Ca fait une bonne dizaine de fois que j'essaie (mais sans r�sultat), de
faire en sorte que la commande suivante fonctionne. :
find /tmp \! -type d -atime 3 -exec rm -f {} \;
j'ai essay� aussi :
find /tmp \! -type d -atime 3 -exec rm -f "{}" \;
et :
find /tmp -atime 3 -exec rm -f {} \;
Mon but est d'effacer du r�pertoire /tmp les fichiers qui n'ont pas �t�
acc�d�s depuis plus de trois jours (j'ai lu �a dans le O'Reilly).
Ben �a marche pas, j'ai des quantit�s de fichiers et directories dans
mon r�pertoire /tmp, beaucoup sont de 0 byte, mais ils refusent de
s'effacer, et pourtant ils sont plus vieux et n'ont pas �t� acc�d�s
depuis bien plus que trois jours.
Je vais pas vous mettre tout ce qu'il y a, mais voici un tr�s bref
aper�u :
total 222
drwxrwxrwt 12 root root 16384 Feb 15 21:48 ./
drwxr-xr-x 19 root root 1024 Feb 6 12:32 ../
-rw------- 1 francois francois 0 Feb 15 21:43 .MediaCon950647388
-r--r--r-- 1 root francois 11 Feb 15 21:43 .X0-lock
drwxrwxrwt 2 root francois 1024 Feb 15 21:43 .X11-unix/
drwxrwxrwt 2 xfs xfs 1024 Feb 15 20:52 .font-unix/
-rw-rw-r-- 1 francois francois 4 Feb 15 21:43 .kmail501.lck
srwxr-xr-x 1 root root 0 Dec 12 17:29 .kmpg.945016179001542=
srwxr-xr-x 1 root root 0 Dec 12 17:29 .kmpg.945016179101542=
srwxr-xr-x 1 root root 0 Dec 12 17:30 .kmpg.945016203001558=
srwxr-xr-x 1 root root 0 Dec 12 17:30 .kmpg.945016203101558=
srwxr-xr-x 1 root root 0 Dec 12 17:30 .kmpg.945016215001571=
srwxr-xr-x 1 root root 0 Dec 12 17:30 .kmpg.945016215101571=
srwxr-xr-x 1 root root 0 Dec 19 19:25 .kmpg.94562795400952=
srwxr-xr-x 1 root root 0 Dec 19 19:25 .kmpg.94562795410952=
srwxr-xr-x 1 root root 0 Feb 7 21:24 .kmpg.94995507000962=
srwxr-xr-x 1 root root 0 Feb 7 21:24 .kmpg.94995507010962=
Comment puis je faire pour que �a marche ?
Merci d'avance. Francois