[comp.sys.att] Redirecting console message on a 3b2

night@pawl.rpi.edu (Trip Martin) (12/16/90)

Does anyone know how to redirect console messages to a file on a
3b2/300 or 3b2/400?  Any help with this would be greatly appreciated.
-- 
Trip Martin  
night@rpi.edu

rad@genco.bungi.com (Bob Daniel) (12/18/90)

In article <|$H^X`&@rpi.edu> night@pawl.rpi.edu (Trip Martin) writes:
>Does anyone know how to redirect console messages to a file on a
>3b2/300 or 3b2/400?  Any help with this would be greatly appreciated.

This wouldn't get rid of all messages but you could edit /etc/inittab and
change >/dev/console to a file. Be careful which ones you redirect.
There may be a better solution but I don't know of one.

friedl@mtndew.Tustin.CA.US (Stephen J. Friedl) (12/20/90)

In article <|$H^X`&@rpi.edu> night@pawl.rpi.edu (Trip Martin) writes:
> Does anyone know how to redirect console messages to a file on a
> 3b2/300 or 3b2/400?  Any help with this would be greatly appreciated.

In article <165@genco.bungi.com>, rad@genco.bungi.com (Bob Daniel) writes:
> This wouldn't get rid of all messages but you could edit /etc/inittab and
> change >/dev/console to a file. Be careful which ones you redirect.
> There may be a better solution but I don't know of one.

Modifying inittab is not the right answer either, as this won't get
any of the daemon processes or kernel messages and the like.  There is
a console logging facility in the newer versions of UNIX (Sys V R3.2)
that put ALL console output into a file, usually /usr/lib/conlog.  If
your UNIX has the file /boot/CONLOG it probably can run this.

I have not set this up, but /dev/osm is the kernel access to the console
log, and /etc/rc2.d/S80errstart is the boot-time script supporting it.

     Steve

-- 
Stephen J. Friedl, KA8CMY  /  3B2-kind-of-guy  /  Tustin, CA / 3B2-kind-of-guy
+1 714 544 6561  / friedl@mtndew.Tustin.CA.US  / {uunet,attmail}!mtndew!friedl

Why not add Hollerith fields to printf?