On Wed, Jan 21, 2004 at 10:34:05PM +0100, Esben Stien wrote: > Ludootje <ludootje _at_ linux.be> writes: > > > You can just cat the device, like cat /dev/tty<number>. So you can also > > use normal redirectors (> , >> etc) or use a pager. > > If I do cat /dev/tty1 on /dev/tty2, I see what I write to /dev/tty1 on /dev/tty2, but I don't see what I write to /dev/tty1 while working in /dev/tty1 (all the input is being printed on /dev/tty2) . And besides, I only see the input I type, not the output of f.ex a command (on /dev/tty2). I want to monitor users and log everything that is done on a specific tty when they log in. This is in debian: Package: ttysnoop Priority: optional Section: admin Installed-Size: 56 Maintainer: Alberto Gonzalez Iniesta <agi _at_ agi.as> Architecture: i386 Version: 0.12c-8 Depends: libc6 (>= 2.3.2-1) Filename: pool/main/t/ttysnoop/ttysnoop_0.12c-8_i386.deb Size: 15126 MD5sum: 462a28b83327bd2ae987791528e9e095 Description: TTY Snoop - allows you to spy on telnet+serial connections TTYSnoop allows you to snoop on login tty's through another tty-device or pseudo-tty. The snoop-tty becomes a 'clone' of the original tty, redirecting both input and output from/to it. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo _at_ vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
References:
- logging all input and output on a ttyEsben Stien
- Re: logging all input and output on a ttyLudootje
- Re: logging all input and output on a ttyEsben Stien
- Prev by Date: Re: logging all input and output on a tty
- Next by Date: [OT] Confirmation Spam Blocking was: List 'linux-dvb' closed to public posts
- Previous by thread: Re: logging all input and output on a tty
- Next by thread: Re: logging all input and output on a tty
- Indexes:[Main][Thread]