I am trying to write a basic write for Linux that opens a terminal window, sends a command, and then sends a character such as "Y" or "N". Also, after a fixed period of time, stop the process.
So far I can get the window and command running using:
gnome-terminal -e "command"
Anyone know how I can send a character like "Y" after that command executes in the new terminal window as well as stop the process in that window after a fixed period of time?