LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-21-2003, 02:26 PM   #1
lfur
Member
 
Registered: Jul 2003
Location: Slovenia
Distribution: Slackware & FreeBSD
Posts: 209

Rep: Reputation: 30
logs sent to /dev/console appear on /dev/tty1


Hi,

I've included line:
*.* /dev/console

in my syslog.conf, so I could have all the logs displayed in the xconsole when in X. It all works fine untill I reboot. Then all logs that should go to /dev/console appear on prompt (/dev/tty1). I have tried to redirect them to, let's say /dev/tty12 and use the -file option with xconsole but it doesn't work.

Thanks for the support ...

Enjoy
 
Old 07-24-2003, 08:52 PM   #2
lfur
Member
 
Registered: Jul 2003
Location: Slovenia
Distribution: Slackware & FreeBSD
Posts: 209

Original Poster
Rep: Reputation: 30
simulate console with tail

Since there are no posts, and I haven't foud any proper(?) sollution, I've improvised a bit and came up with my own little console. So here it goes:

since I don't want these logging messages showing up on tty1, but still want to have a console in X with some logs, I have to comment out the line in syslog.conf that does something like this:
whatever.whatever /dev/console

and instead, point the desired logs to some file:
whatever.whatever /var/log/whatever.log

then I have to set up the read permissions to myself, so I can read the file (kind of obvious isn't it):
chmod ??4 whatever.log

and have a xterm (or aterm, eterm or whatever I wil use) execute the:
tail -f /var/log/whatever.log

command. I put it in my xinitrc, so I dont have to run it manualy every time I log in:
xterm -e tail -f /var/log/whatever.log

That's it.

Well, I think it's nothing new to most of you, but it gives me pleasure to share my discoveries.

Enjoy

Ooops ... almost forgot. The syslogd daemon must be restarted also!

Last edited by lfur; 07-24-2003 at 08:56 PM.
 
Old 04-02-2006, 08:17 AM   #3
atom
Member
 
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Rep: Reputation: 31
I use a little different method myself.

I redirect all log output from apache to /dev/tty12 by a tail command I start in initrc. then I just press ctrl+alt+f12 and I can monitor apache logs from there.
 
Old 01-08-2008, 01:19 PM   #4
hex1a4
Member
 
Registered: Dec 2007
Location: ON CA
Distribution: Xubuntu 8.04; Xubuntu 6.06.2
Posts: 64

Rep: Reputation: 15
Quote:
Originally Posted by lfur View Post
*.* /dev/console
This should be

*.* /dev/xconsole

To send to ttys make it /dev/tty#
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 07:11 PM
Terminal Questions? "cat /dev/tty1" Why Not? chris318 Linux - Security 1 02-25-2005 09:57 PM
Terminal Questions? "cat /dev/tty1" Why Not? chris318 Linux - Newbie 3 02-24-2005 10:59 PM
/dev/tty1 no longer exists Steerpike Linux - Newbie 3 11-27-2004 11:16 AM
unable to change tty /dev/tty1 Read-only filesystem behmjose Linux From Scratch 1 01-02-2004 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration