fam
[Top] [All Lists]

Re: using fam to monitor login/logoff

To: fam@xxxxxxxxxxx
Subject: Re: using fam to monitor login/logoff
From: Robert Sander <ml-linux-fam@xxxxxxxxxxxxxxx>
Date: Thu, 27 Mar 2003 08:06:44 +0000 (UTC)
Organization: Epigenomics AG
References: <Pine.LNX.4.44.0303270213400.14729-100000@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Reply-to: Robert Sander <gurubert-dated-1048752321.gppbiaij@xxxxxxxxxxxxxxx>
Sender: fam-bounce@xxxxxxxxxxx
User-agent: slrn/0.9.7.4 (Linux)
On Thu, 27 Mar 2003 07:30:57 +0000 (UTC),
 Anteneh Tesfaye <anteneh@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Hi,
> 
> I am not very familiar with Linux.  For this project I was working on, I
> wanted to monitor when people login and logoff from a Linux machine (not
> remotely).  Some people suggested that I shuld use FAM to monitor
> /dev/console and "trigger an action based on a changed to this file".
> However, the action I want to trigger is to send out a simple digital
> output (toggel between 1 and 0) to a parallel port (that will be connected
> to a breadboard or an Altera board).

Hi!

You do not need fam to monitor login/logout on a unix machine. This is
done by /bin/login writing to /var/log/wtmp. last(1) displays the
statistics, see its manpage.

Greetings
-- 
Robert Sander
Manager
Information Systems        www.epigenomics.com        Kastanienallee 24
+493024345330                                              10435 Berlin

<Prev in Thread] Current Thread [Next in Thread>