From owner-freebsd-hackers Wed Nov 22 16:37:47 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from dayspring.firedrake.org (dayspring.firedrake.org [195.82.105.251]) by hub.freebsd.org (Postfix) with ESMTP id 0FF1837B479 for ; Wed, 22 Nov 2000 16:37:45 -0800 (PST) Received: from float by dayspring.firedrake.org with local (Exim 3.12 #1 (Debian)) id 13ykNt-0006R1-00; Thu, 23 Nov 2000 00:37:05 +0000 Date: Thu, 23 Nov 2000 00:37:05 +0000 To: petro Cc: FreeBSD-hackers@freebsd.org Subject: Re: Shell script Message-ID: <20001123003704.A24704@firedrake.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from petro@She.wertep.com on Thu, Nov 23, 2000 at 02:30:54AM +0200 From: void Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Nov 23, 2000 at 02:30:54AM +0200, petro wrote: > I have such script..... > > PATH=/usr/local/bin [...] > if [ $# = 0 ]; then [...] > if [ -f $PID_FILE ]; then [...] > if [ $? = 0 ]; then [...] > echo error: $PID_FILE not found | tee -a $LOG_FILE > I receive three errors.... > I can't understand whereis the errors..... > [: not found > [: not found > tee: not found $ which [ /bin/[ $ which tee /usr/bin/tee Fix your PATH and all will be well. And next time, post your question to questions@freebsd.org. -- Ben 220 go.ahead.make.my.day ESMTP Postfix To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message