[0m


WRITE(1)	    UNIX Programmer's Manual		 WRITE(1)



[1mNAME
     [0mwrite - write to another user

[1mSYNOPSIS
     write [0muser [ ttyname ]

[1mDESCRIPTION
     [0m_W_r_i_t_e copies lines from your terminal to that of another
     user.  When first called, it sends the message

	  Message from yourname@yoursystem on yourttyname at
     time...

     The recipient of the message should write back at this
     point.  Communication continues until an end of file is read
     from the terminal or an interrupt is sent.  At that point
     _w_r_i_t_e writes `EOT' on the other terminal and exits.

     If you want to write to a user who is logged in more than
     once, the _t_t_y_n_a_m_e argument may be used to indicate the
     appropriate terminal name.

     Permission to write may be denied or granted by use of the
     _m_e_s_g command.  At the outset writing is allowed.  Certain
     commands, in particular _n_r_o_f_f and _p_r(1) disallow messages in
     order to prevent messy output.

     If the character `!' is found at the beginning of a line,
     _w_r_i_t_e calls the shell to execute the rest of the line as a
     command.

     The following protocol is suggested for using _w_r_i_t_e: when
     you first write to another user, wait for him to write back
     before starting to send.  Each party should end each message
     with a distinctive signal-[1m(o) [0mfor `over' is conventional-
     that the other may reply.	[1m(oo) [0mfor `over and out' is sug-
     gested when conversation is about to be terminated.

[1mFILES
     [0m/etc/utmp to find user
     /usr/bin/sh	 to execute `!'

[1mSEE ALSO
     [0mmesg(1), who(1), mail(1)











Printed 22/11/91    Revision 1.3 of 09/07/90			1



[0m