The gstat/gpresd package contains a server (gpresd) for tracking the status of Gale users in a domain, and a client (gstat) for querying gpresd.
For more information about Gale, check www.gale.org.
The server should be set up as described in the README file. The client takes Gale IDs as arguments, and outputs the result of the query.
Example:
tiamat:~$ gsub tiamat:~$ ! 2000-05-19 20:02:36 gsub notice: connected to tiamat.litech.org (24.95.169.15:11512) tiamat:~$ gstat lutchann == lutchann@litech.org == Full name: Nathan Lutchansky Client: gsub/0.91b Logged in at 2000-05-19 20:02:36 on tiamat as lutchann on tty 12 Status: in/present == lutchann@litech.org == Full name: Nathan Lutchansky Client: gsubi/0.91b Logged in at 2000-05-19 18:33:31 on tiamat as lutchann on tty 11 Status: in/present tiamat:~$
If the user is logged in one or more times, gstat will report the last-seen presence messages from each of the user's clients. If the user is currently logged out, gstat will report the last-seen presence message.
The -P flag will cause gstat to revert to gwatch-style pings rather than using the gpresd server. This is handy for checking the presence of users in domains not running gpresd, or with a broken gpresd.
The -l flag will cause gstat to print the last-seen presence message for all users, regardless of whether they have logged out. This is helpful for seeing logout messages for users who leave multiple clients logged in at once.
If you have problems, please contact me at nathan-web-649@uma.litech.org.
The gstat package may be downloaded from: