The problem is quite simple. As you mention you get the error:
Quote:
id2 is logged on more than one place.
You are connected to "pts/2".
Other locations are:
pts/10
|
It is telling you that id2 has two sessions open and the write command doesn't know which of the two to write to.
man write will tell you what to add to the write command to send it to a certain sessions (either pts/2 or pts/10 in your example.
Another way to solve it is to make sure you only have one session open....but I guess in this case you want 2 sessions to see the write....