Re: recognizing an xterm running only bash from the CLI
On Sun, Aug 10, 2025 at 21:58:32 -0500, Mike McClain wrote:
> Most of my Linux use is on the commandline.
> When I launch X I always start an xterm, one running mc and firefox.
> >From X I have a tiny script 'to9' that copies my entry to /dev/tty9.
> Going the other way from the CLI to X I have to go to X and see which
> /dev/pts/* is just running bash.
> Does anyone know a way to ID that open xterm from the CLI?
I'm having trouble understanding what you're saying here. When you
say "copy my entry", does that mean you want to type stuff on one
terminal, and have it appear on the other terminal?
If that's the ultimate goal, then I suggest you use tmux or screen.
Connect both tty9 (virtual console) and your xterm to the multiplexed
session, and they will both have the same content at all times.
Reply to: