From owner-freebsd-questions@FreeBSD.ORG Sat Jul 7 16:42:16 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1C91D16A421 for ; Sat, 7 Jul 2007 16:42:16 +0000 (UTC) (envelope-from peter@boosten.org) Received: from ra.egypt.nl (cp268254-a.landg1.lb.home.nl [213.51.103.48]) by mx1.freebsd.org (Postfix) with ESMTP id CD82E13C487 for ; Sat, 7 Jul 2007 16:42:15 +0000 (UTC) (envelope-from peter@boosten.org) Received: from ra.egypt.nl (localhost.egypt.nl [127.0.0.1]) by ra.egypt.nl (Postfix) with ESMTP id D51AD39898 for ; Sat, 7 Jul 2007 18:42:14 +0200 (CEST) Received: by ra.egypt.nl (Postfix, from userid 501) id 7147039884; Sat, 7 Jul 2007 18:42:14 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on ra.egypt.nl X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=ALL_TRUSTED, AWL autolearn=ham version=3.2.1 Received: from [127.0.0.1] (xp.egypt.nl [192.168.13.35]) by ra.egypt.nl (Postfix) with ESMTP id A10113987B for ; Sat, 7 Jul 2007 18:42:10 +0200 (CEST) Message-ID: <468FC261.3070902@boosten.org> Date: Sat, 07 Jul 2007 18:42:09 +0200 From: Peter Boosten User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060516 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: FreeBSD Questions References: <003b01c7c0b4$e01a3a50$d5b9bfcf@lisac> In-Reply-To: <003b01c7c0b4$e01a3a50$d5b9bfcf@lisac> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 000754-4, 07/06/2007), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: Adding a new command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jul 2007 16:42:16 -0000 Lisa Casey wrote: > Hi, > > Once I get this new system going I promise I'll quit pestering you folks > :-) > > Got another question. This should be simple to answer. I've done this > before but can't seem to replicate it this morning. I have a few scripts > my employees use to do things such as add a new radius user, restart the > radius server and tail the radius log file. The most simple one is > radlog. The file radlog contains the line: > tail -f /var/log/radius.log > > I need to be able to type radlog from anywhere on the system and have it > work. > > I put the file radlog in /bin (/bin and /sbin are all in my shell's > path). Ownership is root/wheel permissions are 555 (I've tried 700 and > 777 - these don't need write access though). But when I type radlog I > get command not found. I can type ./bin/radlog and it works but I don't > want that. I thought if the file was in my path and if it was executable > just typing the name of the file from anywhere would work but evidently > I'm overlooking something. What? > try typing 'rehash' first (without the quotes). It's more obvious to put local scripts in /usr/local/bin, IMHO. Hope this helps. Peter -- http://www.boosten.org