X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE7A13858425 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1711125754; bh=mcWE+oPYsTqr4xaD/aliC/CDDTH9gcwPPmV7iQ+oFwM=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=jz2CSbN2yx1nr6gYR41RyhtWNyxTjS8N48xAMNiQWblL6bonQLvh38Y3JvZyY3G1M 9mGtU+Im6nV/Qyh1LmlaaX6FlNMhPStpkdH4XrHZ6mpTaCyH/MDbnDQzhOtsJgM9zE KUggjeniqNoWPd9+VwzGmMTr0hxEyZzlOlUyT7EQ= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 52F403858D28 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 52F403858D28 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711125697; cv=none; b=YR5Fr/I7a6ZBth4dX6mqNB821OFQ28/bcAzXxcCPbHV1eNlhtlqr/ubYWcrVxbNPbX5FZaN01Gd2DSGNwdyisrbKCgCWY1WGLdbpzDDw5XZFtevLKc+OBzhDqJpUxdG7uLiNrPCE5i8FbPW6Sx0K0Uh63+ZlCimGjsB2AyBJ4B8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711125697; c=relaxed/simple; bh=FzZylnmFrXD+Xejozj9MD5VXCHvjyXdmy2qmxSbvEXo=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=g+RAG27IFKu0/QLu3wnmnAqP6R/lCy2UD4gMUnBs+79I9vxH1P9Iiuw0kYNhzLjm+jqeBiPmOVS/TOYHyhl5b4Ko6SJAg9TSFHzHR2uy929w0nIFqrqEVrh5guVGAM66gWuisQiS8IoARqDiYBha0NXCxygRkCL8oOkhmtC/nkM= ARC-Authentication-Results: i=1; server2.sourceware.org X-ASG-Debug-ID: 1711125686-24039d19954374b0001-w5GHUG X-Barracuda-Envelope-From: moss AT cs DOT umass DOT edu X-Barracuda-RBL-Trusted-Forwarder: 128.119.240.136 X-Barracuda-RBL-Trusted-Forwarder: 172.27.238.116 Message-ID: <4ab58853-747a-f86b-6174-820826c5c76c@cs.umass.edu> Date: Fri, 22 Mar 2024 12:41:26 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: Help with use of pgrep or pkill commands with full name options Content-Language: en-US X-ASG-Orig-Subj: Re: Help with use of pgrep or pkill commands with full name options To: J M , cygwin AT cygwin DOT com References: In-Reply-To: X-Barracuda-Connect: mailsrv.cs.umass.edu[128.119.240.136] X-Barracuda-Start-Time: 1711125686 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://barramail.cs.umass.edu:443/cgi-mod/mark.cgi X-Barracuda-BRTS-Status: 1 X-Virus-Scanned: by bsmtpd at cs.umass.edu X-Barracuda-Scan-Msg-Size: 610 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.7 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.122478 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, JMQ_SPF_NEUTRAL, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Eliot Moss via Cygwin Reply-To: Eliot Moss Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "Cygwin" 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 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple