[ic] Docs update

Grant emailgrant at gmail.com
Mon Jun 4 11:07:54 EDT 2007


> > 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

Thanks!

- Grant


More information about the interchange-users mailing list