public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* question : any difference between "echo xxx > /dev/console" and printk
@ 2005-08-15  1:19 Tomko
  2005-08-15 12:09 ` linux-os (Dick Johnson)
  0 siblings, 1 reply; 2+ messages in thread
From: Tomko @ 2005-08-15  1:19 UTC (permalink / raw)
  To: linux-kernel

Hi all,

as topic, do anyone know is there any difference between them ? by the 
way, console should only output but not input , but i could still see 
something when i type " cat /dev/console"  in one terminal then type 
something at the tty where i open the console.  Can anyone tell me why?


Regards,
TOM

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: question : any difference between "echo xxx > /dev/console" and printk
  2005-08-15  1:19 question : any difference between "echo xxx > /dev/console" and printk Tomko
@ 2005-08-15 12:09 ` linux-os (Dick Johnson)
  0 siblings, 0 replies; 2+ messages in thread
From: linux-os (Dick Johnson) @ 2005-08-15 12:09 UTC (permalink / raw)
  To: Tomko; +Cc: linux-kernel


On Sun, 14 Aug 2005, Tomko wrote:

> Hi all,
>
> as topic, do anyone know is there any difference between them ? by the
> way, console should only output but not input , but i could still see
> something when i type " cat /dev/console"  in one terminal then type
> something at the tty where i open the console.  Can anyone tell me why?
>
>
> Regards,
> TOM
> -

/dev/console is a virtual terminal just like /dev/tty*. It really
has nothing to do with "printk" in the kernel (really). It's
just one of the many places where things "printed" in the kernel
can be displayed.

And, yes, the console is a two-way terminal emulator. It is the
standard-input, standard-output, and standard-error, for the
init process. Normally init doesn't respond to any input from
the console, but during boot it does so that you can try to
fix various errors.

Cheers,
Dick Johnson
Penguin : Linux version 2.6.12 on an i686 machine (5537.79 BogoMips).
Warning : 98.36% of all statistics are fiction.
.
I apologize for the following. I tried to kill it with the above dot :

****************************************************************
The information transmitted in this message is confidential and may be privileged.  Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited.  If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them.

Thank you.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-08-15 12:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-15  1:19 question : any difference between "echo xxx > /dev/console" and printk Tomko
2005-08-15 12:09 ` linux-os (Dick Johnson)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox