From owner-freebsd-questions@FreeBSD.ORG Sat Jul 7 21:24:23 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 352D416A41F for ; Sat, 7 Jul 2007 21:24:23 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout5.cac.washington.edu (mxout5.cac.washington.edu [140.142.32.135]) by mx1.freebsd.org (Postfix) with ESMTP id 12DDE13C4BC for ; Sat, 7 Jul 2007 21:24:23 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout5.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.06) with ESMTP id l67LOKrq010949 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 7 Jul 2007 14:24:20 -0700 X-Auth-Received: from [192.168.10.45] (c-24-10-12-194.hsd1.ca.comcast.net [24.10.12.194]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l67LOJud004079 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 7 Jul 2007 14:24:20 -0700 Message-ID: <46900488.3000505@u.washington.edu> Date: Sat, 07 Jul 2007 14:24:24 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Derek Ragona References: <003b01c7c0b4$e01a3a50$d5b9bfcf@lisac> <6.0.0.22.2.20070707150546.02535328@mail.computinginnovations.com> In-Reply-To: <6.0.0.22.2.20070707150546.02535328@mail.computinginnovations.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.2.304607, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.7.7.140333 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: freebsd-questions@freebsd.org, Lisa Casey 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 21:24:23 -0000 Derek Ragona wrote: > At 11:35 AM 7/7/2007, 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? >> >> Thanks, >> >> Lisa Casey > > Try testing with a new login session. It is likely your shell is > caching the commands in your paths. Use rehash in tcsh to find newly added commands. export or setenv your new PATH though, and try the new command out first. -Garrett