Date: Sun, 11 Apr 2010 11:32:27 +0200 From: Jos Chrispijn <kernel@webrz.net> To: Doug Hardie <bc979@lafn.org> Cc: freebsd-questions@freebsd.org Subject: Re: Auto update Message-ID: <4BC1972B.1080603@webrz.net> In-Reply-To: <F02E5989-F279-4059-9858-EF36FDA726FC@lafn.org> References: <4BC168D8.7080900@webrz.net> <F02E5989-F279-4059-9858-EF36FDA726FC@lafn.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BC1972B.1080603>