From owner-freebsd-questions@FreeBSD.ORG Sat Feb 21 05:02:41 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22DAF16A4CE for ; Sat, 21 Feb 2004 05:02:41 -0800 (PST) Received: from rdsnet.ro (unknown [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E06D43D39 for ; Sat, 21 Feb 2004 05:02:40 -0800 (PST) (envelope-from itetcu@apropo.ro) Received: (qmail 28779 invoked from network); 21 Feb 2004 13:02:36 -0000 Received: from unknown (HELO it.buh.cameradicommercio.ro) (81.196.25.19) by mail.rdsnet.ro with SMTP; 21 Feb 2004 13:02:36 -0000 Received: from it.buh.cameradicommercio.ro (localhost.buh.cameradicommercio.ro [127.0.0.1]) by it.buh.cameradicommercio.ro (Postfix) with SMTP id AA86DA8; Sat, 21 Feb 2004 15:04:22 +0200 (EET) Date: Sat, 21 Feb 2004 15:04:22 +0200 From: Ion-Mihai Tetcu To: "Marwan Sultan" Message-Id: <20040221150422.1394aa2a@it.buh.cameradicommercio.ro> In-Reply-To: <20040221124211.M5871@kifco.net> References: <20040221124211.M5871@kifco.net> X-Mailer: Sylpheed version 0.9.9claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: nkinkade@ub.edu.bz cc: MLandman@face2interface.com cc: FreeBSD questions List Subject: Re: cron or ipfw problem! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Feb 2004 13:02:41 -0000 On Sat, 21 Feb 2004 15:51:16 +0300 "Marwan Sultan" 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