Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #7185
| From | Avoid9Pdf@gmail.com |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: Who knows `ps` well? |
| Date | 2013-02-03 13:11 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <kelnlc$f85$1@dont-email.me> (permalink) |
| References | <ke8kl2$nau$3@dont-email.me> |
In article <ke8kl2$nau$3@dont-email.me>, J G Miller <miller@yoyo.ORG> wrote: > On Tuesday, January 29th, 2013, at 08:53:44h +0000, Chris Glurr burbled: > > > Actually `ps` and related utilities that can help show: > > which workSpace/s [in X] have got a running `links`. > > ps cannot tell you on which desktop workspace an application is running. Not DIRECTLY. It requires some thought/effort. > > ps has no concept of X11, desktops, or workspaces. > Mandrake 9: KDE3: `pstree -p` shows the VTs grouped per Desktop. `pgrep links` shows all links; but isn't needed since you can SEE the links [and any other pid] on the 'branch' of pstree. I wrote a script to list the <path> of all `mc`, as explained further below. lsof | grep <pid of mc> lead to the list of <mc paths>. Then later versions of KDE couldn't use it. > One of the few things which can indicate how to get to a workspace > with a particular running application is the desktop/window manager > "show windows" menu, and only if the application is of course an X11 > application, not something running within an X terminal emulator. > > > I don't know the details of what I'm doing. > > That has been obvious to most discerning readers of your postings > for a long time. > If you're a stalker, you may want to go to the kiddies SOCIAL network. This forum is for adults to exchange TECHNICAL info independant of names and personalities. > > But hopefully the fields: DEVICE, NAME can point to the WorkSpace. > > No they cannot do that directly. We're not expecting a DIRECT answer, like you'd get from the 'man' ========== Chris Davies writes:- > You could try something like "xwininfo -name links" and see if you > can derive any information from the geometry fields (Absolute position > vs Corners). The other one to try is "xwininfo -root -tree". But since > I don't know what you're trying to achieve it's pretty difficult to give > a specific answer. That's seems interesting for other puposes. Here's what's trying to be achieved. To know which book and page knows about a topic-type. Or: your work-room has 4 columns and 6 rows of work-benches. When you start, with no work-benches equiped, a Japanese task arrives. You call out the door for a Japanes-translator, who comes in and takes up any random free work-bench. When a Spanish task arrives, you want to know if/where any Spanish-translator are located, to pass the task to. Etc. for each type of task. In computing work-flow-terms, you don't want to launch a new mc on <pathN>, when there's already one available. Obviously the system knows what proccesses are running. And `ps` is the heart of that knowledge. And `lsof` is the center of knowledge of what <paths> any process may be 'looking-at'.
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Who knows `ps` well? Avoid9Pdf@gmail.com - 2013-01-29 08:53 +0000
Re: Who knows `ps` well? J G Miller <miller@yoyo.ORG> - 2013-01-29 14:00 +0000
Re: Who knows `ps` well? J G Miller <miller@yoyo.ORG> - 2013-02-02 17:10 +0000
Re: Who knows `ps` well? Avoid9Pdf@gmail.com - 2013-02-03 13:11 +0000
Re: Who knows `ps` well? J G Miller <miller@yoyo.ORG> - 2013-02-03 15:06 +0000
Re: Who knows `ps` well? Avoid9Pdf@gmail.com - 2013-02-05 09:36 +0000
Re: Who knows `ps` well? J G Miller <miller@yoyo.ORG> - 2013-02-05 15:17 +0000
Re: Who knows `ps` well? Avoid9Pdf@gmail.com - 2013-02-06 18:50 +0000
Re: Who knows `ps` well? Avoid9Pdf@gmail.com - 2013-02-07 05:14 +0000
How to use wmctrl to switch to a window on another workspace with an EMWH compliant window manager J G Miller <miller@yoyo.ORG> - 2013-02-07 15:58 +0000
Re: Who knows `ps` well? Chris Davies <chris-usenet@roaima.co.uk> - 2013-01-29 17:19 +0000
Re: Who knows `ps` well? Keith Keller <kkeller-usenet@wombat.san-francisco.ca.us> - 2013-02-05 08:09 -0800
csiph-web