WRITE(1) | General Commands Manual | WRITE(1) |
write - write to another user
write [-ctynsprfSv] [ user [ tty ] ]
ojot [-ltynsprfSv] [ user [ tty ] ]
tel [-clynsprfSv] user [ tty ] [message...]
Note: This is "Orville write", an enhanced version of the standard Unix write program.
Write copies lines from your terminal to that of another user. When first called, it sends the message:
Message from your-logname your-tty ...
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, write writes "EOF (your-logname)" on the other terminal and exits.
The following protocol is strongly suggested for using write: when you first write to another user, wait for him or her to write back before starting to type your message. Each party should end each message with a distinctive signal (o for ``over'' is conventional), indicating that the other may reply; oo for ``over and out'' is suggested when conversation is to be terminated. Avoid typing when it is the other person's turn, as your text will get all garbled with theirs. Anyway, it's rude.
The ojot command is a variation of write which normally sends each character to the other user as you type it instead of waiting for you to finish a line before sending anything as write does.
The tel command sends one line ``telegrams'' and then immediately disconnects. The message may be given on the command lines (in which case it is usually best to quote it). If you don't put a message on the command line, you will be prompted for it. This is usually the preferable way to invoke tel.
All three commands are actually the same program, and share much of the same behavior.
Permission to write may be denied or granted by use of the mesg(1) command. Your write permissions upon login are installation dependent. If you write a person who has permissions on, but is currently writing someone else, you will be warned of the fact and be given a chance to cancel your write request before interupting the other conversation. If you write a person who is running a command under amin(1) you will be warned similarly.
You can always send messages to people who are currently writing to you, even if there message permissions are off. If you have sent a person a tel message, then that person can write or telegram to you for the next 4 minutes, even if your message permissions are off. This means that you won't be sitting around wondering why someone won't reply, just because you've forgotten to turn your permissions on. It also means that if you don't want someone to be able to talk to you, then you shouldn't talk to them. Root may write anyone.
If you invoke the write or ojot command with no user name, they will write to whatever user is currently writing you. If no one is writing you, an error message is printed.
If you invoke the write, ojot, or tel command with the user name '.', they will write again to whoever you wrote to last. If you haven't written to anyone in this login session, an error message is printed. This is especially useful when you are exchanging a series of messages back and forth with tel.
If you want to write to a user who is logged in more than once, the tty argument may be used to indicate the appropriate terminal. If the tty argument is not given, the terminal from which you are being written will be written to, if there is one. If not, one of the lines you have write permission to will be chosen. If the tty argument is given, the user name can be given as "-", in which case it will write to whomever is on that tty, if anyone is.
On some systems there may be users designated as ``helpers''. If your system has helpers, then doing ``write help'' will write to some helper who is not busy. If more than one helper is available, one is selected at random to distribute the workload. Helpers designate themselves with the mesg(1) command. They are considered busy if they are writing someone else, or if they are running a command under the amin(1) program.
If the character ! , | , or & is found at the beginning of a line, write calls the shell to execute the rest of the line as a unix command. If the command began with a ! the output of the command will be sent only to your terminal. If it began with a |, output will be sent only to the other person's terminal. If it began with a & each of you will recieve a copy of the output. Note that write expands all strange control characters before sending them to the other person's terminal, but does not do so for characters echoed back to your terminal.
Write provides several command line options. Actually, the only difference between write, ojot, and tel is what default values they have for these options:
The options selected by the writer may in some cases be overridden by the recipient. You can set your preferences for writes versus telegrams, and for line mode versus character mode with the mesg(1) command. If the recipient has set write/telegram preferences, you will be asked if you want to use the other if you write him the wrong way. If you invoke Write with a -S flag, then you will not be asked if you want to switch. Only root can actually override the recipient's preferences. For regular users, if you decline to switch, the command fails.
If the recipient has set character/line mode preferences, a message will be printed and you will be forced into his or her prefered mode.
The orville.conf file contains configuration information for Orville write and the associated utilities. Lines starting with '#' and blank lines are ignored. Other lines contain the commands listed below:
Jan Wolter
mail(1), mesg(1), who(1), huh(1), finger(1), amin(1), helpers(1).
January 20, 2000 | 7th Edition |