On Wed, May 25, 2011 at 1:15 PM, ANAMIKA CHAUHAN
<[email protected]> wrote:
> when I am using talk command   this is shown on my screen "checking for
> invitation on callers machine "....but nothing (no invitation) is shown on
> the person's screen  to which i want to communicate.
> I am taking root and anamika as two different users.
> anamika@localhost~  $ ssh root 127.0.0.1
> root 127.0.0.1's  password
> last login
> root@localhost~ $ talk root

Once you login as root, you probably want to talk to anamika and not
to root himself? Either ways, it seems talk requires talkd to be
running (here is a link to get that working:
http://ubuntuforums.org/showthread.php?p=1398433#post1398433 ) and is
not based on write.

Here is how you can use write
1. Open terminal 1 (let's say as anamika or user1)
$ ps
  PID TTY          TIME CMD
 5967 pts/5    00:00:00 bash
 6028 pts/5    00:00:00 ps

In an output like this, note the TTY of this terminal that is open.
Leave the terminal open.

2. Open terminal 2 (this user, user2, will try to contact anamika)
$ write anamika pts/5

In terminal 1, anamika receives
Message from user2@localhost on pts/6 at 13:25 ...

3. To be able to reply back, user2 should type (even though there is
no prompt available):
write user2 pts/6 (the pts/6 is identified from the caller's invitation).

You now have a bidirectional session running. I have tested this on my
PC and it works. You can use "ps ax" in step 1 to identify all logged
in users and their terminal TTYs.


Sharad

-- 
Mailing List Guidelines and other Information articles - 
http://lug-iitd.org/Footer

Reply via email to