This is a discussion on Re: [Snort-users] -l parameter within the Snort forums, part of the System Security and Security Related category; Hi, > find /var/log/snort -atime +7 -type f -exec rm -rf {} \; > > instead of > > find /...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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/...fo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.p...st=snort-users |