Re: Code to execute a command on another tty

2006-07-29 Thread STeve Andre'
On Tuesday 25 July 2006 13:20, Michael Coulter wrote: > On Mon, Jul 24, 2006 at 08:36:29PM -0400, STeve Andre' 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? > > In tty(4), have at l

Re: Code to execute a command on another tty

2006-07-25 Thread Michael Coulter
On Mon, Jul 24, 2006 at 08:36:29PM -0400, STeve Andre' 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? In tty(4), have at look a TIOCSTI.

Re: Code to execute a command on another tty

2006-07-25 Thread Barry, Christopher
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of STeve Andre' > Sent: Tuesday, July 25, 2006 9:35 AM > To: misc@openbsd.org > Subject: Re: Code to execute a command on another tty > > That echoes data to another tty; I

Re: Code to execute a command on another tty

2006-07-25 Thread STeve Andre'
That echoes data to another tty; I want to send *input* to that ttty as if somewhere were there. --STeve Andre' On Tuesday 25 July 2006 07:11, Lawrence Horvath 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 c

Re: Code to execute a command on another tty

2006-07-25 Thread Michael Hernandez
On Jul 25, 2006, at 9:55 AM, Lawrence Horvath wrote: oh, actaully executing it in the other shell, not just outputting it to another terminal, yea thats trickier, havent been able to get that done, though i was working on it a while, did get to far, i guess you could direct input to the other sh

Re: Code to execute a command on another tty

2006-07-25 Thread Lawrence Horvath
oh, actaully executing it in the other shell, not just outputting it to another terminal, yea thats trickier, havent been able to get that done, though i was working on it a while, did get to far, i guess you could direct input to the other shell? possible? almost to simulate having input the comm

Re: Code to execute a command on another tty

2006-07-25 Thread Jeff Quast
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 corre

Re: Code to execute a command on another tty

2006-07-25 Thread Lawrence Horvath
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

Code to execute a command on another tty

2006-07-24 Thread STeve Andre'
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? Thanks, STeve Andre'