shell 怎么弹出某个进程的窗口?

sh/bash/dash/ksh/zsh等Shell脚本
回复
头像
Qiqidone
帖子: 37
注册时间: 2009-07-16 8:53

shell 怎么弹出某个进程的窗口?

#1

帖子 Qiqidone » 2011-10-11 22:09

ps -A | grep xxx 得到pid,
问下想弹出这个在运行程序的窗口,shell下该怎么做?
多读点书:什么都略懂一点,生活更精彩一些
GNU Suit : Linux | Emacs | GCC | GDB | Make......
C++ = C + OOP + Tmp + STL;
Python: Simple is beauty
(Lisp 'Big Picture)
头像
naturalaw
帖子: 1360
注册时间: 2011-09-06 22:04

Re: shell 怎么弹出某个进程的窗口?

#2

帖子 naturalaw » 2011-10-11 23:29

弹出???
我只知道。
notify-send
或者
zenity
  • The eternal law
头像
lilydjwg
论坛版主
帖子: 4258
注册时间: 2009-04-11 23:46
系统: Arch Linux
联系:

Re: shell 怎么弹出某个进程的窗口?

#3

帖子 lilydjwg » 2011-10-12 0:27

什么叫弹出?

如果你是指激活的话,根据 pid 找到 xid (wmctrl -lp),然后再用 wmctrl -a 或者 xdotools 什么的激活它。
头像
Qiqidone
帖子: 37
注册时间: 2009-07-16 8:53

Re: shell 怎么弹出某个进程的窗口?

#4

帖子 Qiqidone » 2011-10-13 15:00

lilydjwg 写了:什么叫弹出?

如果你是指激活的话,根据 pid 找到 xid (wmctrl -lp),然后再用 wmctrl -a 或者 xdotools 什么的激活它。
get it~ thx
多读点书:什么都略懂一点,生活更精彩一些
GNU Suit : Linux | Emacs | GCC | GDB | Make......
C++ = C + OOP + Tmp + STL;
Python: Simple is beauty
(Lisp 'Big Picture)
回复