Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!ogicse!ucsd!hub.ucsb.edu!ucsbuxa!6600bori From: 6600bori@ucsbuxa.ucsb.edu (Boris Burtin) Newsgroups: comp.unix.programmer Subject: User login time Message-ID: <8836@hub.ucsb.edu> Date: 5 Feb 91 02:00:37 GMT Sender: news@hub.ucsb.edu Distribution: comp Lines: 10 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. The problem is this: I would like to determine both the login and logout times in one program (executed from .logout). Is there a library function that returns the time that the user logged into the machine? Or does that have to be done at the time that it happens (from .login)? - Boris Burtin (6600bori@ucsbuxa.ucsb.edu)