SHARE
TWEET

Muestra el proceso que lanzó la ventana

a guest Oct 24th, 2013 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top