LinuxQuestions.org
Help answer threads with 0 replies.
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 02-08-2004, 03:45 PM   #1
jlturbos
Member
 
Registered: Jun 2002
Location: Pennsylvania
Distribution: Anything and Everything
Posts: 61

Rep: Reputation: 15
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
 
Old 02-08-2004, 03:46 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
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 ..
 
Old 02-08-2004, 04:13 PM   #3
bnice
Member
 
Registered: Feb 2004
Location: Sacramento, CA
Distribution: Slack 9.1, slackware-current
Posts: 284

Rep: Reputation: 30
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
 
Old 02-08-2004, 04:36 PM   #4
jlturbos
Member
 
Registered: Jun 2002
Location: Pennsylvania
Distribution: Anything and Everything
Posts: 61

Original Poster
Rep: Reputation: 15
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.
 
Old 02-08-2004, 04:43 PM   #5
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
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
 
Old 02-08-2004, 05:05 PM   #6
adamjaskie
Member
 
Registered: Feb 2004
Posts: 32

Rep: Reputation: 15
I would look into using screen. Try "man screen"
 
Old 02-08-2004, 05:11 PM   #7
jlturbos
Member
 
Registered: Jun 2002
Location: Pennsylvania
Distribution: Anything and Everything
Posts: 61

Original Poster
Rep: Reputation: 15
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?
 
Old 02-08-2004, 08:53 PM   #8
adamjaskie
Member
 
Registered: Feb 2004
Posts: 32

Rep: Reputation: 15
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.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
tty display corrupt after kill X, slack 10.1 nadroj Linux - Hardware 6 09-08-2005 11:36 PM
executing a command from tty sending it to an x display poiuytrewq Linux - Newbie 1 04-20-2005 10:22 PM
When installing new stuff in suse 9.1, do you uninstall old stuff first? randon Suse/Novell 1 12-25-2004 04:37 PM
change tty => system crashes (ati driver/tty resolution) mosca Debian 6 08-05-2004 07:37 AM
PuTTY doesn't display curses based stuff correctly vrillusions Linux - Software 1 06-22-2004 02:39 PM


All times are GMT -5. The time now is 01:47 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration