This is the README for loginlog.c [Download] [Browse] [Up]
AUTHOR: Mark <mark@netsys.com>
DATE: 29th Sep 1994
COMPILED: Timothy Luoma <luomat@peak.org>
ARCHS: NIHS
HOW TO COMPILE
cc -s -O -o loginlog loginlog.c
(should not report any errors)
WHAT IT DOES
It will report (to console.log)
Feb 16 22:06:52 hostname loginlog[22944]: login: username ttyp4
This is the code which controls where logging goes:
#define FACILITY LOG_AUTH
#define SEVERITY LOG_NOTICE
See also /etc/syslog.conf and 'syslog.h'
HOW TO USE
I use this in /etc/rc.local
FILE=/usr/local/bin/loginlog
if [ -x $FILE ]; then
$FILE
(echo -n " loginlog") >/dev/console
else
(echo "Cannot find $FILE" ) >/dev/console
fi
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.