You are not logged in.
Pages: 1
Hi,
I'm thinking about controlling one terminal from another, so I can use simple scripts to manipulate them, but is there a way to do it?
Tried to do it with:
echo "echo asdf" > /dev/pts/1
but only text had come out and not a command (not parsed by the shell).
I know TIOCSTI in <ioctl.h> could simulate fake keystroke, but it seems to work only on current tty.
Offline
One way to do it is to wrap the terminal in screen. Then it is as simple as "screen -X". See http://rustyklophaus.com/articles/20100618-Pecho.html for a complete example.
Offline
Pages: 1