WRITE(1) BSD General Commands Manual WRITE(1)NAME
write -- send a message to another user
SYNOPSIS
write user [tty]
DESCRIPTION
The write utility allows you to communicate with other users, by copying lines from your terminal to theirs.
When you run the write command, the user you are writing to gets a message of the form:
Message from yourname@yourhost on yourtty at hh:mm ...
Any further lines you enter will be copied to the specified user's terminal. If the other user wants to reply, they must run write as well.
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.
You can prevent people (other than the super-user) from writing to you with the mesg(1) command.
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 termi-
nal name as the second operand to the write command. Alternatively, you can let write 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.
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.
SEE ALSO mesg(1), talk(1), wall(1), who(1)HISTORY
A write command appeared in Version 1 AT&T UNIX.
BUGS
The sender's LC_CTYPE setting is used to determine which characters are safe to write to a terminal, not the receiver's (which write has no
way of knowing).
BSD February 13, 2012 BSD
Check Out this Related Man Page
WRITE(1) BSD General Commands Manual WRITE(1)NAME
write -- send a message to another user
SYNOPSIS
write user [tty]
DESCRIPTION
The write utility allows you to communicate with other users, by copying lines from your terminal to theirs.
When you run the write command, the user you are writing to gets a message of the form:
Message from yourname@yourhost on yourtty at hh:mm ...
Any further lines you enter will be copied to the specified user's terminal. If the other user wants to reply, they must run write as well.
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.
You can prevent people (other than the super-user) from writing to you with the mesg(1) command.
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 termi-
nal name as the second operand to the write command. Alternatively, you can let write 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.
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.
SEE ALSO mesg(1), talk(1), wall(1), who(1)HISTORY
A write command appeared in Version 1 AT&T UNIX.
BUGS
The sender's LC_CTYPE setting is used to determine which characters are safe to write to a terminal, not the receiver's (which write has no
way of knowing).
BSD February 13, 2012 BSD
Hello: How would you send message to other unix users logged in into the system now.. what should i verify, before sending them a mail across that displays mesage on the terminal. Any man pages? Thanks, ST2000 (2 Replies)
I have an NCR Woldmark 4400 MP Ras, OS 3.02.
When logged on from a pc via Reflections for Unix, if I
type in "who am i" the response is blank. If I log in via
dumb terminal and type "who am i" the system returns
my system id.
Any ideas on what I am missing?
Do I need some logic in my... (2 Replies)
ok, i've got a FreeBSD box, and it doesn't like my monitor. At all. The first time i installed BSD, it wouldn't write the changes. I reformated and reinstalled, and this time it would write, but when i went to load the x server with startx it would go through the load process, but say "no screens"... (4 Replies)
Hi Group ,
I m trying to execute commands on some other system using write command but inspite of executing the commands they r passed as simple messages.
- i m writing
>write user-id
! ls
o
ctrl-d
inspite of executing the command ls,other terminal shows ! ls.
Thnx in advance. (2 Replies)
hi,
I need to send a message to multiple users to all there logged on terminals
i tried write but its send to only one user and only one terminal
i cant use wall command because all the people in group should not receive the message (3 Replies)
Hi,
I am practicing exercise programs with System calls.
Exercise Question: write a pogram to accept a filename from the user. The program should write ecery fifth byte of the file to the standard output.
My Program :
# include <stdio.h>
# include <fcntl.h>
# include <error.h>
... (10 Replies)
hi
i have the bellow code
echo enter student number
read num
echo $num > ./st/file1
i got the bellow error
': not a valid identifier
and num value is not written in file1 (it's actullay remove the value i saved before in a file1 with an empty line ) :confused:
when i try to... (8 Replies)
I have a situation, where some script (running background) need to use the 'write' command and get a text to appeared on any screen of some particular user.
Like:>echo "$message"|write user1
But I surprisingly realized, that if a person logged under any other name and after that uses the 'su'... (11 Replies)
Hi All,
Need urgent help!!!
Can anyone tellme how can we send a message on specific user terminal and get a response from user in return.
Thanks in advance. (3 Replies)
In the following code segment I write to some file using , but this write is not readable by me when i open the file. any helps would be thankful.
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<errno.h>
#include<fcntl.h>... (6 Replies)
Hello all,
New to C and I'm trying to write a program which can run a unix command. Would like to have the option of giving the user the ability to enter arguments e.g for "ls" be able to run "ls -l".
I would appreciate any help.
Thanks
#include <stdio.h>
#include <unistd.h>
#include... (3 Replies)
I was executing a command "who -ms" from a CHUI application but i get below message,
It seems that who command can be executed only when we are logged directly in unix box as we have terminal.
Is there a way to get rid of this problem , or anyother command where i can get machine name of the... (4 Replies)
Hi guys,
How to write terminal contents into a file in Unix operating system
Actually I created GUI by using Gtk2-perl. I want to display data on GUI whatever the contents writing on terminal. So which command I have to use and where that command to be run I mean in shell script or Perl... (2 Replies)