Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!oberon!bbn!rochester!cornell!uw-beaver!ssc-vax!uvicctr!tholm From: tholm@uvicctr.UUCP (Terrence W. Holm) Newsgroups: comp.os.minix Subject: who(1) Message-ID: <439@uvicctr.UUCP> Date: 8 Jun 88 23:03:14 GMT Reply-To: tholm@uvicctr.UUCP (Terrence W. Holm) Organization: University of Victoria, Victoria B.C. Canada Lines: 55 [Sorry, the network just barfed back at me that something called an MTA was busy, and the previous copy of this message was lost. So I don't know how far it got. Since it's short, I am simply reposting it.] EFTH Minix report #22 - June 1988 - who(1) This is an implementation of who(1) that we wrote for Minix. Please consider this a public domain program. A "man" page is included. echo x - who.1 gres '^X' '' > who.1 << '/' XNAME X who(1) - who is currently on the system X XSYNOPSIS X who [ user | device | am i ] X XDESCRIPTION X If no options are given then who(1) displays the name, X terminal port and log-in time for all of the present X users. X X A "user" or "device" name checks for a current log-in X by the "user" or at the "device". If two arguments are X given then who(1) only reports on the current session. X XFILES X /usr/adm/wtmp X XSEE ALSO X last(1), whoami(1) / echo x - who gres '^X' '' > who << '/' X#!/bin/sh X# who(1) efth 1988-June-3 X Xif test $# -eq 2; then set `tty | gres '^.....' ''`; fi X Xlast -r $1 | grep 'n$' | \ X gres '^(........ ........) (................) ....(............).*$' \ X '\1 \3 \2' / -------------------------------------------------------------------- Edwin L. Froese uw-beaver!ubc-cs!mprg!handel!froese Terrence W. Holm uw-beaver!ubc-cs!uvicctr!sirius!tholm