AUTHOR: Mark DATE: 29th Sep 1994 COMPILED: Timothy Luoma 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