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
|