From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glynn Clements Subject: Re: just curious! Date: Sat, 8 Oct 2005 08:17:18 +0100 Message-ID: <17223.29310.783504.657650@cerise.gclements.plus.com> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: Suma Choudhary Cc: linux-c-programming@vger.kernel.org Suma Choudhary wrote: > I was curious to know how the "write" command works.Any IPCs used? It determines the terminal(s) on which the specified user is logged in from the utmp file, opens the terminal device for writing, and writes to it. Note that the terminal device must be group-writeable (normally controlled using "mesg y" or "mesg n"). The write command itself is setgid tty. -- Glynn Clements