How to send a message to a specific pts?

Solution 1:

Try this:

write yang /dev/pts/6
#type your message
#ctrl + D (EOF) 

see: man 1 write


or echo "message" > /dev/pts/6