Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Nov 2000 00:37:05 +0000
From:      void <float@firedrake.org>
To:        petro <petro@She.wertep.com>
Cc:        FreeBSD-hackers@freebsd.org
Subject:   Re: Shell script
Message-ID:  <20001123003704.A24704@firedrake.org>
In-Reply-To: <Pine.BSF.4.21.0011230228470.59745-100000@She.wertep.com>; from petro@She.wertep.com on Thu, Nov 23, 2000 at 02:30:54AM %2B0200
References:  <Pine.BSF.4.21.0011230228470.59745-100000@She.wertep.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001123003704.A24704>