From owner-freebsd-questions@FreeBSD.ORG Tue Nov 28 05:35:32 2006 Return-Path: X-Original-To: freebsd-questions@FreeBSD.org Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6854B16A492 for ; Tue, 28 Nov 2006 05:35:32 +0000 (UTC) (envelope-from bri@sonicboom.org) Received: from entwistle.sonicboom.org (entwistle.sonicboom.org [66.93.34.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7113A445B9 for ; Tue, 28 Nov 2006 04:44:41 +0000 (GMT) (envelope-from bri@sonicboom.org) Received: from [127.0.0.1] (entwistle.sonicboom.org [66.93.34.170]) by entwistle.sonicboom.org (8.13.8/8.13.8) with ESMTP id kAS0POu0047626; Mon, 27 Nov 2006 16:25:26 -0800 (PST) (envelope-from bri@sonicboom.org) Message-ID: <456B81F4.20609@sonicboom.org> Date: Mon, 27 Nov 2006 16:25:24 -0800 From: Brian User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: jhall@vandaliamo.net References: <2365.65.117.48.155.1164660366.squirrel@admintool.trueband.net> In-Reply-To: <2365.65.117.48.155.1164660366.squirrel@admintool.trueband.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@FreeBSD.org Subject: Re: Checking processes without PIDs 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: Tue, 28 Nov 2006 05:35:32 -0000 jhall@vandaliamo.net wrote: > I have written a script to determine if processes are running. I am > using, as an example, > > ps -ax | grep -c postgrey > > Ocassionally, I am receiving a notification a process is not running (and > it varies which process I receive notifications for). And, when checking, > the process actually is running. > > Is there a better way to determine if a process is running than using ps > and grep? > > Thanks, > > > > Jay > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Does ps auxwww work ? Brian