Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Sep 2006 19:01:01 +0200
From:      Reinhard Weismann <reinhard.weismann@callooh.com>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: what means: sockstat: sysctl(): No such process
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 8 Sep 2006 09:18:32 -0500
Dan Nelson <dnelson@allantgroup.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060908190101.82a49418.reinhard.weismann>