Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month, online, via Jitsi Meet.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] Locating specific terminal windows by pty number?



This depends upon what Window Manager and perhaps Desktop Manager you're
running ?

Assuming you're X/X11 (as opposed to Wayland or whatever?) it looks like
optional installs *xdotool , xwit,* and *wmctrl* are the CLI options to map
PID to Window ID and remote control windows by Window ID. (But xwit doesn't
know from PIDs, so it needs the window id from elsewhere.)
e.g., from askubuntu.com (SE private label)

xdotool windowactivate `xdotool search --pid YOUR_PID_HERE | tail -1`



Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org