Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- id_ventana=`xwininfo | grep "Window id:" | cut -d":" -f 3 | cut -d" " -f 2`
- id_proceso=`xprop -id "$id_ventana" _NET_WM_PID | cut -d"=" -f 2 | tr -d " "`
- ps --pid "$id_proceso" -o user,group,pid,cmd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement