WRITE(1) BSD General Commands Manual WRITE(1)NAME
write -- send a message to another user
SYNOPSIS
write user [ttyname]
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's
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.
BSD June 6, 1993 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
Does anyone know how to write a script to find out if a particular user is logged in to unix and send a greeting if they're logged in; otherwise, if they're not return a message they're not logged on.
I'm still a beginner at this and I know you can use the 'who' command to find who's logged in... (3 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)
Hello to all,
Does anyone have a clue for the following problem?
When I enter into a terminal console window logged as axadmin user, what I find in the prompt is: “axadmin@sunhost$”.
But, when I switch to root user, with the command “su -“ and enter the correct password, user root is... (4 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.
Rather than go off-topic in https://www.unix.com/unix-dummies-questions-answers/45122-comparison-2-files-unix-2.html#post302145451I I started this thread.
In addition to continuing the discussion here, there are related threads on this topic at: How do you "get into" the programming... (4 Replies)
Is it possible to run <talk> such that both sides of the conversation are written to the screen and also to a file?
I use the utility to chat with collaborators and sometimes it would be nice to have a record of our conversation while we are problem solving.
I am running OS X, so <talk>... (4 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)
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)