finding NFS dirs in csh?

Roy Smith roy at phri.UUCP
Thu Dec 4 02:08:49 AEST 1986


In article <772 at gcc-milo.ARPA> brad at gcc-milo.ARPA (Brad Parker) writes:
> I need to tell if a directory is a remote mount point or below a remote
> mount point. I want to exclude remote directories in a script which
> spans the file systems from root (/) - you know... "find / ..."

	I usually do a "df ." to find out if the current directory is local
or remote.  You could grab the output of df inside your program (grody!) or
grab the source for Sun's df (assuming you have source) and see how df
figures it out.
-- 
Roy Smith, {allegra,cmcl2,philabs}!phri!roy
System Administrator, Public Health Research Institute
455 First Avenue, New York, NY 10016

"you can't spell deoxyribonucleic without unix!"



More information about the Comp.unix.questions mailing list