in reply to Limitations to chmod and performance
You might consider system 'find'.
find2perl can translate such a command to pure perl, but it doesn't understand +signed notation for the -perm any-bit argument (version dated 1998/04/07, easy to fix that).$ find /the/dir -name \*.dat -not -perm 644 -exec chmod 644 \{\} \;
Whatever solution you use, you can prune statting all regular files in a dir whose mtime is prior to the last run. chmod acts on the inode, not the file, so the directory times are what counts.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Limitations to chmod and performance
by stefan k (Curate) on Nov 12, 2001 at 21:04 UTC | |
|
Re: Re: Limitations to chmod and performance
by stefp (Vicar) on Nov 13, 2001 at 06:59 UTC |