I put a simple echo command in a CLI tty by user1 expecting it to reach user2 who is logged in a separate tty.
echo "Hello, world!" >> /dev/tty5
I expected user2 to get the echo message but nothing shows up.
Does each user get his/her own "set" of tty[1-7]?
Edit: I suspect this may be a permissions issue. I was actually exploring cron
jobs and had set a cron
job to echo
a "hello world" message every minute from user1
logged into tty2
directed to tty5
where user2
is logged in but user2
never got the echoed messages.
write
command. That's more along the line of what you want. – Max Dec 30 '12 at 19:24echo "Hello, world!" >> /dev/tty5; echo $?
? – Gilles 'SO- stop being evil' Dec 30 '12 at 23:44