From owner-freebsd-questions@FreeBSD.ORG Mon Oct 18 18:27:23 2004 Return-Path: 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 95FA416A4CE for ; Mon, 18 Oct 2004 18:27:23 +0000 (GMT) Received: from dnsmail1.ior.navy.mil (nocc.ior.navy.mil [205.56.210.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A46643D49 for ; Mon, 18 Oct 2004 18:27:17 +0000 (GMT) (envelope-from JohnsoBS@vicksburg.navy.mil) Received: from cg69ubd01.vicksburg.navy.mil ([205.95.65.21]) i9IIQa7k001981; Mon, 18 Oct 2004 18:26:42 GMT Received: by CG69UBD01 with Internet Mail Service (5.5.2657.72) id <4QZ7VAJG>; Mon, 18 Oct 2004 21:30:02 +0300 Message-ID: From: JohnsoBS@vicksburg.navy.mil To: jxkoepk@gmail.com, freebsd-questions@freebsd.org Date: Mon, 18 Oct 2004 21:30:01 +0300 X-Mailer: Internet Mail Service (5.5.2657.72) Subject: RE: Python Issue X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2004 18:27:23 -0000 > -----Original Message----- > From: John Koepke [mailto:jxkoepk@gmail.com] > Sent: Monday, October 18, 2004 8:18 PM > To: freebsd-questions@freebsd.org > Subject: Python Issue > > > Hey all, > I have asked this before but this time I am subscribed to the > list. I current have a PHP script that runs various Python scripts. > It checks to see if they are running, by doing a ps -ax -w -w | grep > and the script name. But for some reason Python shows just (python) > if you do a ps. It doesn't show that anything is running but > (python). I can only assume that this is some sort of patch or > setting when python was installed. > Other than just downloading the python source and re-building my > box, is there a way to fix this issue? > > Python 2.3.4_2 (installed via the PortsTree) > PhP 4 (Installed Via the Ports Tree) > > Any help would be GREATLY appreciated. > > John If it was me, I would have the scripts themselves creater a pid file, and query the pid file for the pid it last used and see if that pid is active and being used by python.