X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=devzsfEsKA9tW3jmOzWVDP6LuXZSYMX3U9+TkQDOEm1 MicfkhV04HGiPGBosjIZoml/TvFFeV6J+YWpPbJFGmtotI5ItmuADkEN8Ujq6Knh jFZ8vaStCRV4rrN0mDwHMnOMJMfHpCAW/FdbCk2lRLMGfRa8XrFnpvKr/R6/ApcY = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=Q2H+k4W8SWx2td4Gimryc8UX3Fs=; b=BC060sAKUjeFlE33e X2C7B3UydkwepG7LUaWkrFkza3X8BlQYOWzAKDLDS4pHY29hnT6chVR1QzU8AczS xtSfwmuDVm/v4cS4P4+EhFCPn9+xjPEll2vlRnIYMwopJMSh8jDoRhnswDTZokM/ 1//dUDC5SYdzqZgabBtWHWF4NM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD autolearn=ham version=3.3.1 Message-ID: <51891237.6010008@etr-usa.com> Date: Tue, 07 May 2013 08:39:51 -0600 From: Warren Young User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: Cygwin-L Subject: Re: ps with command line arguments References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 5/7/2013 02:46, AZ 9901 wrote: > > This script uses "ps -ef" in particular to list all its instances. Any script that relies on 'ps' output parsing is probably unportable from the get-go. Your script will also fail on most FreeBSD machines, for example. On FreeBSD, there is a kernel build option that is often set which prevents user space from *ever* seeing command line options. It's a security feature, since there are all kinds of things you can learn about other users if you are allowed to see the parameters they pass to their commands. That aside, you'll also find that different implementations of ps use different column orders, etc. Still, if you *must* do this, you can install the 'procps' package. Its procps.exe command behaves like ps on Linux. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple