[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Program on a tty
> Does anyone know of a way to run a curses program so the output is displayed
> on a serial terminal, but one does not have to login on that terminal. I
> have acquired a monochrome NTSC projector (big thing, goes in the cieling) that
> I drive from a 286 with a CGA card (obviosly text only) that I have hooked
> as a terminal to the Linux host. But I want to be able to shove the 80286
> in the cieling as well and be able to start a program (example top) that
> puts it's output to that serial port where the 286 is running a terminal
> emulator. Then the projector shoots the terminal screen against the wall.
>
> I've tried "nohup top 2>&1 > /dev/cua? &" and like derivations but everything
> stops with "Terminal Output".
It's the "&" that's giving you the error message.
Programs like "top" accept keyboard input (i.e. "q" quits).
It cannot run in the background, even on the local tty.
You might want to try it without the "&", or maybe redirect
the input from the serial port too.
i.e. "top > /dev/cua0 < /dev/cua0"
If it still gives you trouble, you might have to set the
terminal type and/or stty settings. Try something like:
(
stty ...
export TERM=vt100
top
) > /dev/cua0 < /dev/cua0
-- Or -- you could try running it in one xterm, and
"tee" the output to /dev/cua0 also.
Good luck. Let me know how you make out.
--------------------------------------------
Bruce Smith bruce@armintl.com
System Administrator / Network Administrator
Armstrong International, Inc.
Three Rivers, Michigan 49093 USA
http://www.armstrong-intl.com/
--------------------------------------------