Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!sdd.hp.com!spool.mu.edu!boris.mscs.mu.edu!gill From: gill@boris.mscs.mu.edu (Vijay (Ender) Gill) Newsgroups: comp.unix.programmer Subject: Re: Users on a remote machine Message-ID: <527@spool.mu.edu> Date: 2 Mar 91 01:50:51 GMT References: <1991Mar1.232038.6962@rlgvax.Reston.ICL.COM> Sender: news@spool.mu.edu Organization: Marquette University - Department MSCS Lines: 18 In article <1991Mar1.232038.6962@rlgvax.Reston.ICL.COM> scc@rlgvax.OPCR.ICL.COM (Stephen Carlson) writes: >Does anybody know a straightforward and fairly protable way to determine >from a C program whether a certain user exists on a certain remote machine? > [--deleted--] >Stephen Carlson | ICL OFFICEPOWER Center | In theory, theory and >scc@rlgvax.opcr.icl.com | 11490 Commerce Park Drive | practice are the same. The Unix finger command should work. For specific code, see source code at uunet.uu.net, in bsd-sources. This should provide you with the guts of the program, though you will have to work on it to fit in with the rest of your program (I assume) you are writing. It would be too bad if you are rewriting finger :-). cheers -dicky gill (Violator) -gill@boris.mscs.mu.edu