Re: Having printk output to console as well as /var/log/messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Mar 20, 2005 at 01:23:41PM +0200, Geula Stoliar wrote:
> >I think you must see your syslog.conf
> >man syslog.conf
> 
> I defined kern.* to go to /dev/console in syslog.conf and now, printk messages appear on the screen, but only when I open a direct console window on the linux box itself.
> 
>  Is there a way to get them to display on any current terminal I am
>  on at the moment, such as a telnet/ssh session or Xwindows terminal?

Default way to get them is to user a named pipe /dev/xconsole and have
syslog write to it. In syslog.conf:

kern.*		|/dev/xconsole

In X, you just start xconsole:

xconsole -notify -nostdin -verbose -execOnFail -file /dev/xconsole -fn fixed &

Or even easier: cat /dev/xconsole .


Erik

-- 
Erik Mouw
J.A.K.Mouw@xxxxxxxxxxxxxx  mouw@xxxxxxxxxxxx

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux