Date: Tue, 8 Jan 2002 21:59:15 -0800 From: Kris Kennaway <kris@obsecurity.org> To: Joe & Fhe Barbish <barbish@a1poweruser.com> Cc: Greg Lehey <grog@FreeBSD.org>, FBSD Questions <questions@FreeBSD.ORG> Subject: Re: Where does command rehash live Message-ID: <20020108215915.B78507@xor.obsecurity.org> In-Reply-To: <LPBBIGIAAKKEOEJOLEGOAENCCLAA.barbish@a1poweruser.com>; from barbish@a1poweruser.com on Tue, Jan 08, 2002 at 10:40:01PM -0500 References: <20020109140146.G77497@wantadilla.lemis.com> <LPBBIGIAAKKEOEJOLEGOAENCCLAA.barbish@a1poweruser.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Tue, Jan 08, 2002 at 10:40:01PM -0500, Joe & Fhe Barbish wrote: > 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? If I understand your meaning, then this won't work, because the rehash command only works within the current (csh) shell process. It doesn't cause the newly-moved files to be immediately visible system-wide to all csh shells (you can't do that). Kris [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8O9wzWry0BWjoQKURAjDxAKDjQ1IGw9drsDInB0V4lfh7W59m+wCaApcp EHVsGG3s8bSJOLWcdBg747I= =8+/y -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020108215915.B78507>
