Problem with "find": I get a "cannot stat <file>" error
John Whitehead
jfw at neuro.duke.edu
Mon Oct 8 07:30:00 AEST 1990
I have a problem on my SparcStation 1 running SunOS 4.1 with the command
"find": it gives me a "No such file" error for many files that do indeed
exist. This did not occur when we were under 4.0.3. The errors look
something like this:
find: cannot stat /tmp: No such file or directory
find: cannot stat /var: No such file or directory
find: cannot stat /dev: No such file or directory
find: cannot stat /mnt: No such file or directory
find: cannot stat /sbin: No such file or directory
find: cannot stat /bin: No such file or directory
and so on for dozens of file names of real files. They reside in all of
our three physical drives, symbolically linked eventually to the root drive.
The commands we use that will cause the errors is
find . -name <searchstring> -print
find /var/preserve/ -mtime +7 -a -exec rm -f {} \;
and
find / -name core -atime +7 -exec rm -f {} \;
The first one is something I tried typing as root from the root directory,
the second two are lines from a cron job.
Does anyone know what is going on here, and how I can correct whatever we
must have done (not done) when upgrading to 4.1?
Thanks.
John Whitehead Internet: jfw at neuro.duke.edu
Department of Neurobiology jfw at well.sf.ca.us
Duke University Medical Center Bitnet: white002 at dukemc
Durham, North Carolina
More information about the Comp.sys.sun
mailing list