LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 09-15-2011, 03:23 PM   #1
someshpr
Member
 
Registered: Jul 2009
Location: CA, USA
Distribution: Debian, RHEL5.4, CentOS 5.4, 6.2, Ubuntu 11.04,12.04
Posts: 107

Rep: Reputation: 26
"talk" command not working


I have tried to use "talk" command to communicate with users logged in the same machine and also in different machines. But every time I get something like this:
My terminal gets divided horizontally in two section and this message comes in the center:
"Error on read from talk daemon: Connection refused. Press any key..."
And on top there is a message:
"No connection yet"

After a while this message goes away and then there is a message "Checking for invitation on caller's machine"
on top and then nothing happens. If I press any this screen goes away and normal terminal returns.

I checked my mesg settings and it is "y"

Is there something else I have to enable/disable? Where to look for the settings?

Is there any alternate way to communicate with other users?

My OS is CentOS 5

TIA,
 
Old 09-16-2011, 02:23 AM   #2
Boeta87
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Rep: Reputation: 2
Lightbulb Possible Solution

HI,

i did some research on the "talk" query, and came upon this site http://linux.die.net/man/1/talk
What i could make out from this.... Try to list your other users that you want to chat to in your /etc/host file with their name and IP add!
 
Old 09-16-2011, 02:24 AM   #3
Boeta87
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Rep: Reputation: 2
ANOTHER LINK: http://linux.about.com/od/commands/l/blcmdl1_talk.htm
 
Old 09-16-2011, 02:44 AM   #4
Boeta87
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Rep: Reputation: 2
Question WALL Command

Another way to "braodcast" a message to all Linux terminals on the same network is by using the WALL command.

i.e: # wall TYPE YOUR MESSAGE HERE TO DISPLAY TO ALL TERMINALS (ENTER)
it will then echo your message like this:

Broadcast message from root (pts/1) (Fri Sep 16 08:26:43 2011):

TYPE YOUR MESSAGE HERE TO DISPLAY TO ALL TERMINALS
and press ENTER again to send the broadcast, which will also then take you back the to Hash.
 
1 members found this post helpful.
Old 09-20-2011, 01:42 PM   #5
someshpr
Member
 
Registered: Jul 2009
Location: CA, USA
Distribution: Debian, RHEL5.4, CentOS 5.4, 6.2, Ubuntu 11.04,12.04
Posts: 107

Original Poster
Rep: Reputation: 26
Wall works!

Quote:
Originally Posted by Boeta87 View Post
Another way to "braodcast" a message to all Linux terminals on the same network is by using the WALL command.

i.e: # wall TYPE YOUR MESSAGE HERE TO DISPLAY TO ALL TERMINALS (ENTER)
it will then echo your message like this:

Broadcast message from root (pts/1) (Fri Sep 16 08:26:43 2011):

TYPE YOUR MESSAGE HERE TO DISPLAY TO ALL TERMINALS
and press ENTER again to send the broadcast, which will also then take you back the to Hash.
Thanks Boeta,
I tried all the options given in the man pages of talk. Nothing worked. I have way too many users and also do not have a static IP for the machines, so I couldn't add them to hosts!

But "wall" works for me and my immediate purpose is solved by wall command.

Thanks again,
 
Old 09-21-2011, 02:36 AM   #6
Boeta87
LQ Newbie
 
Registered: Oct 2010
Posts: 6

Rep: Reputation: 2
Thumbs up

Glad i could help! I dont know if you are able to set up menu's on your system, but what i did is wrote a scriptfile that i call from the menu!
Here's an example...


!#bin/sh
clear
echo ""
echo " You are about to broadcast a message to ALL users "
echo " On this Network! Press Enter to continue. "
echo ""
read c
clear
echo " Type your message here... "
read msg
clear
/usr/bin/wall $msg
/usr/bin/wall
echo "Here is your message! Press ENTER to Continue!"
read c
read c



what's nice about having a scriptfile is that your users dont have to go to the bash (command line) to be able to "Wall" a message, but they can do it from a menu option on the software! <<------ just a thought!
 
  


Reply

Tags
talk


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
"service __ restart" bash command isn't working case1984 Linux - Newbie 9 04-10-2008 03:35 PM
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 08:11 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
chrooted user: "write" and "talk" don't work. ldp Linux - Software 2 04-12-2005 03:05 AM
why cannot "talk" to others,since mesg is yes and disable = no(in /etc/xinetd.c/talk) whepin Linux - Newbie 0 12-31-2001 03:04 AM


All times are GMT -5. The time now is 02:00 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration