Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-17-2014, 05:06 PM   #1
LQ Newbie
Registered: Jun 2014
Posts: 3

Rep: Reputation: Disabled
Using write to send a message to another computer


I have two linux computers running mint 17. On both computers I set mesg y to allow communications.

The write commands works locally but when I want to send a message to another computer it doesn't seem to work.

I've tried this syntax to no avail

write blah@
and I get this error

write: blah@ is not logged in on pts/0

That's funny because blah is logged in. Is the write command only limited to talking on the same machine?


Last edited by Bruce5; 06-17-2014 at 05:08 PM.
Old 06-17-2014, 09:19 PM   #2
Senior Member
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,851
Blog Entries: 36

Rep: Reputation: 455Reputation: 455Reputation: 455Reputation: 455Reputation: 455
man write

It tells you it's for sending messages to other users. It makes no mention of being able to send messages to users on other computers over the network on my system. You can still use ssh.

ssh 'echo hello | write blah'

echo hello | ssh 'write blah'

ssh 'write blah'

Last edited by sag47; 06-17-2014 at 09:23 PM.
2 members found this post helpful.
Old 06-17-2014, 09:25 PM   #3
Registered: Aug 2002
Posts: 16,426

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
As far as I know write only works on the same computer. The correct syntax is:
write username tty

talk or ntalk is capable of communicating with users on different computers. They use xinetd.
2 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Postfix - I can send mail from my computer; but others can't send to me... djuhl30 Linux - Server 8 10-12-2009 03:34 PM
how to send a message to another computer? topheraholic Linux - Networking 2 05-31-2009 07:36 AM
Send popup message to Windows computer Snouser Linux - Software 5 08-02-2008 06:54 PM
Is it possible to send a message to a windows computer using samba? stormrider_may Linux - Networking 1 02-05-2006 12:54 PM
I get a "relaying denied" message when I try to send mail from a remote computer robmainella Linux - Software 4 09-09-2003 11:39 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration