Article 57MTG input to a psuedoterminal

input to a psuedoterminal

by
Skaperen
from LinuxQuestions.org on (#57MTG)
i have a psuedoterminal open in a terminal window (xfce4terminal to be exact). i want to stuff some input into it and have the shell on the slave side of the pty get it like any other typed input. everything was started under the same non-root user (there are no cross user issues). i see two possible ways, though there may be more. the 1st is that the terminal program may provide an interface to do this. the 2nd is writing directly to the master side of the psuedoterminal. i do have the tty device name from the tty command. how can i stuff type-in input into this psuedoterminal? i don't need to read the output though in the future that could be useful.latest?d=yIl2AUoC8zA latest?i=ZXmqPE2bynY:GbEjMsCjUy4:F7zBnMy latest?i=ZXmqPE2bynY:GbEjMsCjUy4:V_sGLiP latest?d=qj6IDK7rITs latest?i=ZXmqPE2bynY:GbEjMsCjUy4:gIN9vFwZXmqPE2bynY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments