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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-08-2004, 03:45 PM
|
#1
|
|
Member
Registered: Jun 2002
Location: Pennsylvania
Distribution: Anything and Everything
Posts: 61
Rep:
|
How do I display tty stuff in X
Let's pretend I am compiling a kernel in tty1 then I log in to tty2 and startx as root. I know this is a nono, but I am only interested in figuring something out. Is it possible to start xterm in X and view what is going on in tty1, without doing a Ctrl+Alt+F1.
Thanks,
JL
|
|
|
|
02-08-2004, 03:46 PM
|
#2
|
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
interesting, but just the nature of your question
i am going to guess that the answer is no ....
i have no idea, nor did i research, but i cannot see how that is possible ....
but i am sure someone will enlighten us if you can in fact do it ..
|
|
|
|
02-08-2004, 04:13 PM
|
#3
|
|
Member
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284
Rep:
|
if and if and if...
if X is already running:
if xterm is open
make > /dev/pts/x #where x is the device. find out number by running ps from xterm
will redirect the output to the xterm
|
|
|
|
02-08-2004, 04:36 PM
|
#4
|
|
Member
Registered: Jun 2002
Location: Pennsylvania
Distribution: Anything and Everything
Posts: 61
Original Poster
Rep:
|
I'm in FreeBSD right now and I tried:
make > /dev/ttyv2 #Because that's the terminal it's runnin' on.
I got a:
`/dev/ttyv6' is up to date.
Maybe this will work in Debian though.
Thanks.
|
|
|
|
02-08-2004, 04:43 PM
|
#5
|
|
Member
Registered: Dec 2002
Posts: 226
Rep:
|
if you open a 2nd tty, startx -- :1 & will start a 2nd X server.
when I compile kernel (everything in /usr/src/linux)
make .... >makeout 2>make.err
In xterm 2
tail -f make.out
in xterm 3
tail -f make.err
in xterm 4
while [ true ];do find . -type f -iname \*\.o -cmin -1; sleep 10;done
gives me a feel how things are running
|
|
|
|
02-08-2004, 05:05 PM
|
#6
|
|
Member
Registered: Feb 2004
Posts: 32
Rep:
|
I would look into using screen. Try "man screen"
|
|
|
|
02-08-2004, 05:11 PM
|
#7
|
|
Member
Registered: Jun 2002
Location: Pennsylvania
Distribution: Anything and Everything
Posts: 61
Original Poster
Rep:
|
I tried "watch" in FreeBSD and it works perfect.
Here's what I did:
I went to Ctrl+Alt+F3 or ttyv3 and typed:
"yes"
and then went to xterm in X and typed:
"watch"
This came up:
Snoop started.
Enter device name []:ttyv3
and there it was:
y
y
y
y
y
y
y
y
on so on...
Is there a "watch" command in Linux?
|
|
|
|
02-08-2004, 08:53 PM
|
#8
|
|
Member
Registered: Feb 2004
Posts: 32
Rep:
|
Look into screen, too. Its a nice program. Lets you start up a terminal within another terminal, then disconnect from it, and reconnect at a later time. You can start one up in an xterm, start a kernel compile, then disconnect, and reconnect from an ssh session from work to check on it.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:26 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|