tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: selcuk karaca <selcuk.karaca () aski ! gov ! tr>
To: tru64-unix-managers
Subject: spy program tty  error
Date: Mon, 04 Jun 2001 11:17:03 +0000	[thread overview]
Message-ID: <102653649621627.tru64-unix-managers.marc@archive.invalid> (raw)

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...

                 reply	other threads:[~2001-06-04 11:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox