CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - Software Support
  /dev/console

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  bilkay
      bilkay
/dev/console
#1
Jr Board Member
Joined: 2008/1/21
From
Posts: 40
Why doesn't window created by 'xterm -C' accept messages sent to /dev/console?
The device has user ownership and r/w permission for user (set on login) and it worked in RH-9.
Posted on: 2008/1/23 17:13
Create PDF from Post Print
Top
  •  AlanBartlett
      AlanBartlett
Re: /dev/console
#2
Moderator
Joined: 2007/10/22
From ~/Earth/UK/England/Suffolk
Posts: 9137
As I've never tried it, I can't answer your question. What I will say is that CentOS 5 == RHEL 5 and RHEL 5 has come a very long way since RHL 9.
Perhaps your closing comment is a question for Red Hat.

Alan.
_________________
Alan

100% Unix & Linux. Co-founder of the ELRepo Project.
Posted on: 2008/1/23 17:47
Create PDF from Post Print
Top
  •  bilkay
      bilkay
Re: /dev/console
#3
Jr Board Member
Joined: 2008/1/21
From
Posts: 40
I'm presently reminding myself why I delayed upgrading for so long - it's such a pain.
According to the xterm man page, it should work, but it doesn't. I wonder where the console messages are going.
Posted on: 2008/1/23 21:45
Create PDF from Post Print
Top
  •  AlanBartlett
      AlanBartlett
Re: /dev/console
#4
Moderator
Joined: 2007/10/22
From ~/Earth/UK/England/Suffolk
Posts: 9137
Quote:
I'm presently reminding myself why I delayed upgrading for so long - it's such a pain.
but fun?

In my case, I started at around 2100 hours and finally got to bed at about 0317 hours the next day when I upgraded from RHL 9 to CentOS.

I've just executed man xterm out of curiosity. For the command line -C flag I see

Quote:
-C This option indicates that this window should receive console output. This is not supported on
all systems. To obtain console output, you must be the owner of the console device, and you must
have read and write permission for it. If you are running X under xdm on the console screen you
may need to have the session startup and reset programs explicitly change the ownership of the
console device in order to get this option to work.


It looks like the second sentence "This is not supported on all systems." is true with the version built with the current Red Hat sources.

Alan.
_________________
Alan

100% Unix & Linux. Co-founder of the ELRepo Project.
Posted on: 2008/1/23 22:34
Create PDF from Post Print
Top
  •  bilkay
      bilkay
Re: /dev/console
#5
Jr Board Member
Joined: 2008/1/21
From
Posts: 40
So where does /dev/console go to? The bit bucked?
Posted on: 2008/1/24 20:30
Create PDF from Post Print
Top
  •  AlanBartlett
      AlanBartlett
Re: /dev/console
#6
Moderator
Joined: 2007/10/22
From ~/Earth/UK/England/Suffolk
Posts: 9137
Quote:
So where does /dev/console go to? The bit bucked?


Two interesting questions to which I don't know the answer. Would you care to investigate?

Assuming you've logged in as root to a GUI, get yourself to a shell prompt.
Try echo Hello console > /dev/console
Then <Ctrl>-<Alt>-<Fn1>, <Ctrl>-<Alt>-<Fn2>, etc and see if you can find your greeting to the console.

As a quick closing thought, perhaps man -a syslogd or man -a syslog may be of interest.

Hope this helps.
Alan.
_________________
Alan

100% Unix & Linux. Co-founder of the ELRepo Project.
Posted on: 2008/1/25 11:11
Create PDF from Post Print
Top
  •  bilkay
      bilkay
Re: /dev/console
#7
Jr Board Member
Joined: 2008/1/21
From
Posts: 40
Yeah, I'd already tried checking the other ttys - nothing there. Nothing in /var/log messages either.

It's not a critical problem - it just bugs me.

By the way, how do you get quotes into the box in your replies?
Posted on: 2008/1/25 14:15
Create PDF from Post Print
Top
  •  AlanBartlett
      AlanBartlett
Re: /dev/console
#8
Moderator
Joined: 2007/10/22
From ~/Earth/UK/England/Suffolk
Posts: 9137
Quote:
By the way, how do you get quotes into the box in your replies?


Convert the braces ({ }) you see in the following to backets ([ ]) and {quote}This will be in a quotation box.{/quote}
The same technique is true for bold {b}bold{/b}, italic {i}italic{/i} & underlined {u}underlined{/u} text, etc.
Also there are the buttons, above and the big "quote" button below.

Regards,
Alan.
_________________
Alan

100% Unix & Linux. Co-founder of the ELRepo Project.
Posted on: 2008/1/25 17:57
Create PDF from Post Print
Top
  •  bilkay
      bilkay
Re: /dev/console
#9
Jr Board Member
Joined: 2008/1/21
From
Posts: 40
Quote:
Two interesting questions to which I don't know the answer. Would you care to investigate?

Assuming you've logged in as root to a GUI, get yourself to a shell prompt.
Try echo Hello console > /dev/console
Then <Ctrl>-<Alt>-<Fn1>, <Ctrl>-<Alt>-<Fn2>, etc and see if you can find your greeting to the console.


If I didn't screw up so often, I'd never learn anything.

I inadvertently (i.e., stupidly) shut down the nfs server for the home directory of a user logged on another machine and of course it locked up. When I <ctrl><alt><bksp>ed to get out, it went to a black screen - with the messages that had been sent to /dev/console by the user.
Posted on: 2008/1/26 17:09
Create PDF from Post Print
Top
  •  AlanBartlett
      AlanBartlett
Re: /dev/console
#10
Moderator
Joined: 2007/10/22
From ~/Earth/UK/England/Suffolk
Posts: 9137
Thanks for reporting back.

Alan.
_________________
Alan

100% Unix & Linux. Co-founder of the ELRepo Project.
Posted on: 2008/1/26 19:13
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com