Re: /dev/tty1 strangeness

Aaron Ucko (UCKO@vax1.rockhurst.edu)
Thu, 25 Jul 1996 10:29:41 -0600 (CST)


>Form my original post:
># After logging onto tty1 as user or root, that terminal starts loosing
>keystrokes
>
>Thanks to Steven S. Dick (ssd@nevets.oau.org) who replied:
>> Is it possible you have two processes on tty1 both trying to read?
>
>At first I thought this was impossible, but remembered that the top process
>I now think that top was reading stdin from tty1, disregarding the
>redirection to tty9.
>
>My tty1 is fine when I kill top in tty9 (I have commented that line out in
>inittab).
>
>Is this a bug in procps-1.01, or is there another way to redirect top to an
>unused tty?

There are two things you can do:
(1) Obtain the program `open' and replace that command with `open -c 9 top'

(2) Replace it with `top </dev/tty9 >/dev/tty9 2>/dev/tty9'

Of the two, (1) is probably better.

-- 
Aaron Ucko (ucko@vax1.rockhurst.edu; finger for PGP public key) | Geek Code
3.1 [for explanation, finger hayden@mankato.msus.edu]: GCS/M/S/C d- s+: a18
C++(+++)>++++ UL++>+++ P++(+++) L+++(++++)>+++++ E- W+(-) N++(+) o+ K- w---
O M-@ V-(--) PS++(+++) PE- Y+ PGP(+) t(+) !5 X-- R(-) tv-@ b++(+++) DI+ D--
G++(+++) e>+++++(*) h!>+ r-(--)>+++ y? | "That's right," he said. "We're
philosophers.  We think, therefore we am." -- Terry Pratchett, _Small Gods_