Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!crdgw1!nieters From: nieters@copernicus.crd.ge.com (coolbean) Newsgroups: comp.unix.questions Subject: client/server identification Message-ID: Date: 31 Aug 90 13:17:19 GMT Sender: news@crdgw1.crd.ge.com Reply-To: nieters@copernicus.crd.ge.com Distribution: usa Organization: GE Corporate R&D, Schenectady, NY Lines: 25 hi 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? I'm after a program to do something like this % program machine "machine" is a server - OR - "machine" is a client of "server-machine" Looking through man pages, I see plenty of ways to deal with the current host or finding a machine's aliases, IP address, etc. but no information on who (if anyone) is its server. tnx. --ed -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Ed Nieters INTERnet: nieters@crd.ge.com GE Corporate R&D UUCPnet: uunet!crd.ge.com!nieters Schenectady, NY 12301 BELLnet: (518) 387-5187