public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Rich Freeman <rich0@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] HOWTO: Freezing/unfreezing (groups of) processes
Date: Fri, 5 Feb 2021 09:39:59 -0500	[thread overview]
Message-ID: <CAGfcS_=L6k6N4qLqLzSCEqxSVo5swAuFOrdPYvKXQj-xXoSxug@mail.gmail.com> (raw)
In-Reply-To: <YB2Xe1kGCwDwWeY4@waltdnes.org>

On Fri, Feb 5, 2021 at 2:07 PM Walter Dnes <waltdnes@waltdnes.org> wrote:
>
> On Fri, Feb 05, 2021 at 06:55:12AM -0500, Rich Freeman wrote
> > On Fri, Feb 5, 2021 at 2:45 AM Walter Dnes <waltdnes@waltdnes.org> wrote:
> > >
> > >   So far, so good, but running "ps -ef | grep whatever" and then
> > > typing the kill -SIGSTOP/SIGCONT command on the correct pid is grunt
> > > work, subject to typos.
> >
> > man killall
>
>   My reading of the "killall" man page is that it works on command
> names.  For my script, "pstop palemoon" stops all instances of Pale
> Moon.  But my script greps the entire line, so "pstop slashdot" will
> stop the process...

Yeah, that is fair enough.  If you want to use other elements of the
command line/etc then you'd need to do something more along the lines
of your script.  Just wanted to make people aware.

-- 
Rich


  reply	other threads:[~2021-02-05 14:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-05  7:45 [gentoo-user] HOWTO: Freezing/unfreezing (groups of) processes Walter Dnes
2021-02-05  8:46 ` Andrew Udvare
2021-02-05 19:00   ` Walter Dnes
2021-02-05 18:24     ` Walter Dnes
2021-02-05 22:42       ` Matt Connell (Gmail)
2021-02-06  7:54         ` Walter Dnes
2021-02-05 11:55 ` Rich Freeman
2021-02-05 19:07   ` Walter Dnes
2021-02-05 14:39     ` Rich Freeman [this message]
2021-02-05 16:23     ` Neil Bothwick
2021-02-06  1:08     ` David Haller
2021-02-06  4:46     ` Paul Colquhoun
2021-02-05 12:12 ` Ramon Fischer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGfcS_=L6k6N4qLqLzSCEqxSVo5swAuFOrdPYvKXQj-xXoSxug@mail.gmail.com' \
    --to=rich0@gentoo.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox