LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-27-2004, 08:47 PM   #1
slackist
Member
 
Registered: Feb 2004
Location: Phuket
Distribution: Slackware 14.1 and Slackware Arm
Posts: 466

Rep: Reputation: 40
showing X messages from tty1 in a terminal window


What would I type to copy the error messages that X is producing on tty1 to a terminal window within Gnome.

I know I can use ctrl-alt-F1 to see the messages but it would be more convenient to have them scrolling by in a window

Thanks for any suggestions,

mark
 
Old 06-28-2004, 02:58 PM   #2
DropSig
Member
 
Registered: Apr 2004
Location: East of Quebec
Distribution: Ubuntu, Centos
Posts: 208

Rep: Reputation: 30
Select it in tty1, then: crtl+alt+c, then ctrl+alt+v where u want it
 
Old 06-28-2004, 07:52 PM   #3
slackist
Member
 
Registered: Feb 2004
Location: Phuket
Distribution: Slackware 14.1 and Slackware Arm
Posts: 466

Original Poster
Rep: Reputation: 40
Sorry, if my question wasn't clear.

I don't want to cut'n'paste, but rather pipe the messages from tty1 into a terminal window so I can see them in real time.

Thanks anyway,

mark
 
Old 06-28-2004, 08:14 PM   #4
mysterio
Member
 
Registered: Sep 2003
Location: Springfield Ma.
Distribution: Mandrake 9.2,Knoppix 3.7,Slackware 10.0, FreeBSD. 5.3, OpenBSD 3.6, NetBSD 2.0, Debian
Posts: 275

Rep: Reputation: 30
Open xterm in gnome and do it from there.
 
Old 06-28-2004, 08:51 PM   #5
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Check out Tail or Root-tail
 
Old 06-29-2004, 03:46 AM   #6
slackist
Member
 
Registered: Feb 2004
Location: Phuket
Distribution: Slackware 14.1 and Slackware Arm
Posts: 466

Original Poster
Rep: Reputation: 40
@mysterio, please re-read my question. I want to some how feed in real time the messages produced on tty1 into an xterm session in Gnome

@milkshaw, thank you. I have been thinking about tail (I will man root-tail) . Would I have to somehow capture (maybe via cat?) the stuff into a file and tail -f that file?

I have been messing about with cat /dev/tty3 > /dev/pts/0 etc so I can for example issue ls -l > /dev/pts/1 in tty3 and have the results show up in the second xterm session in Gnome, just haven't found how to get tt1 one to show up.

On a side note DO NOT, EVER issue cat /dev/tty0 > /dev/pts/1 , the results are very surprising
 
Old 06-29-2004, 12:28 PM   #7
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Quote:
Originally posted by chefmark
@milkshaw, thank you. I have been thinking about tail (I will man root-tail) . Would I have to somehow capture (maybe via cat?) the stuff into a file and tail -f that file?
It depends on what you want to tail, but generally everything important is already being logged to a file in /var/log
For example, XFree messages are sent to /var/log/XFree86.0.log...just tail that file and you'll see dynamically updated info.

I'm not sure if Gnome has its own log file for its desktop-specific messages, but using Fluxbox I have this in .xinitrc:
exec fluxbox >& ~/.fluxbox/log
and I tail that file to receive messages specific to the window manager.

Last edited by mikshaw; 06-29-2004 at 12:33 PM.
 
Old 06-29-2004, 07:48 PM   #8
slackist
Member
 
Registered: Feb 2004
Location: Phuket
Distribution: Slackware 14.1 and Slackware Arm
Posts: 466

Original Poster
Rep: Reputation: 40
Thanks very much milkshaw, that was what I was looking for.

mark
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Terminal Questions? "cat /dev/tty1" Why Not? chris318 Linux - Security 1 02-25-2005 10:57 PM
Terminal Questions? "cat /dev/tty1" Why Not? chris318 Linux - Newbie 3 02-24-2005 11:59 PM
Using terminal to talk to tty1 scotlin Linux - Newbie 2 09-18-2004 09:41 AM
mail problem: not showing read messages (sendmail+RH9+IMAP) cat06 Linux - General 1 03-21-2004 06:39 PM
Boot messages not showing in dmesg... Nu-Bee Linux - General 4 01-25-2004 02:49 PM


All times are GMT -5. The time now is 03:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration