Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!emory!stiatl!rsiatl!jgd From: jgd@rsiatl.UUCP (John G. De Armond) Newsgroups: comp.unix.i386 Subject: Re: Logging console messages to a printer. Message-ID: <1052@rsiatl.UUCP> Date: 4 Jan 90 22:01:53 GMT References: <1016@rsiatl.UUCP> <399@zok.UUCP> Reply-To: jgd@rsiatl.UUCP (John G. De Armond) Organization: Radiation Systems, Inc. (a thinktank, motorcycle, car and gun works facility) Lines: 34 In article <399@zok.UUCP> mark@zok.UUCP (Mark W. Snitily) writes: >In article <1016@rsiatl.UUCP> jgd@rsiatl.UUCP (John G. De Armond) writes: >> >>How do I redirect console messages to a printer to be dedicated for >>that purpose? > > Haven't tried this, but I think that > > tail -f /dev/osm | /dev/lp0 & > >should do the trick. You'll need to have the read access to /dev/osm >and write access to /dev/lp0, of course. I appreciate everybody that has suggested the OSM facility. I should not have neglected to mention in my first post that I had figured out how to use /dev/osm for kernal messages. What I'm wanting to do is more general. I want to send everything that currently goes to /dev/console to a logging printer just as if /dev/console were a KSR terminal. At the same time, I'd like to STOP the printing of messages to the real /dev/console. I guess one solution WOULD be to just hang a KSR terminal (Decwriter, anyone?) on a port and re-mknod /dev/console to that port. I was hoping there is an undocumented (of course), but elegant way of solving this problem. I'm working on an inelegant solution (the one true unix way) but I'd hoped for more. Thanks again for everyone who has suggested /dev/osm. John -- John De Armond, WD4OQC | The Fano Factor - Radiation Systems, Inc. Atlanta, GA | Where Theory meets Reality. emory!rsiatl!jgd **I am the NRA** |