From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Goirand Date: Mon, 11 Oct 2010 13:59:14 +0000 Subject: Re: [mlmmj] mlmmj-maintd recursively Message-Id: <4CB31832.5020006@goirand.fr> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: mlmmj@mlmmj.org Ben Schmidt wrote: > On 11/10/10 9:35 PM, Florian Effenberger wrote: >> Hi, >> >> 2010/10/6 Ben Schmidt: >> >>>> Use the -maxdepth option then! >>>> >>>> find /var/spool/mlmmj/ -mindepth 1 -maxdepth 1 -type d \ >>>> /usr/bin/mlmmj-maintd -F -d {} \; >>>> >>>> the -mindepth 1 will remove /var/spool/mlmmj/ itself that would be >>>> otherwise listed... >>> >>> Wonderful! I should work on my find(1) voodoo. >>> >>> I have integrated this into the README for future releases. It will show >>> up in version control once I get around to pushing it. >> >> at least on Ubuntu, it has to read >> >> find /var/spool/mlmmj/ -mindepth 1 -maxdepth 1 -type d -exec >> /usr/bin/mlmmj-maintd -F -d {} \; >> >> (you were missing the -exec) > > Oops! Thanks. Fixed. > > Ben. When I wrote "hint", in meant: "I'm using something unchecked from the top of my head, please test anything before writing a doc, or using it in production" :) So yes, the correct way was: find /var/spool/mlmmj/ -mindepth 1 -maxdepth 1 -type d \ -exec /usr/bin/mlmmj-maintd -F -d {} \; Thomas