client/server identification

Jeff Beadles jeff at onion.pdx.com
Sun Sep 2 10:11:31 AEST 1990


nieters at 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 at onion.pdx.com



More information about the Comp.unix.questions mailing list