Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Sep 2000 10:27:08 +0200
From:      Sebastian Lederer <sleder2s@smail.inf.fh-rhein-sieg.de>
To:        freebsd-questions@FreeBSD.ORG
Cc:        George Osvald <mail@okstudio.com.au>
Subject:   Re: running a linux script on FreeBSD
Message-ID:  <39D05DDC.3A2DB007@inf.fh-rhein-sieg.de>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39D05DDC.3A2DB007>