Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

bsd-write(1) [debian 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). The write utility does not recognize multibyte characters. BSD
July 17, 2004 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
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

send message across terminals

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)
Discussion started by: ST2000
2 Replies

2. UNIX for Dummies Questions & Answers

Talk utility

Are "talk" sessions logged or can they be logged? (1 Reply)
Discussion started by: pbonilla
1 Replies

3. UNIX for Dummies Questions & Answers

XWindow problems

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)
Discussion started by: GirlsHackBetter
4 Replies

4. UNIX for Dummies Questions & Answers

command ?

I need write how many lines have any file. Any command ? (2 Replies)
Discussion started by: kezzol
2 Replies

5. UNIX for Dummies Questions & Answers

Need to write messages to Multilple users

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)
Discussion started by: pbsrinivas
3 Replies

6. Shell Programming and Scripting

Redirecting <talk> output to a file

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)
Discussion started by: cej
4 Replies

7. Programming

EOF checking the below

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)
Discussion started by: ramkrix
10 Replies

8. UNIX for Dummies Questions & Answers

write to file

Hey guys, I'm really new with unix environment and I need your assistance. I'm trying to write a scripts that create a new file and entered several lines into it. I know how to do it using VI but I dont know how to write the code(for using scripts). does someone can help me with this? thx in... (1 Reply)
Discussion started by: Dave Green
1 Replies

9. UNIX for Dummies Questions & Answers

write new line at the beginning of an existing file

I was trying to find out the easiest way to write new line to the beginning of an exisiting file. I am using KSH. (5 Replies)
Discussion started by: sailussr
5 Replies

10. UNIX for Dummies Questions & Answers

write value to a file

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)
Discussion started by: dndoon
8 Replies

11. Shell Programming and Scripting

How to 'write' to a user, lgged from 'su'?

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)
Discussion started by: alex_5161
11 Replies

12. UNIX for Dummies Questions & Answers

How to write a string with special characters to a file

Hi, I want to erase the contents of a file and write a sql query into the file. "" > tmp.txt "select count\(\*\) \"Names\" from v\$ground where status\=\'Invalid\'\;" > tmp.txt doesnt work, pls help. (2 Replies)
Discussion started by: happyrain
2 Replies

13. Programming

writing to file is not readable by user

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)
Discussion started by: saman_glorious
6 Replies

14. Programming

Passing argument to command in C

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)
Discussion started by: effizy
3 Replies

15. UNIX for Beginners Questions & Answers

UUCP HELP for a desperate new user

Hello, I have a unique situation where I must pass along critical & time-sensitive emails to a group of seven different people. Every person with whom I communicate EXCEPT ONE uses a standard IP based ".com" email address. The one exception is a gentleman who will NOT budge and create a... (1 Reply)
Discussion started by: Bell02
1 Replies