linux - How can I echo to /dev/tty? -


is there way send "end of data" after executing

echo "test" > /dev/tty1

in order gain "input cursor" "receiving" terminal (in case tty1)?

screenshot: http://picload.org/image/acdwigg/tty.png

using echo > /dev/tty can't achieve that. can sending signal process using tty.

for example:

kill -s sigint `ps -ft pts/2 | grep pts/2 | cut -d ' ' -f 5` 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -