From owner-freebsd-questions@FreeBSD.ORG Fri Sep 8 17:01:09 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 4AF6E16A4DF for ; Fri, 8 Sep 2006 17:01:09 +0000 (UTC) (envelope-from reinhard.weismann@callooh.com) Received: from mail.callooh.com (chello062178170039.13.14.vie.surfer.at [62.178.170.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE8E543D5A for ; Fri, 8 Sep 2006 17:01:06 +0000 (GMT) (envelope-from reinhard.weismann@callooh.com) Received: from zev.home.callooh.com (zev.home.callooh.com [192.168.1.2]) by mail.callooh.com (8.13.8/8.13.8) with ESMTP id k88H11aP082788 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 8 Sep 2006 19:01:01 +0200 (CEST) (envelope-from reinhard.weismann@callooh.com) Received: from zev.home.callooh.com (localhost [127.0.0.1]) by zev.home.callooh.com (8.13.6/8.13.6) with SMTP id k88H11bn007138; Fri, 8 Sep 2006 19:01:01 +0200 (CEST) (envelope-from reinhard.weismann@callooh.com) Date: Fri, 8 Sep 2006 19:01:01 +0200 From: Reinhard Weismann To: Dan Nelson Message-Id: <20060908190101.82a49418.reinhard.weismann@callooh.com> In-Reply-To: <20060908141832.GA30620@dan.emsphone.com> References: <20060907162940.7aa65884@jadzia.intern.creative.co.at> <20060908141832.GA30620@dan.emsphone.com> X-Mailer: Sylpheed version 2.2.7 (GTK+ 2.8.20; amd64-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV 0.88.4/1826/Fri Sep 8 13:38:39 2006 on lyekka.home.callooh.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (mail.callooh.com [192.168.1.1]); Fri, 08 Sep 2006 19:01:01 +0200 (CEST) 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 17:01:09 -0000 On Fri, 8 Sep 2006 09:18:32 -0500 Dan Nelson wrote: > In the last episode (Sep 07), tequnix@frogmi.net said: > > hallo list > >=20 > > while running=20 > >=20 > > [ $(sockstat | grep -c saslauthd) -gt 90 ] && /usr/local/etc/rc.d/sasla= uthd restart > >=20 > > 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: > >=20 > > sockstat: sysctl(): No such process > >=20 > > i do not understand why i get this only sometimes, and what this > > exactly means.=20 >=20 > 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 thank you for explanation. i will quieten it by redirecting stderr as you suggested. =A8reinhard --=20 Algol-60 surely must be regarded as the most important programming language yet developed. -- T. Cheatham