Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!cmcl2!phri!roy From: roy@phri.UUCP (Roy Smith) Newsgroups: comp.unix.questions Subject: Re: finding NFS dirs in csh? Message-ID: <2522@phri.UUCP> Date: Wed, 3-Dec-86 11:08:49 EST Article-I.D.: phri.2522 Posted: Wed Dec 3 11:08:49 1986 Date-Received: Thu, 4-Dec-86 02:46:03 EST References: <772@gcc-milo.ARPA> Reply-To: roy@phri.UUCP (Roy Smith) Organization: Public Health Research Inst. (NY, NY) Lines: 15 In article <772@gcc-milo.ARPA> brad@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!"