Date: Tue, 8 Jan 2002 22:40:01 -0500 From: "Joe & Fhe Barbish" <barbish@a1poweruser.com> To: "Greg Lehey" <grog@FreeBSD.org> Cc: "FBSD Questions" <questions@FreeBSD.ORG> Subject: RE: Where does command rehash live Message-ID: <LPBBIGIAAKKEOEJOLEGOAENCCLAA.barbish@a1poweruser.com> In-Reply-To: <20020109140146.G77497@wantadilla.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?LPBBIGIAAKKEOEJOLEGOAENCCLAA.barbish>