On Tue, Mar 16, 2004 at 11:18:13PM -0800, Bill Moseley wrote: } On Wed, Mar 17, 2004 at 01:42:46AM -0500, Gregory Seidman wrote: } > On Tue, Mar 16, 2004 at 10:16:37PM -0800, Bill Moseley wrote: } > [...] } > } It would be nice if I could restore the window name back to what it was. } > } I know I can find the current title with xprop and a mouse click. Any } > } way to find if the program is running in a window and if so what the } > } current WM_NAME is (without having to click the mouse?). } > } } > } In other words, how can my perl script check if there's a name and what } > } it is currently set as? } > } > This works on an xterm (and may work on other terminals, but I don't } > use 'em): } > } > xprop -id $WINDOWID WM_NAME | sed 's/^[^=]*= "\(.*\)"$/\1/' } } Hum.. That works locally, but not on ssh connections. $WINDOWID isn't set.
That all depends on how you start your ssh sessions. I generally use: ssh -X -f [EMAIL PROTECTED] xterm If you run the xterm on the remote box, displayed via X11 forwarding, all is well. This requires slightly more bandwidth than the other option, but the benefits are pretty strong (from my perspective). } Bill Moseley } [EMAIL PROTECTED] --Greg -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

