From owner-freebsd-questions@FreeBSD.ORG Fri Sep 8 14:18:34 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C95A416A4DD for ; Fri, 8 Sep 2006 14:18:34 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CCA643D45 for ; Fri, 8 Sep 2006 14:18:34 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.6) id k88EIXFn061909; Fri, 8 Sep 2006 09:18:33 -0500 (CDT) (envelope-from dan) Date: Fri, 8 Sep 2006 09:18:32 -0500 From: Dan Nelson To: tequnix@frogmi.net Message-ID: <20060908141832.GA30620@dan.emsphone.com> References: <20060907162940.7aa65884@jadzia.intern.creative.co.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060907162940.7aa65884@jadzia.intern.creative.co.at> X-OS: FreeBSD 6.1-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-questions@freebsd.org Subject: Re: what means: sockstat: sysctl(): No such process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Sep 2006 14:18:34 -0000 In the last episode (Sep 07), tequnix@frogmi.net said: > hallo list > > while running > > [ $(sockstat | grep -c saslauthd) -gt 90 ] && /usr/local/etc/rc.d/saslauthd restart > > via cron (/etc/crontab, as root) (why i do this is of no importance > for this question), i get from time to time - about 3-4 times a day, > cronjob runs every 11 minutes - the message: > > sockstat: sysctl(): No such process > > i do not understand why i get this only sometimes, and what this > exactly means. Sockstat first gets a list of all open sockets, then looks up the command name for each one. If the process has exited before the name is looked up, you get the warning, and sockstat prints "??" as the process name. You can quiet it by redirecting stderr to /dev/null: sockstat 2>/dev/null -- Dan Nelson dnelson@allantgroup.com