LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hi

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@192.168.0.111
and I get this error

write: blah@192.168.0.111 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?

Thanks

Last edited by Bruce5; 06-17-2014 at 04:08 PM.
 
Old 06-17-2014, 08:19 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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.

Code:
ssh 192.168.0.111 'echo hello | write blah'

echo hello | ssh 192.168.0.111 'write blah'

ssh 192.168.0.111 'write blah'

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

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
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.
  


Reply



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 02:34 PM
how to send a message to another computer? topheraholic Linux - Networking 2 05-31-2009 06:36 AM
Send popup message to Windows computer Snouser Linux - Software 5 08-02-2008 05:54 PM
Is it possible to send a message to a windows computer using samba? stormrider_may Linux - Networking 1 02-05-2006 11:54 AM
I get a "relaying denied" message when I try to send mail from a remote computer robmainella Linux - Software 4 09-09-2003 10:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:41 PM.

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