Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sending commands to another terminal

1 view
Skip to first unread message

MS

unread,
Aug 30, 2003, 7:12:12 AM8/30/03
to
I'm trying to write a program that should send commands to another
opened terminal. If I open an new xterm, a new /dev/pts/x device is
created, and I can just printf/cat text to the device. However, a
newline is just printed, not executed. Is there a way to do something
like echo "ls -l" > /dev/pts/3 and have it actually executed? Thank
you for your help.
0 new messages