Modifying a crontab entry
About this task
The Administrator's Guide discusses
modifying crontab entries or other scripts to prevent recursion.
On Solaris systems, the standard cron job for removing old .nfs files
is now in the script /usr/lib/fs/nfs/nfsfind, which is
called by the root crontab, so you do not need a separate root
crontab entry for removing old .nfs files. However, you
can use the -prune option with any find commands in the crontab file
to prevent recursion into mounted VOBs.
For example, you can replace
an entry such as:
15 3 * * * find / –name core –mtime +7 –exec rm –f {} ';' –o –fstype nfs –prunewith
this entry: 15 3 * * * find / –name core –mtime +7 –exec rm –f {} ';' –o –fstype nfs –prune -o -fstype mvfs -prune