Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
@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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.