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:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; q=dns; s=default; b=itgMvtQZaJQpy4D83RATA9S1TJ1l ceQo0NiphSruVkvdWyV1tDx0e/TXl97T9PooPhaOhCkV7TxpG06xqBaWvVYAzVWX XZgCe5ofIos1qNwTP1GrbPbojfVZdB+71i2R18Vkj2uhFIt9H66kxV5jOsQLclk2 w0rq2FCxH5JFx0k= 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:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; s=default; bh=e/sd82kk1A/6UqKoK6/ZCpY2cXg=; b=Xv uflU2H+sjTf/iZQgwyz8fMTM+GrPNESbR/x2bQgWNyCjTaLfqpRX9PovsCXQPwzl jo3FJE6A1d7ifd9xmh8Nj7qhoxYeOfWUpjZpMClsDxpvL3qh1tQ9dX7tvbccXsuY mIbIxdByCUDGpfdGSNCIqqdkGT6O8cJqjkjvdHje4= 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=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 X-Received: by 10.180.149.200 with SMTP id uc8mr15715059wib.3.1367940131267; Tue, 07 May 2013 08:22:11 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1283) Subject: Re: ps with command line arguments From: AZ 9901 In-Reply-To: <51891237.6010008@etr-usa.com> Date: Tue, 7 May 2013 17:22:08 +0200 Message-Id: <67050D8F-82A3-47CD-A25B-24D8677C803F@gmail.com> References: <51891237 DOT 6010008 AT etr-usa DOT com> To: Cygwin-L Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r47FT7GF018600 Le 7 mai 2013 à 16:39, Warren Young a écrit : > 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. My "exec" workaround should work on FreeBSD :-) (however not tested on this OS yet) : "bash" process name will be replaced in ps output by the name given to exec with -a option, so perfect, that's enough ! > Still, if you *must* do this, you can install the 'procps' package. Its procps.exe command behaves like ps on Linux. The problem with procps.exe it that it relies on /proc/ : a user which do not have admin rights is not allowed to access Cygwin /proc//cmdline, /proc//stat etc... of other users (although on Linux for example it works)... This bahavior leads to an incomplete / unreliable procps output. -- 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