From owner-freebsd-questions@FreeBSD.ORG Sun Apr 11 09:32:27 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B48611065670 for ; Sun, 11 Apr 2010 09:32:27 +0000 (UTC) (envelope-from kernel@webrz.net) Received: from webrz.xs4all.nl (webrz.xs4all.nl [82.95.248.216]) by mx1.freebsd.org (Postfix) with ESMTP id 6DD5B8FC17 for ; Sun, 11 Apr 2010 09:32:27 +0000 (UTC) Received: from webrz.xs4all.nl (localhost [127.0.0.1]) by webrz.xs4all.nl (Postfix) with ESMTP id C3EF05099B; Sun, 11 Apr 2010 11:32:26 +0200 (CEST) Received: from [10.10.10.71] (acheron.webrz.net [10.10.10.71]) by webrz.xs4all.nl (Postfix) with ESMTP id A44B0508A2; Sun, 11 Apr 2010 11:32:26 +0200 (CEST) Message-ID: <4BC1972B.1080603@webrz.net> Date: Sun, 11 Apr 2010 11:32:27 +0200 From: Jos Chrispijn User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: Doug Hardie References: <4BC168D8.7080900@webrz.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AV-Checked: ClamAV using ClamSMTP @triton.webrz.net Cc: freebsd-questions@freebsd.org Subject: Re: Auto update X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Apr 2010 09:32:27 -0000 On 11-4-2010 9:41, Doug Hardie wrote: > A cheesy way to do that is to use a popen ("tail -f > /var/log/auth.log", "r") and then read that. It will give you every > login regardless of ssh, telnet etc. You could then generate the > emails from that. I have no idea just how resource intensive this > might be. You would also have to ensure it got started by rc during > boot._______________________________________________ In order to find out if someone logged in, I should then first copy auth.log to auth2.log, and do a compare and then do the tail trick. Have to cron that every half a minute. I would like to know if there is something that is alterted on the moment that someone logs on thus forcing evt. your tail suggestion thanks, Jos Chrispijnj