From owner-freebsd-questions Tue Jan 8 21:59:20 2002 Delivered-To: freebsd-questions@freebsd.org Received: from obsecurity.dyndns.org (adsl-64-169-107-4.dsl.lsan03.pacbell.net [64.169.107.4]) by hub.freebsd.org (Postfix) with ESMTP id 9B59337B400; Tue, 8 Jan 2002 21:59:16 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id ED01E66D47; Tue, 8 Jan 2002 21:59:15 -0800 (PST) Date: Tue, 8 Jan 2002 21:59:15 -0800 From: Kris Kennaway To: Joe & Fhe Barbish Cc: Greg Lehey , FBSD Questions Subject: Re: Where does command rehash live Message-ID: <20020108215915.B78507@xor.obsecurity.org> References: <20020109140146.G77497@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="QKdGvSO+nmPlgiQ/" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from barbish@a1poweruser.com on Tue, Jan 08, 2002 at 10:40:01PM -0500 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 --QKdGvSO+nmPlgiQ/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=20 > scripts to /root/bin and as part on the script that does=20 > the moving I want it to issue the rehash command to=20 > activate the scripts I just put in /root/bin/.=20 >=20 > How do I get the rehash command to function inside a script?=20 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 --QKdGvSO+nmPlgiQ/ Content-Type: application/pgp-signature Content-Disposition: inline -----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----- --QKdGvSO+nmPlgiQ/-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message