[ic] Docs update

Davor Ocelic docelic at hcoop.net
Mon Jun 4 05:27:57 EDT 2007


On Fri, Jun 01, 2007 at 05:12:59PM -0700, Grant wrote:
> I've been using the script from here:
> 
> http://www.icdevgroup.org/docs/glossary/expire.html
> 
> in a crontab as follows:
> 
> # find /pathtocat/tmp -type f -mtime +3 | xargs --no-run-if-empty rm
> # find /pathtocat/tmp -type d -empty -mtime +3 -depth | xargs
> --no-run-if-empty rmdir
> # find /pathtocat/session -type f -mtime +3 | xargs --no-run-if-empty rm
> # find /pathtocat/session -type d -empty -mtime +3 -depth | xargs
> --no-run-if-empty rmdir
> 
> Today I tried to run these commands manually and I got:
> 
> "find: warning: you have specified the -depth option after a
> non-option argument -type, but options are not positional (-depth
> affects tests specified before it as well as those specified after
> it).  Please specify options before other arguments."
> 
> I moved the -depth option and the commands executed without error:
> 
> # find /pathtocat/tmp -type f -mtime +3 | xargs --no-run-if-empty rm
> # find /pathtocat/tmp -depth -type d -empty -mtime +3 | xargs
> --no-run-if-empty rmdir
> # find /pathtocat/session -type f -mtime +3 | xargs --no-run-if-empty rm
> # find /pathtocat/session -depth -type d -empty -mtime +3 | xargs
> --no-run-if-empty rmdir
> 
> Should the docs be updated?

Updated, thanks. You can send future docs updates to
docs at icdevgroup.org . It is a mailing list to which you can also
subscribe:

  http://www.icdevgroup.org/mailman/listinfo/docs

-doc


More information about the interchange-users mailing list