Operating System - HP-UX
1833873 Members
2556 Online
110063 Solutions
New Discussion

Re: Is is possible to monitor output of a terminal session that is already running?

 
Jack C. Mahaffey
Super Advisor

Is is possible to monitor output of a terminal session that is already running?

Is it possible to do something similar to "tail -f" output being sent to a terminal to watch what's being displayed? All output is text. Better yet, is it possible to redirect standard output of a process while it is already running?

Maybe tail -f /dev/pts/3 will work for the terminal?

I don't need to be interactive with the terminal.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Is is possible to monitor output of a terminal session that is already running?

I'm not sure that command will work, but its probably possible for the root user to grab the terminal output.

Its also possible to change it, which is why many admins make sure the terminal files are secure from such chickanery.

It can't hurt to try your command but i think its a differenet, temporary file you need to see.

The output may not be very user friendly.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Patrick Wallek
Honored Contributor

Re: Is is possible to monitor output of a terminal session that is already running?

I don't know if 'tail -f' will work. I kind of doubt it.

There is a third party application that will let you monitor, and even take control of, sessions on your machine. The product is called DoubleVision produced by Tridia. http://www.tridia.com/

I have used the product in the past and it works really well.

Jack C. Mahaffey
Super Advisor

Re: Is is possible to monitor output of a terminal session that is already running?

I'm trying it now. It looks like it's just hanging. Gonna give it some time.
Jack C. Mahaffey
Super Advisor

Re: Is is possible to monitor output of a terminal session that is already running?

Thanks Patrick. I'll look into it.

jack...