SUMMARY: Capturing console output after the fact

From: David Gunn (
Date: Sat Aug 19 1995 - 03:38:06 CDT

Original post:

  I would like to be able to see console messages on a remote system that have
  already been displayed. Is the console output stored anywhere on the system?
  The system is a SPARC2 with SunOS 4.1.3_U1.

I should have been more specific in my message. I wanted to capture output
from an application that had already printed on the console (ie it was started
from the root menu in Motif). I was hoping that the console output was stored
in a file like it seems happens with Sunview. (We used Sunview a long time

The answer: Output from applications doesn't appear to be stored anywhere.
You can look at /var/adm/messages and the output to dmesg (both of which I was
aware) for system messages.

While investigating I ran into logger(1) which could be used in conjunction
with syslog.conf.

Thanks to everyone for their responses, and I'm sorry I wasn't more explicit
in what I needed.

Answers grouped below:

From: "Michael G. Harrington" <>
From: Chris Zanelli <>
From: (Kevin Sheehan {Consulting Poster Child})
From: Gerhard den Hollander <>
From: (Haim Stotsky)
From: Ray Smith <>
From: (S. D. Raffensberger 500622500 (RD))
From: (Niall O Broin x 3619)
From: Scott Turvey <>
From: (Marc Gibian)
From: (Mel)

  syslog output is in /var/adm/{messages,syslog}; check /etc/syslod.conf to see
  where the messages went/should be going.

From: (Kevin Sheehan {Consulting Poster Child})
From: Scott Turvey <>

  With the kernel it can be gotten with dmesg.

From: (Kevin Sheehan {Consulting Poster Child})
From: (Stephen Harris)
From: (Niall O Broin x 3619)

  /dev/console itself isn't logged (unless logged by syslog)

From: (Kevin Sheehan {Consulting Poster Child})

  There are logging console tools out there that take the console output and
  dump it to a file as a side effect, can't remember the name off the top of
  my head. They use the same call xterm -C (or cmdtool consoles) do to grab
  the output, then just dump it in a file.

David Gunn

Company: Larson-Davis, Inc E-mail : Voice : 801-375-0177 Fax : 801-375-0182

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:31 CDT