From owner-freebsd-questions@FreeBSD.ORG Tue Dec 4 20:50:40 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 7A80C9A7 for ; Tue, 4 Dec 2012 20:50:40 +0000 (UTC) (envelope-from martin@x.it.okstate.edu) Received: from x.it.okstate.edu (x.it.okstate.edu [139.78.2.13]) by mx1.freebsd.org (Postfix) with ESMTP id B2E4D8FC08 for ; Tue, 4 Dec 2012 20:50:39 +0000 (UTC) Received: from x.it.okstate.edu (localhost [127.0.0.1]) by x.it.okstate.edu (8.14.5/8.14.5) with ESMTP id qB4Koc70086364 for ; Tue, 4 Dec 2012 14:50:38 -0600 (CST) (envelope-from martin@x.it.okstate.edu) Message-Id: <201212042050.qB4Koc70086364@x.it.okstate.edu> cc: freebsd-questions@freebsd.org Subject: Re: Safe Way to Tell if Process is Running Date: Tue, 04 Dec 2012 14:50:38 -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:50:40 -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