cowan@edsews.eds.com (Andy Cowan) (02/22/89)
I would like to get all my console messages written to a file. Now, I
know there's syslog which is supposed to take care of logging system
messages, but I would like ALL messages written to the console to be
written out. This includes SU, writes, talks, etc...any text that appears
in the console.
>From what I've seen so far syslog can't do this for me. Perhaps I'm not
setting it up correctly?
Any ideas out there? Do I need to write a program that issues ioctls to
the console device, to take over its output? Or is there a less drastic
method?
Aside: Today, in Detroit, its about 20 degrees, overcast, miserable
wet snow falling, wind out of the sw gusting to 20 mph...
--
Andy Cowan cowan@edsews.eds.com
[[ Everything? That's a little hard. About the only way that I can think
of doing that is to get a terminal with an "AUX" port and attach another
line to the AUX port. Then disable the getty on that line and run a
daemon that just reads data from the line and stores it in a file. You
also have to make sure that the AUX port (on the terminal) is enabled. Of
course, this won't work during a reboot. --wnl ]]
chuck@trantor.harris-atd.com (Chuck Musciano) (03/07/89)
> I would like to get all my console messages written to a file.
Version 2.1 of contool will write all messages written to /dev/console to
a file, if you'd like. The patch to bring version 2.0c to 2.1 is in the
queue at Rice, and the complete shar file is available from
trantor.harris-atd.com (26.13.0.98) in the /pub/suntools/contool
directory.
Once again, all of my tools, and many other public domain things, are
available from trantor via anonymous ftp.
Chuck Musciano
Advanced Technology Department
Harris Corporation
(407) 727-6131
ARPA: chuck@trantor.harris-atd.com