delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/29/02:55:24

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <cb51e2e0507282354454a45e6@mail.gmail.com>
Date: Thu, 28 Jul 2005 23:54:37 -0700
From: Joshua Daniel Franklin <joshuadfranklin AT gmail DOT com>
Reply-To: Joshua Daniel Franklin <joshuadfranklin AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: ps -p <pid>
In-Reply-To: <20050728005142.97092.qmail@web31405.mail.mud.yahoo.com>
Mime-Version: 1.0
References: <20050728005142 DOT 97092 DOT qmail AT web31405 DOT mail DOT mud DOT yahoo DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j6T6t1MU002112

On 7/27/05, Don Beusee wrote:
> That's not good enough for scripting.  First of all, the command is not so
> simple (you have to grep -v grep also - so that the same script works on
> Unix systems) and if you have small PID number like 14, that will likely
> return lots of other processes (like 114, etc).  Also, the same <PID>
> appears in the PPID column if it has children.  Some Unix variants might not
> have a space in the ps output between the PID and previous or next column
> when one of the column's data is larger than the specified printf format.
> 
> So your command is not reliable enough for scripting and is also very slow
> on large Unix systems with 1000's of processes running.  ps -p <PID> is
> immediate, reliable, and portable (it's SYSV/SVR4 standard).

There's also always http://cygwin.com/contrib.html

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019