From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AD10E1382C5 for ; Fri, 5 Feb 2021 14:40:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F2F92E091B; Fri, 5 Feb 2021 14:40:15 +0000 (UTC) Received: from mail-oo1-f53.google.com (mail-oo1-f53.google.com [209.85.161.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B0035E08EB for ; Fri, 5 Feb 2021 14:40:15 +0000 (UTC) Received: by mail-oo1-f53.google.com with SMTP id g46so1656632ooi.9 for ; Fri, 05 Feb 2021 06:40:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=8ns3JCikfdWMnVvJ8SzHlGLMqnLCXtHdK6LaynraIiw=; b=TAHMMvOoaEKmSmSlUseHsZlmDeDGn7VC15lcrqIr2eIpoNeehX2yPqx6dNuHW9XkoG IJ18aZz02LbMU3d9IJ7WHNHD47lwN+J8/n4OjabqAmDQX3X+FgOv8ReXAMbEO1o7wdmQ 9IjxLJC3ZzFFu3P3InzoAeFNl9NkkwlpcYVPhSqWW08nKtuYspyCU3SfDdWrESD2a4X9 lKs9Vx75a2nogrYP+asR8UePJN+uK6di2hUI32DofuwYuEQYOniAvghRDRaxbbpdY1Y2 J+MFdox+tu2D2tLMWF1gCtJvihSv6mVqMPr2rPGMxY5JGN7/4sP/CM1u8eeKx6vkYXIe 7dcQ== X-Gm-Message-State: AOAM530ErpQEKOee4a2vMk6qh56lDKw8HpwSi/Dtz9iid1oqLAMbmm/v hkAN6FyCC0XmuHjGnvh+gNhbf6OWyH4aSrQQg8N3pOw4 X-Google-Smtp-Source: ABdhPJzmpuzMNdmEzwuHsbTwOuFZ/Oq+7uepv4g1BHtCCWrSmzF6EFiP3XAlaNZ7JajI1KzjeAIyHWty7rZTSwEclC8= X-Received: by 2002:a4a:ea88:: with SMTP id r8mr3622501ooh.4.1612536014513; Fri, 05 Feb 2021 06:40:14 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: In-Reply-To: From: Rich Freeman Date: Fri, 5 Feb 2021 09:39:59 -0500 Message-ID: Subject: Re: [gentoo-user] HOWTO: Freezing/unfreezing (groups of) processes To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: 617e5699-2af3-4df3-b9f0-a8f4c61a99f0 X-Archives-Hash: 8d0fe93cd243b60ed65712d474067110 On Fri, Feb 5, 2021 at 2:07 PM Walter Dnes 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 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