From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,7fcfb63d9eee11f9 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-09-23 11:23:34 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!news2.near.net!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!abh From: Andrew Hastings Newsgroups: comp.unix.osf.misc Subject: Re: DCE: How to get host names Date: 23 Sep 1994 18:06:59 GMT Organization: Transarc Corp., Pittsburgh Message-ID: <35v5g3$321@cantaloupe.srv.cs.cmu.edu> References: NNTP-Posting-Host: m.gp.cs.cmu.edu Originator: abh@M.GP.CS.CMU.EDU In article jad@pimlico.nsa.hp.com (John Dilley) writes: :In article kaiser@slbwf0.bln.sel.alcatel.de (Rajk Kaiser) writes: : :> How can I get a list of all hosts configured in a DCE cell (in a program)? Is :> there an API in DCE (HP DCE 1.2) for this (probably it should be a CDS API)? : : The way I would do this from a program is to use popen(3), and :suffer with the performance problem you noticed (due, presumably, to the :extra fork() call required to open the pipe). If you want to examine :contents of a CDS directory directly you have to use the undocumented :CDSPI... Even if CDSPI were documented, the popen() route is much, much :simpler. DCE does have a documented way to query and update CDS: the XDS interface. It's not for the faint of heart, however. I'd go with the popen suggestion. I understand that OSF may be offering a more user-friendly interface in the future. -Andrew Hastings Transarc P.S. No, I can't answer any questions about XDS. Read the OSF DCE Application Development Guide and Application Development Reference.