[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] Docs update


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
suppressed . It is a mailing list to which you can also
subscribe:

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

-doc
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.