From owner-freebsd-questions Tue Sep 26 1:29:49 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ux-2s02.inf.fh-rhein-sieg.de (ux-2s02.inf.fh-rhein-sieg.de [194.95.66.3]) by hub.freebsd.org (Postfix) with ESMTP id 7629C37B422 for <freebsd-questions@FreeBSD.ORG>; Tue, 26 Sep 2000 01:29:47 -0700 (PDT) Received: from inf.fh-rhein-sieg.de (pc-2n00.inf.fh-rhein-sieg.de [194.95.66.96]) by ux-2s02.inf.fh-rhein-sieg.de (8.9.3+Sun/8.9.1) with ESMTP id KAA25934; Tue, 26 Sep 2000 10:25:04 +0200 (MET DST) Message-ID: <39D05DDC.3A2DB007@inf.fh-rhein-sieg.de> Date: Tue, 26 Sep 2000 10:27:08 +0200 From: Sebastian Lederer <sleder2s@smail.inf.fh-rhein-sieg.de> X-Mailer: Mozilla 4.74 [en] (X11; U; FreeBSD 4.0-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG Cc: George Osvald <mail@okstudio.com.au> Subject: Re: running a linux script on FreeBSD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG That script seems to depend on the ps command returning nonzero when the specified process does not exist. This is a nonstandard feature and won't work in FreeBSD. Try to replace the lines if ps -p $PID1 >/dev/null 2>&1 with something like if kill -0 $PID1 2>/dev/null which will, by the way, work on any Unix system. - Sebastian Lederer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message