Skip to contentSkip to conversation

just curious!

DISCUSSION Suma Choudhary 3 participants 3 messages Oct 6, 2005 – Oct 8, 2005

lore
Share & tools
lore
#0 lore raw

Hello all
I was curious to know how the "write" command works.Any IPCs used?

thanks
suma

#1 lore raw
Quoted 5 lines · Suma Choudhary

Hello all
I was curious to know how the "write" command works.Any IPCs used?

thanks
suma

*Use the force^source Luke*

you can play with strace and ltrace too
the manpage also helps.

Signature · 6 lines
David Eduardo Gómez Noguera <[email protected]>

-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
In reply to Suma Choudhary
Quoted 1 line · Suma Choudhary

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.

Signature · 1 line
Glynn Clements <[email protected]>