Path: utzoo!censor!geac!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!barmar From: barmar@think.com (Barry Margolin) Newsgroups: comp.unix.programmer Subject: Re: User login time Message-ID: <1991Feb5.065727.14674@Think.COM> Date: 5 Feb 91 06:57:27 GMT Article-I.D.: Think.1991Feb5.065727.14674 References: <8836@hub.ucsb.edu> Sender: news@Think.COM Distribution: comp Organization: Thinking Machines Corporation, Cambridge MA, USA Lines: 11 In article <8836@hub.ucsb.edu> 6600bori@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@think.com {uunet,harvard}!think!barmar