From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bba3658650d6908f,start X-Google-Attributes: gid103376,public From: shochat@roosevelt.logicon.com (David Shochat) Subject: Getting a list of logged-in users Date: 1996/05/03 Message-ID: #1/1 X-Deja-AN: 152889684 sender: shochat@roosevelt.logicon.com organization: Logicon Information Technology Group newsgroups: comp.lang.ada Date: 1996-05-03T00:00:00+00:00 List-Id: Is there any operation in POSIX for getting a list of logged-in users on the current host? It looks to me like I could do this by repeatedly calling getutent() (described in utmp.h), which I could write a simple Ada binding to. I'm trying to use Forest for this sort of thing, but I couldn't find anything there with this functionality. If there's something in some part of POSIX but not Forest, I'd like if possible to do the binding in as POSIX-compatible a way as possible. We're using gnat 3.03 on Solaris 2.3. -- David Shochat -- David Shochat dshochat@logicon.com shochat@roosevelt.logicon.com