From owner-freebsd-questions Tue Jan 8 19:40: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.mango-bay.com (mail.mango-bay.com [208.206.15.12]) by hub.freebsd.org (Postfix) with ESMTP id 06C3C37B417; Tue, 8 Jan 2002 19:40:03 -0800 (PST) Received: from barbish ([63.70.155.113]) by mail.mango-bay.com (Post.Office MTA v3.5.3 release 223 ID# 0-52377U2500L250S0V35) with SMTP id com; Tue, 8 Jan 2002 22:42:45 -0500 From: "Joe & Fhe Barbish" To: "Greg Lehey" Cc: "FBSD Questions" Subject: RE: Where does command rehash live Date: Tue, 8 Jan 2002 22:40:01 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <20020109140146.G77497@wantadilla.lemis.com> Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have a script that moves a group of disaster recovery scripts to /root/bin and as part on the script that does the moving I want it to issue the rehash command to activate the scripts I just put in /root/bin/. How do I get the rehash command to function inside a script? -----Original Message----- From: Greg Lehey [mailto:grog@FreeBSD.org] Sent: Tuesday, January 08, 2002 10:32 PM To: Joe & Fhe Barbish Cc: FBSD Questions Subject: Re: Where does command rehash live On Tuesday, 8 January 2002 at 22:19:07 -0500, Joe & Fhe Barbish wrote: > When I issue the rehash from within a script it get > not found. > If I give it's full path I think it will work. > > Problem is I don't know how to find the directory where rehash lives. rehash is a kludge to make the shell forget paths it "knew". It shouldn't be necessary in scripts. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message