On 7/24/06, STeve Andre' <[EMAIL PROTECTED]> wrote:
>    I'm looking for a way to execute commands on other tty's.
> On SunOS there was force.  Is there an equivelant here or do
> I need to make my own?

On 7/25/06, Lawrence Horvath <[EMAIL PROTECTED]> wrote:
As long as the permissions are correct you can just redirect, you just
need to know what tty your piping to, i used who to check, and you
have to be an equal or higher user, my example was done as the same
user on both sides, like so:

ttyp1:
$ echo hello world > /dev/ttyp0
$

ttyp0
$ hello world

I think STeve means otherwise, as to force that user's tty to give
input to the command shell or force them to do an exec(). In this
example, ttyp1 is doing the actual exec, and redirecting the output to
ttyp0.

I don't know of any methods myself to force a user to do an exec() on
a specific terminal. I think this would require some help in the
kernel, or software on both terminals such as 'screen'.

Reply via email to