I try to understand why, when I pass some text to a pseudoterminal by directly doing, for instance : printf "ls" > /dev/pts/3
, pressing Enter just after doesn't result in executing the command? Is there a way to do this?
Asked
Active
Viewed 32 times
1

Aramya
- 37
-
Thanks to this link I made an attempt to get it work. But the solution involving ioctl and TIOCSTI seems to work only when I give the /dev/pts/0 file descriptor where 0 is the running terminal. Any solution for passing input to others? – Aramya Feb 28 '22 at 16:04