I need to write commands from one terminal to another terminal.
I tried these:
echo -e \"ls\\n\" > /proc/pid/fd/0 echo -e \"ls\\n\" > /dev/pts/
look at:
man 1 script
for example:
script -f /dev/tty1