[Snort-users] -l parameter

Dirk Geschke Dirk_Geschke at ...1344...
Wed Dec 10 01:07:01 EST 2003


Hi,

>     find /var/log/snort -atime +7 -type f -exec rm -rf {} \;
> 
> instead of
> 
>     find /var/log/snort -atime +7 -exec rm -rf {} \;
> 
> The -type f lists just files, not directories

and in addition remove the option "-r" from the rm command,
files aren't recursive...

And what about "-f"? This won't report any mistakes/errors. 
So I would say remove it too and look for the output. (If
rm fails due to wrong permissions you won't recognize it.) 
So finally use:

 find /var/log/snort -atime +7 -type f -exec rm {} \;

Regards

Dirk






More information about the Snort-users mailing list