LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-24-2005, 04:43 PM   #1
chris318
Member
 
Registered: Feb 2005
Distribution: Slack
Posts: 122

Rep: Reputation: 18
Terminal Questions? "cat /dev/tty1" Why Not?


How come I can echo a tty device by doing "echo hello > /dev/tty1", but I can't cat a tty device? If I try to do a "cat /dev/tty1" in tty2 for example I don't see the output of tty1. I'm doing this as root by the way.

Lets say I log into X from tty1 using startx. I then go into an X session. Now I go to tty2 and type startx -- :1 and start anothr X session. alt F7 and alt F8 are my X session. What is the equivalent tty devices created on F7 and F8?

Now while I'm in X I start up xterm. The device now is /dev/pts/1. What type of terminal is this and what relation does it have to the requaler tty's?

While I'm in xterm I would like to see the logging output of X and the window manager going to tty1. How come "cat /dev/tty1" doesn't give the desired results? How can I redirct all output going to tty1 to /dev/pts/1?
 
Old 02-24-2005, 07:54 PM   #2
eduardomsilva
Member
 
Registered: Feb 2005
Location: Portugal
Distribution: Slackware
Posts: 45

Rep: Reputation: 15
Hello!

Try "cat < /dev/tty1" and "dev/pts/1</dev/tty1"

It should work!!

See you!

/edu
 
Old 02-24-2005, 08:08 PM   #3
chris318
Member
 
Registered: Feb 2005
Distribution: Slack
Posts: 122

Original Poster
Rep: Reputation: 18
??? huh

cat /dev/tty1 and cat < /dev/tty1 are the same thing dude.

The first one say cat tty1 and the second says the input to cat is tty1. Identical?

File1:
a
b
c

Then do, cat File1 ...
a
b
c

Then do, cat < File1 ...
a
b
c

Same thing bro.

Anyway, cat < /dev/tty1 doesn't do anything either.
 
Old 02-24-2005, 11:59 PM   #4
chris318
Member
 
Registered: Feb 2005
Distribution: Slack
Posts: 122

Original Poster
Rep: Reputation: 18
Wow I gues my question is to advanced for you linux guru's. Nobody has any ideas on how to cat or tail or head or tee a tty device and see it's output in a different terminal?
 
  


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
lilo says, "L 01 01 01" and fdisk says, "Unable to seek on /dev/hda1" clausawits Linux - General 3 12-31-2007 10:33 PM
Terminal Questions? "cat /dev/tty1" Why Not? chris318 Linux - Security 1 02-25-2005 10:57 PM
V4L: "cat /dev/video0: no such device"; to be sure not supported? jago25_98 Linux - Hardware 1 01-27-2005 05:04 PM
What is adsp0? and why cat /dev/urandom >/dev/adsp0 give me "no such device"? haimeltjnfg Linux - Hardware 2 05-09-2004 11:54 PM
"segmentation error" when issuing "useradd" command through terminal with RH 9.0 kaihuang Linux - General 0 10-22-2003 12:47 AM


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