Operating System - HP-UX
1834022 Members
2358 Online
110063 Solutions
New Discussion

Re: sending the display to other terminals

 
SOLVED
Go to solution
so_2
Regular Advisor

sending the display to other terminals

Hi all,

I know that we can get the display of console on our working terminal by dtterm -C -name console &. How can i see the display on another terminal say /dev/pts/tc on my terminal /dev/pts/ta.

Thanks in advance.
s.o
6 REPLIES 6
Senthil Kumar .A_1
Honored Contributor

Re: sending the display to other terminals

Hi,

As per my knowledge it is not possible. You can write to the other terminal using commands like ">", "talk" , "wall" etc.. but cannot read whats on the other terminal. So to speak you can't read the data on the other streams.

I'm not too sure, possibly by system programming manupulating underlying "file discriptors" , Have thought of , but never tried ....

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
RAC_1
Honored Contributor
Solution

Re: sending the display to other terminals

Identify destination terminal with command tty
Then, on source session, do
script "tty_out_put_from_dest_terminal"

There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: sending the display to other terminals

S.O,

You can use "script" command. Do a man script for more information.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Senthil Kumar .A_1
Honored Contributor

Re: sending the display to other terminals

Hi RAC,

That was cool trick, Never tried that one before. Thanks, it might be handy in future.

Regards,
Senthil Kumar .A

P.S:

Hi so , I test it, it really works. I hope thats what you wanted.
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Senthil Kumar .A_1
Honored Contributor

Re: sending the display to other terminals

By the way , I need to think twice before concluding "not possible" in Unix world :)
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
so_2
Regular Advisor

Re: sending the display to other terminals

Hi All

Thanks to you all for the replies. I got what i need. Points have been assigned to everyone.

Thanking you again.
s.o