From owner-freebsd-questions@FreeBSD.ORG Tue Dec 4 20:51:55 2012 Return-Path: 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 17204A4D for ; Tue, 4 Dec 2012 20:51:55 +0000 (UTC) (envelope-from martin@dc.cis.okstate.edu) Received: from x.it.okstate.edu (x.it.okstate.edu [139.78.2.13]) by mx1.freebsd.org (Postfix) with ESMTP id BFE088FC0C for ; Tue, 4 Dec 2012 20:51:54 +0000 (UTC) Received: from dc.cis.okstate.edu (localhost [127.0.0.1]) by x.it.okstate.edu (8.14.5/8.14.5) with ESMTP id qB4KpruD086384 for ; Tue, 4 Dec 2012 14:51:54 -0600 (CST) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <201212042051.qB4KpruD086384@x.it.okstate.edu> To: freebsd-questions@freebsd.org Subject: Re: Safe Way to Tell if Process is Running Date: Tue, 04 Dec 2012 14:51:53 -0600 From: Martin McCormick X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Dec 2012 20:51:55 -0000 Robert Bonomi writes: > 'man 2 kill' tells all. I believe that is the first or second time I have used Section 2. I appreciate the reminder. It looks like ps -p ### >/dev/null appears to do what I need without producing output ps -p 54321 >/dev/null && date ran the date command if there was a process with that number and produced nothing if no process 54321 existed. Martin