Article View: comp.sys.sequent
Article #843problem with find and NFS
From: pwolfe
Date: Mon, 15 May 1989 00:20
Date: Mon, 15 May 1989 00:20
29 lines
1619 bytes
1619 bytes
I would like to have my daily maintenance scripts search all local filesystems
for temporary files and core dumps that haven't been accessed in three days and
delete them. I would also like to do this without getting hundreds of the
following error messages every night for every top level directory on every NFS
mounted remote file system.
find: bad status < dirname >
find: bad directory < dirname2 >
find: cannot open < dirname2 >
Our systems all use NFS and have many disk partitions from other systems
mounted permanently. The problem stems from the fact that root does not have
"root access" on NFS file systems (yes, I know it is a configurable option, but
I like it that way). Sequent has added the "-fstype" and "-prune" options to
the find command for this purpose, but I can't get these options to work.
The command:
find / -type f \( -fstype nfs -prune \) \
-o \( -name '#*' -o -name 'core' \) \
-atime +3 -exec ls -aFgl {} \; -exec rm -f {} \;
produces the same error messages as:
find / -type f \( -name '#*' -o -name 'core' \) \
-atime +3 -exec ls -aFgl {} \; -exec rm -f {} \;
Patrick Wolfe (pat@kai.com, {uunet,uiucuxc,sequent}!kailand!pat)
System Manager, Kuck and Associates, Inc.
Technical Details
Message-ID:
<2400044@kailand>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!uxc!uxc.cso.uiuc.edu!kailand!pwolfeShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!uxc!uxc.cso.uiuc.edu!kailand!pwolfe From: pwolfe@kailand.kai.com Newsgroups: comp.sys.sequent Subject: problem with find and NFS Message-ID: <2400044@kailand> Date: 15 May 89 00:20:00 GMT Lines: 29 Nf-ID: #N:kailand:2400044:000:1221 Nf-From: kailand.kai.com!pwolfe May 14 19:20:00 1989