Intercept and duplicate a tty/pty input.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

Is it possible to intercept and duplicate a tty/pty input?
I want to do the following thing.

Let there be three Linux hosts, named host1, host2, host3.
(1) Press a key at host1.
(2) Intercept the key input.
(3) Deliver the key input to host2 and host3.
(4) The pressed key appears at host2 and host3.
Or
(1) Two SSH connections are established from host1 to host2 and host3.
(2) Deliver "whatever keys pressed for host2 from host1" to host3.

Do I need to modify the kernel?
Or can I do the above thing using syscalls and glibc functions?

Regards.
--
    Tetsuo Handa

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux