Groups | Search | Server Info | Login | Register
Groups > comp.os.linux.misc > #941
| From | no.top.post@gmail.com |
|---|---|
| Newsgroups | alt.os.linux.slackware, comp.os.linux.misc |
| Subject | Re (2): HOW2 know which Desktop,VT is busy with USBstik |
| Date | 2011-04-27 13:16 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <ip94v9$9qa$1@dont-email.me> (permalink) |
| References | <pan.2011.04.24.20.21.17.530561@deadspam.com> |
Cross-posted to 2 groups.
In article <pan.2011.04.24.20.21.17.530561@deadspam.com>, Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> wrote: > no.top.post@gmail.com wrote: > > You can't `umount <USBstik>` if you can't find which VT is still 'busy > > with it' !! > > > > I've normally got 20 VTs open, over the 4 Desktops. > > I suppose you don't mean one of those 6 virtual text terminals that you > get on tty1 to tty6 on a default Slackware installation? Instead I suppose > you mean those pseudo terminals you get from a terminal window like xterm > or konsole? > ! Yes, when I mention 'Desktops' it means I'm in X. > > > Previously I used KDE3, and I made a utility using `lsof` & `pstree -p` > > to list a table of eg: > > You might find the command fuser more useful, example: > > fuser -m /media/disk > > Once you have found the processes you might choose to try to find their > windows or maybe simply just kill them. If you window manager gives you > multiple desktops those desktops can be used to keep track of things. If > you use each desktop for its own purpose it will be rather easy to find > the window you are looking for. If you more or less random scatter your > windows over different desktops it will allways be hard to find the window > you are looking for. > Real life is that many items belong to multiple categories. Theoretrically Marxism also is a good system too, but in practice... I've got a script, so that when I open a new `mc` in a VT, I just keyin `x 3,5` and it appends: `pwd`"= 3,5" to the table of <what each open VT has as its pwd>. But the discipline/restiction of its use is stifling. This question is just part of my general question: how to see which Desktop,VT has 'got' dirD. Entropy: 2nd law of thermodymanics can't be beaten. > Think of the desktops like drawers in a desk. If you allways use the same > drawer for each of your possessions it will be easy to find what you are > looking for. If you or someone else puts your possessions more or less > randomly in your drawers it will be hard to find what you are looking for. > ! That's obvious. THink of a cencert pianist, who has to fill-in forms in > triplicate before he hits the next note. Alternatively I could delgate the > tasks to a tem of slaves. > > I have 9 virtual desktops in KDE myself. One is for sysadmin, one is for > surf and mail, one is for development in a project and one is for > development in another project, one is for documentation... You get the > idea! > Yes that just confirms that YOU have acknowledged the problem. I made a utility for my Mandrake: KDE3 work-horse that uses the pid found in `lsof | grep <theDir> with the <position in the diagram> of the same pid in `pstree -p`. But now I want to use Slk13: xfce, and the pstree-p seems to be structure 'chronologically' and unrelated to Desktops. But some file MUST know which D,VT path:P of open `mc`. Thanks for feedback. > regards Henrik == Chris Glur
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Find similar
HOW2 know which Desktop,VT is busy with USBstik no.top.post@gmail.com - 2011-04-24 11:26 +0000
Re: HOW2 know which Desktop,VT is busy with USBstik Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> - 2011-04-24 22:21 +0200
Re (2): HOW2 know which Desktop,VT is busy with USBstik no.top.post@gmail.com - 2011-04-27 13:16 +0000
csiph-web