How do I catch all output

john.urban urban at cbnewsl.att.com
Wed May 8 00:36:41 AEST 1991


In article <y3cG#taz1 at cs.psu.edu> cho at sol4.cs.psu.edu (Sehyeong Cho) writes:
>Hi, wizards.
>I know I can use ioctl to simulate keyboard input.
>But I don't know how to catch all output to my terminal (similar to
>script, but not using a pty. For instance, I must catch someone writing
>to my terminal by "write" or "talk").
>Have an idea?
>
>Thanks.

I've held off answering this question for some time.  Too see if any good
answers appear.  I really haven't seen any.

I've tried script(1) on UNIX System V/386 Release 4.0 and then had user's
wall(1) and write(1) me.  After I exited script, my typescript file
did not have the wall messages or the other user's half of the write(1)
session.

Any ideas?


Sincerely,

John Urban



More information about the Comp.unix.wizards mailing list