Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!aplcen!samsung!usc!apple!voder!zok!mark From: mark@zok.UUCP (Mark W. Snitily) Newsgroups: comp.unix.i386 Subject: Re: Logging console messages to a printer. Message-ID: <399@zok.UUCP> Date: 4 Jan 90 17:34:30 GMT References: <1016@rsiatl.UUCP> Reply-To: mark@zok.UUCP (Mark W. Snitily) Organization: The distant planet Zok Lines: 34 In article <1016@rsiatl.UUCP> jgd@rsiatl.UUCP (John G. De Armond) writes: >This may be a RTFM question, in which case, a pointer to the correct >FM would be appreciated. > >System: ISC 2.0.2 > >How do I redirect console messages to a printer to be dedicated for >that purpose? I want to log everything that goes to the console and yet >not loose keyboard control of the console for shutting the system down. >(I've seen the patches to init and shutdown; I want a bit more elegant >solution if possible.) The printer is an ordinary epson matrix unit sitting >on /dev/lp0. No other jobs are anticipated for that printer. 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. Device "osm" stands for "operating system messages". You have to have the driver built into the kernel. In kconfig this is selected under the "ADD FACILITY" item. The facility you want to add is "Operating System Messages". (If you already have added it, it won't show up under ADD FACILITY but will be listed under REMOVE FACILITY.) Hope that helps. Please let the net know if that works. -- Mark Mark W. Snitily Consulting Services: 894 Brookgrove Lane Graphics, Operating Systems, Compilers Cupertino, CA 95014 (408) 252-0456 mark@zok.uucp