You need to work the script around and logginova message in a predetermined place, and in another terminal, they would appear as they are received.
• Just write in logimouse terminal.
echo “$message” > /dev/virtual terminal tty2
The problem is that the numbers of the terminals are dynamically created and adjust the main script in each run do not want to.
• To write to a file.
Then you have to write a viewing program with an infinite loop, monitoring the difference, udalenie. I think it's bold for such a task.
• Write to the pipe.
tty1: ping toster.ru > pipe
virtual terminal tty2: cat pipe
What you need! But the pipe will block the main script, if nobody will read it.
It may be possible to find out whether the pipe is full before writing to it?
Or is there some standard solution?