LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   showing X messages from tty1 in a terminal window (https://www.linuxquestions.org/questions/linux-newbie-8/showing-x-messages-from-tty1-in-a-terminal-window-198450/)

slackist 06-27-2004 07:47 PM

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

DropSig 06-28-2004 01:58 PM

Select it in tty1, then: crtl+alt+c, then ctrl+alt+v where u want it

slackist 06-28-2004 06:52 PM

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

mysterio 06-28-2004 07:14 PM

Open xterm in gnome and do it from there.

mikshaw 06-28-2004 07:51 PM

Check out Tail or Root-tail

slackist 06-29-2004 02:46 AM

@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 :D, the results are very surprising :D :D

mikshaw 06-29-2004 11:28 AM

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.

slackist 06-29-2004 06:48 PM

Thanks very much milkshaw, that was what I was looking for.

mark


All times are GMT -5. The time now is 09:03 PM.