ttinput - Inject console input in a terminal as if the user typed
echo Lorm ipsum | ttinput /dev/pts/1
https://johnlane.ie/injecting-terminal-input.html