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
Post a Comment