man-pages/man1/bsd-write.1.html
2021-03-31 01:06:50 +01:00

161 lines
3.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of WRITE</TITLE>
</HEAD><BODY>
<H1>WRITE</H1>
Section: User Commands (1)<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<BR>BSD mandoc<BR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
<B>write</B>
- send a message to another user
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B></B>
<I>user</I>
[<I>tty</I>
]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
The
<B></B>
utility allows you to communicate with other users, by copying lines from
your terminal to theirs.
<P>
When you run the
<B></B>
command, the user you are writing to gets a message of the form:
<P>
<BLOCKQUOTE><TT>Message from <A HREF="mailto:yourname@yourhost">yourname@yourhost</A> on yourtty at hh:mm ...</TT></BLOCKQUOTE>
<P>
Any further lines you enter will be copied to the specified user's
terminal.
If the other user wants to reply, they must run
<B></B>
as well.
<P>
When you are done, type an end-of-file or interrupt character.
The other user will see the message
`EOF'
indicating that the
conversation is over.
<P>
You can prevent people (other than the super-user) from writing to you
with the
<A HREF="/cgi-bin/man/man2html?1+mesg">mesg</A>(1)
command.
<P>
If the user you want to write to is logged in on more than one terminal,
you can specify which terminal to write to by specifying the terminal
name as the second operand to the
<B></B>
command.
Alternatively, you can let
<B></B>
select one of the terminals - it will pick the one with the shortest
idle time.
This is so that if the user is logged in at work and also dialed up from
home, the message will go to the right place.
<P>
The traditional protocol for writing to someone is that the string
`-o'
,
either at the end of a line or on a line by itself, means that it is the
other person's turn to talk.
The string
`oo'
means that the person believes the conversation to be
over.
<A NAME="lbAE">&nbsp;</A>
<H2>SEE ALSO</H2>
<A HREF="/cgi-bin/man/man2html?1+mesg">mesg</A>(1),
<A HREF="/cgi-bin/man/man2html?1+talk">talk</A>(1),
<A HREF="/cgi-bin/man/man2html?1+wall">wall</A>(1),
<A HREF="/cgi-bin/man/man2html?1+who">who</A>(1)
<A NAME="lbAF">&nbsp;</A>
<H2>HISTORY</H2>
A
<B></B>
command appeared in
AT&amp;T System
v1 .
<A NAME="lbAG">&nbsp;</A>
<H2>BUGS</H2>
The sender's
<B>LC_CTYPE</B>
setting is used to determine which characters are safe to write to a
terminal, not the receiver's (which
<B></B>
has no way of knowing).
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="4"><A HREF="#lbAE">SEE ALSO</A><DD>
<DT id="5"><A HREF="#lbAF">HISTORY</A><DD>
<DT id="6"><A HREF="#lbAG">BUGS</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:08 GMT, March 31, 2021
</BODY>
</HTML>