public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Eliot Moss <moss@cs.umass.edu>
To: J M <cesarjorgemartinez@gmail.com>, cygwin@cygwin.com
Subject: Re: Help with use of pgrep or pkill commands with full name options
Date: Fri, 22 Mar 2024 12:41:26 -0400	[thread overview]
Message-ID: <4ab58853-747a-f86b-6174-820826c5c76c@cs.umass.edu> (raw)
In-Reply-To: <CAL8MddXSDRFq4kdHRZdzsURr7eG7rS9A=XrcjxM=znALgN06_Q@mail.gmail.com>

On 3/22/2024 11:56 AM, J M via Cygwin wrote:
> Help with use of pgrep or pkill commands with full name options.
> 
> I trying to use pgrep or pkill utility commands to find processes but using
> the full path names, by example, find /usr/bin/bash (package procps-ng):
> 
> Then, if I use pgrep -f /usr/bin/bash, don't find nothing.
> 
> Using pkill -f /usr/bin/bash don't get the task.
> 
> If I use pidof /usr/bin/bash, this works.
> 
> How do I get it to do use pgrep, pkill, etc?

Seems to use the name without the full path, e.g.,
bash as opposed to /bin/bash, etc.  Not sure why ...

EM

  parent reply	other threads:[~2024-03-22 16:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-22 15:56 J M
2024-03-22 16:22 ` Brian Inglis
2024-03-22 16:41 ` Eliot Moss [this message]
2024-03-23 13:05 ` Henry S. Thompson

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=4ab58853-747a-f86b-6174-820826c5c76c@cs.umass.edu \
    --to=moss@cs.umass.edu \
    --cc=cesarjorgemartinez@gmail.com \
    --cc=cygwin@cygwin.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).