Thank you all for your kind replies; I will use the information as you
suggested (including the -F :-)
regards,
Jos Chrispijn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe,
On 11 April 2010 18:32, Randal L. Schwartz mer...@stonehenge.com wrote:
Jos == Jos Chrispijn ker...@webrz.net writes:
Jos In order to find out if someone logged in, I should then first copy
auth.log
Jos to auth2.log, and do a compare and then do the tail trick. Have to
cron that
Jos every
Can someone tell me if there is a way of generating an email on the
moment that someone logs in to my FreeBSD server? The mail part
(phpmail) will be easy; I don't know yet how to trigger and pass
parameter to this script or redirect info to a file (that I then send by
email). Thanks.
Jos
On Sun 2010-04-11 08:14:48 UTC+0200, Jos Chrispijn (ker...@webrz.net) wrote:
Can someone tell me if there is a way of generating an email on the
moment that someone logs in to my FreeBSD server?
By which method? SSH?
___
On 10 April 2010, at 23:14, Jos Chrispijn wrote:
Can someone tell me if there is a way of generating an email on the moment
that someone logs in to my FreeBSD server? The mail part (phpmail) will be
easy; I don't know yet how to trigger and pass parameter to this script or
redirect info
On 11-4-2010 8:27, andrew clarke wrote:
By which method? SSH?
Yes, sorry I didn't mention that. If possible on both SSH and otherwise.
Thanks,
Jos
___
freebsd-questions@freebsd.org mailing list
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
On Sunday 11 of April 2010 12:32, Jos Chrispijn wrote:
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
On Sun, 11 Apr 2010 11:32:27 +0200
Jos Chrispijn ker...@webrz.net wrote:
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
On 11 April 2010 08:41, Doug Hardie bc...@lafn.org wrote:
On 10 April 2010, at 23:14, Jos Chrispijn wrote:
Can someone tell me if there is a way of generating an email on the
moment that someone logs in to my FreeBSD server? The mail part (phpmail)
will be easy; I don't know yet how to
$ tail -F -n 0 /var/log/auth.log
Definitely use the -F rather than -f option as it will handle log rotation
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
Jos == Jos Chrispijn ker...@webrz.net writes:
Jos In order to find out if someone logged in, I should then first copy
auth.log
Jos to auth2.log, and do a compare and then do the tail trick. Have to cron
that
Jos every half a minute.
No, just track it with tail -f as was already suggested.
12 matches
Mail list logo