Prev: eee pt 3
Next: Usenet search question
From: no.top.post on 14 Feb 2010 14:19 In article <slrnhne57n.pop.aznomad.3(a)ip70-176-155-130.ph.ph.cox.net>, AZ Nomad <aznomad.3(a)PremoveOBthisOX.COM> wrote: > On Sat, 13 Feb 2010 20:55:23 +0000 (UTC), no.top.post(a)gmail.com <no.top.post(a)gmail.com> wrote: > >pgrep <the App.> > > shows the pid/s of the several copies of the running App, > > and > >pstree -p > > shows the pid/s of the various apps. > > > >Where would the info be that ties the pid to the > >Desktop & console? > > >== TIA. > > I use ps -ef | grep <application> > The second parameter is the parent id. > then I use ps -ef | grep <id> > so I can see it's parent id. Eventually that'll lead to the window > manager, then eventually to init. > Well the window manger MUST know how many consoles each desktop has open ? But when I close and open new consoles and then do: 'find <files-newer than 90 minutes> <in root, usr, home, etc> I can't see where/that the info about the new console/s is saved ?! > There are also gui process monitors like gnome-system-monitor > that have options for a tree view, or 'ps -ejH' > 'pstree -p' shows the ps-tree with all pids, but none of this tells the (Desktop, Console) pair of a pid/application. I used to start appZ in console1 of desktop1, and ...console4 of desktop4, so that by looking at pstree I could count the 'rows' and know which (D,VT) had any pid. But that's absurd to have to do. I've 'browsed' the /proc/<pid> where *I* know what the (D,VT) is, but can't find it hidden there. Someone must know how to crack this!
From: Mark Hobley on 14 Feb 2010 16:08 no.top.post(a)gmail.com wrote: > Well the window manger MUST know how many consoles > each desktop has open ? > But when I close and open new consoles and then do: > 'find <files-newer than 90 minutes> <in root, usr, home, etc> > I can't see where/that the info about the new console/s is > saved ?! I don't understand which piece of information you are looking for. Do you want to know the tty number for a process, or do you want to know how many terminal sessions a user has open, or do you want to know how many terminal sessions have been spawned by the window manager or what? ps -ef will tell you all of these things. Mark. -- Mark Hobley Linux User: #370818 http://markhobley.yi.org/
|
Pages: 1 Prev: eee pt 3 Next: Usenet search question |