From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 17 21:29:03 2012 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 0A28C1065674; Sat, 17 Mar 2012 21:29:03 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay02.stack.nl [IPv6:2001:610:1108:5010::104]) by mx1.freebsd.org (Postfix) with ESMTP id 82EB88FC18; Sat, 17 Mar 2012 21:29:02 +0000 (UTC) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mx1.stack.nl (Postfix) with ESMTP id BC17B359911; Sat, 17 Mar 2012 22:29:01 +0100 (CET) Received: by snail.stack.nl (Postfix, from userid 1677) id A174528470; Sat, 17 Mar 2012 22:29:01 +0100 (CET) Date: Sat, 17 Mar 2012 22:29:01 +0100 From: Jilles Tjoelker To: Mikolaj Golub Message-ID: <20120317212901.GA44534@stack.nl> References: <8662e3m3eq.fsf@kopusha.home.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8662e3m3eq.fsf@kopusha.home.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Kostik Belousov , freebsd-hackers@freebsd.org, Robert Watson Subject: Re: a sysctl for process binary osreldate 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: Sat, 17 Mar 2012 21:29:03 -0000 On Sat, Mar 17, 2012 at 09:30:05PM +0200, Mikolaj Golub wrote: > I added osrel output to procstat -b option: > kopusha:~% procstat -b 2975 > PID COMM OSREL PATH > 2975 emacs 1000001 /usr/local/bin/emacs-23.3 > Would this be ok or someone see a better way? Hmm, this means that procstat is not supposed to be used from scripts as it is apparently OK to change its output format like this? In some ways, querying via ps would be better for scripts since it allows things like ps -p PID -o KEYWORD= which do not need additional parsing except that many of the newer things in procstat do not have ps keywords. -- Jilles Tjoelker