I want the find command to skip all nfs filesystems. I use the following syntax:
find / -fstype nfs -prune -o -name myfile -print
The (very frustrating) problem is that if the remote host for the nfs filesystem is down, find will still try to contact it even though I've told it prune all nfs filesystems. The result is a long timeout while it tries to talk to the remote server.
How do I structure a find command so that it completely ignores nfs filesystems and prevents those long delays when dealing with downed servers?
(I've encountered this problem both with AIX 4.3.3 and 5.2).
find / -fstype nfs -prune -o -name myfile -print
The (very frustrating) problem is that if the remote host for the nfs filesystem is down, find will still try to contact it even though I've told it prune all nfs filesystems. The result is a long timeout while it tries to talk to the remote server.
How do I structure a find command so that it completely ignores nfs filesystems and prevents those long delays when dealing with downed servers?
(I've encountered this problem both with AIX 4.3.3 and 5.2).