I have two pts terminals open in my Gnome desktop manager Ubuntu.
What I am trying to do is to write something to the terminal /dev/pts/0 using the terminal /dev/pts/1 using redirection like:
##in pts/1
echo date > /dev/pts/0
But in pts/0, only date is simply printed and pressing enter doesn't execute it. So i guessed the comamnd is not going to the standard input of pts/0 .So I tried piping the output of echo date to /dev/pts/0 which gave me permission denied error to which i became root and changed permissions of it and still i couldn't get date command to run in pts/0 .
I am trying these things for learning purposes. So i really am confused how its all working here and what i should do to get it done.