Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Feb 2004 15:04:22 +0200
From:      Ion-Mihai Tetcu <itetcu@apropo.ro>
To:        "Marwan Sultan" <Admin@kifco.net>
Cc:        FreeBSD questions List <freebsd-questions@freebsd.org>
Subject:   Re: cron or ipfw problem!
Message-ID:  <20040221150422.1394aa2a@it.buh.cameradicommercio.ro>
In-Reply-To: <20040221124211.M5871@kifco.net>
References:  <20040221124211.M5871@kifco.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 21 Feb 2004 15:51:16 +0300
"Marwan Sultan" <Admin@kifco.net> wrote:

> Hello everyone,
> 
>  Thank you for the answers,
>  True, I didnot use the full path for ipfw in my script.
>  when I added to the script /sbin/ipfw RULE_HERE  everything works
>  great. I thought it will regonize the command ipfw by it self. well
>  it didnot :)
> 
>  Thank you again marty, nathan, Ion and all this list helpful users.

Always use full paths in scripts. If you need to make it more portable
define a variable on the beginning, e.g. MY_SCRIPT_BASE='/some/where/'.

You will be amazed how many local attacks or pilot errors could
happened because of relaying on PATH.


-- 
IOnut
Unregistered ;) FreeBSD user



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