lkml.org 
[lkml]   [1996]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: /dev/tty1 strangeness
>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_


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.067 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site