[Mimedefang] Temp Directories

Paul freebsd at pksnet.com
Mon Mar 24 17:12:01 EST 2003


>find /var/spool/MIMEDefang -name 'mdefang-*' -type d -mtime +7 -maxdepth 1 | \
>	xargs rm -r
>(This works on Linux; not sure if the UNIX "find" supports "-maxdepth".)

FreeBSD supports it as well. From 'man find':

-maxdepth n
   True if the depth of the current file into the tree is less than
   or equal to n.

Thanks for this one, it's cronned now...






More information about the MIMEDefang mailing list