Snort mailing list archives

Re: -l parameter


From: Dirk Geschke <Dirk_Geschke () genua de>
Date: Wed, 10 Dec 2003 10:06:08 +0100

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




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users


Current thread: