How to get a specific PID #
Karl Auer
kauer at biplane.com.au
Thu Dec 31 23:34:09 UTC 2015
On Thu, 2015-12-31 at 14:58 -0800, Keith wrote:
> >> Yes this works at the window level. All instances of kate that are
> >> running will be killed when you use xkill so save your work in other
> >> windows first.
I'm not sure about that - have you tried it?
> > Thanks for the reply! Just to make sure I understand: Lets say I have
> > 3 kate windows open, each one with 4 tabs. This would give me 12 PIDs,
> > in 3 groups of 4 in htop in tree mode. Now if I use xkill on ONE
> > window, does this stop the 4 PIDs in that window or all 12 PIDs for
> > all the kates?
> It will kill all kate programs that are open on your desktop.
Again, I'm not sure about that. An ounce of experimentation here would
save a pound of guessing - just open up a few instances, windows
whatever and try it!
Here's some more guessing :-)
Another option would be to use the -n option in Kate and put every
document in a new instance. The kate man page is a bit contradictory on
the point, but it seems that default in kate is to add tabs and windows
to a running instance if one exists. That means that using xkill on any
kate window kills them all, because xkill kills at the instance level -
i.e., will kill the process that created the window you select. Since
kate by default uses the same instance to create new tabs and windows,
killing one kate tab or window will kill every kate tab and window. But
if you tell kate to set up a new instance for each document you open,
you should have the fine-grained control you seek.
Of course, if using tabs is something you cannot do without, you are
stuck.
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389
GPG fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4
Old fingerprint: EC67 61E2 C2F6 EB55 884B E129 072B 0AF0 72AA 9882
More information about the ubuntu-users
mailing list