From: "Suma Choudhary" <sumac@myw.ltindia.com>
To: glynn@gclements.plus.com
Cc: linux-c-programming@vger.kernel.org
Subject: Re: just curious!
Date: Mon, 10 Oct 2005 07:55:08 +0530 [thread overview]
Message-ID: <s34a1e7f.028@EMAIL> (raw)
Thanks a lot.....
I got to know about the utmp file and the terminal device from the strace and ltrace as suggested by David Eduardo.Could even write a small code to emulate "write".
Didnt know about "mesg" though.
Thanks again
suma
>>> Glynn Clements <glynn@gclements.plus.com> 10/08/05 12:54 PM >>>
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 <glynn@gclements.plus.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2005-10-10 2:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-10 2:25 Suma Choudhary [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-10-06 12:11 just curious! Suma Choudhary
2005-10-06 12:41 ` David Eduardo Gómez Noguera
2005-10-08 7:17 ` Glynn Clements
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s34a1e7f.028@EMAIL \
--to=sumac@myw.ltindia.com \
--cc=glynn@gclements.plus.com \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).