From owner-freebsd-questions@FreeBSD.ORG Sat Jul 7 16:36:17 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 29C9816A468 for ; Sat, 7 Jul 2007 16:36:17 +0000 (UTC) (envelope-from lisa@jellico.com) Received: from mail.jellico.com (mail.jellico.com [207.191.185.6]) by mx1.freebsd.org (Postfix) with ESMTP id DE22313C4BE for ; Sat, 7 Jul 2007 16:36:16 +0000 (UTC) (envelope-from lisa@jellico.com) Received: from lisac (lisa.jellico.com [207.191.185.213]) (authenticated bits=0) by mail.jellico.com (8.12.6/8.12.6) with ESMTP id l67GZaBX027446 for ; Sat, 7 Jul 2007 12:35:36 -0400 Message-ID: <003b01c7c0b4$e01a3a50$d5b9bfcf@lisac> From: "Lisa Casey" To: Date: Sat, 7 Jul 2007 12:35:48 -0400 Organization: Netlink 2000, Inc. MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Scanned-By: MIMEDefang 2.48 on 127.0.0.1 Subject: 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:36:17 -0000 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