WebMail
WebMail

write


write

The write command lets you write to someone else's screen.

NOTICE: Using this command to harass other users is a violation of the user agreement.

Just type write followed by the username of the person you want to write to. What you type on your screen appears on their screen. Press CTRL-D or CTRL-C when you are done.

Example:

lager 8:35pm {0}[~] write cb

Hi Mark!
I'll meet you at Leo's in 10 minutes.
On Mark's (username cb) screen, he sees:
Message from michel@lager on ttys1 at 8:35pm ...
Hi Mark!
I'll meet you at Leo's in 10 minutes.
EOF

The output will appear on Mark's screen followed by EOF, but has no effect on what Mark is actually doing. Mark can remove anything sent to his screen by pressing CTRL-L.

If you are interested in conversing with someone, see the YTALK application.

You can also use write to display the contents of a file.

Example:

lager 8:35pm {0}[~] cat file | write cb

The Command cat outputs the contents of the file, the pipes (|) turn that output into the input for the write command which then sends it to cb's screen.