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
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020108215915.B78507>