From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 7 13:06:44 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1816610656C1 for ; Wed, 7 Jan 2009 13:06:44 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from acme.spoerlein.net (cl-43.dus-01.de.sixxs.net [IPv6:2a01:198:200:2a::2]) by mx1.freebsd.org (Postfix) with ESMTP id 94FF18FC08 for ; Wed, 7 Jan 2009 13:06:43 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from roadrunner.spoerlein.net (e180153120.adsl.alicedsl.de [85.180.153.120]) by acme.spoerlein.net (8.14.2/8.14.2) with ESMTP id n07D6eaH067312 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 7 Jan 2009 14:06:40 +0100 (CET) (envelope-from uspoerlein@gmail.com) Received: from roadrunner.spoerlein.net (localhost [127.0.0.1]) by roadrunner.spoerlein.net (8.14.3/8.14.3) with ESMTP id n07Cw0KT004474 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 7 Jan 2009 13:58:00 +0100 (CET) (envelope-from uspoerlein@gmail.com) Received: (from uqs@localhost) by roadrunner.spoerlein.net (8.14.3/8.14.3/Submit) id n07CvxUu004473; Wed, 7 Jan 2009 13:57:59 +0100 (CET) (envelope-from uspoerlein@gmail.com) Date: Wed, 7 Jan 2009 13:57:59 +0100 From: Ulrich Spoerlein To: Sheldon Givens Message-ID: <20090107125759.GA1462@roadrunner.spoerlein.net> Mail-Followup-To: Sheldon Givens , freebsd-hackers@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: Small change to 'ps' X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2009 13:06:44 -0000 On Tue, 06.01.2009 at 11:52:39 -0800, Sheldon Givens wrote: > Hello everyone, > > It occurs to me that FreeBSD ps lacks the ability to disable header. This > seems like a really obvious feature, and I may have simply missed it's > existence (despite my relentlessly searching the man page) but here is a > small patch that sets the flag 'n' to disable header output. You've missed it, probably because it is non-obvious: % ps -p 1 -o pid,cpu PID CPU 1 0 % ps -p 1 -o pid= -o cpu= 1 0 % Cheers, Ulrich Spoerlein -- It is better to remain silent and be thought a fool, than to speak, and remove all doubt.