On Wed, 17 Sep 2003 at 09:26:04 +1200, Jason Haar wrote: > On Mon, Sep 15, 2003 at 11:15:52PM -0500, [EMAIL PROTECTED] wrote: > > That detected the problem on my system. > > Actually, we really shouldn't go down that path. It's already difficult > enough trying to support "all Unices". Can you (or some other Solaris site) > figure out how to do the same function using the standard Solaris "find", > and see if the GNU "find" can be called the same way? I really don't want to > have to put in OS-specific hacks if I don't have to...
The patch isn't so much an OS-specific workaround as it just checks to see if the system's version of find supports -mmin and -path, suggesting GNU find if it does not. Doing without -mmin isn't bad, you just use -mtime +1 to do anything greater than a day. Solaris find only works in per-day increments. Doing without -path, however, is a little clunky. find /var/spool/qmailscan -type f \( ! -name '*.log' ! -name '*.txt' ! -name '*.db' \) -mtime +1 -print |egrep -v "quarantine/|archives/" | xargs /usr/bin/rm -f -- Jason ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general