Hi!

I need a shell script for Linux. It must show me the "window title" from process id (PID).

I found something here but it does not work: http://blog.chewearn.com/2010/01/18/find-window-id-of-a-process-id-in-bash-script/

I will be happy if somebody can help me.

Thnak you!

Terminal >

xwininfo

click on desired window... and check the terminal for "Window ID" output...
Window id: 0x4e000a3 "Window title from PID (script) - Ubuntu Forums - Mozilla Firefox"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.