Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!rochester!cornell!uw-beaver!zephyr.ens.tek.com!tektronix!nosun!tessi!onion!jeff From: jeff@onion.pdx.com (Jeff Beadles) Newsgroups: comp.unix.questions Subject: Re: client/server identification Message-ID: <1990Sep2.001131.3388@onion.pdx.com> Date: 2 Sep 90 00:11:31 GMT References: Distribution: usa Organization: Little to none. Lines: 18 nieters@copernicus.crd.ge.com writes: > Does anyone know of a way (either via a C system call or >an existing Unix program) to determine if a given machine name is >a) a server or a client and b) if it is a client, what its server is? Are you talking about a diskless workstation and/or server? If so, then the output of the "df" command should be radically different. Or, from a C program, you can do a "statfs" on "/", and look at the resulting statfs structure. Man page references: df(1), statfs(2) Hope this helps-- -Jeff -- Jeff Beadles jeff@onion.pdx.com