User login time

Barry Margolin barmar at think.com
Tue Feb 5 17:57:27 AEST 1991


In article <8836 at hub.ucsb.edu> 6600bori at ucsbuxa.ucsb.edu (Boris Burtin) writes:
>I have been assigned by my company the task of writing a C program on a Sun  
>Sparcstation 1+ that will keep a user log.  The general idea is that it 
>determines when they logged on and off, and writes the information to a file.

SunOS already maintains just such a file.  Try the "last" command.
--
Barry Margolin, Thinking Machines Corp.

barmar at think.com
{uunet,harvard}!think!barmar



More information about the Comp.unix.programmer mailing list