Advertisement
Guest User

Muestra el proceso que lanzó la ventana

a guest
Oct 24th, 2013
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. #!/bin/bash
  2. id_ventana=`xwininfo | grep "Window id:" | cut -d":" -f 3 | cut -d" " -f 2`
  3. id_proceso=`xprop -id "$id_ventana" _NET_WM_PID | cut -d"=" -f 2 | tr -d " "`
  4.  
  5. ps --pid "$id_proceso" -o user,group,pid,cmd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement