From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653649621627.tru64-unix-managers.marc@archive.invalid> From: selcuk karaca Date: Mon, 04 Jun 2001 11:17:03 +0000 To: tru64-unix-managers Subject: spy program tty error X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653649621627 Hello admins, I have small problem, I ask you to help me ... My platform : Alpha 4100 2 Gb RAM , DU 4.0D I am trying to make a spy program, to see what our terminal users are doing (sometimes it is really neeeded) I have written a script ; in .profile, last line is; /usr/bin/sh -c "runform30 form_application | tee -a `tty` " 1> MY_TTY in this shell command, the output is directly sent to my terminal and "tee"d to the user's terminal. Now there are some problems here, Shell command can not write to the root's tty, infact it can not write to anyone's tty, apart from himself.. it gives an error in the profile execution like the following ; /dev/ttyXX: can not create When I look at the file permissions... crw--w---- 2 selcuk terminal 6, 59 Jun 4 14:09 /dev/ttysb it is easy to understand because no one is permitted to write to my terminal file.. But I want that user to output his screen to my terminal How can I achieve this without changing terminal device file permissions .. OR any other method to spy terminal user display ??? TIA...