LinuxQuestions.org
Register a domain and help support LQ
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, 05: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 05:08 PM.
 
Old 06-17-2014, 09:19 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,832
Blog Entries: 36

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
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 09:23 PM.
 
2 members found this post helpful.
Old 06-17-2014, 09:25 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,948

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
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


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


All times are GMT -5. The time now is 04:28 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration