*BSD News Article 5397


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel!munnari.oz.au!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!jaenicke
From: jaenicke@emserver.ee.tu-berlin.de (Lutz Jaenicke)
Subject: Re: binaries are unavailable when moved to /usr/bin until re-logon
Message-ID: <D496JN@mailgzrz.tu-berlin.de>
Sender: news@mailgzrz.tu-berlin.de (News Manager)
Nntp-Posting-Host: emws1.ee.tu-berlin.de
Organization: TU-Berlin, Institut fuer Elektrische Maschinen
References: <1992Sep21.175158.25399@Saigon.COM>
Date: Tue, 22 Sep 1992 11:00:35 GMT
Lines: 25

In article <1992Sep21.175158.25399@Saigon.COM> David.Fox@Saigon.COM writes:
>After doing a few rounds of getting source-code to something, compiling it,
>building the binary of it, and then moving it into its proper place (usr/
>bin, or /usr/local/bin) I've noticed that when I attempt to run the command
>once it has been moved - even though it certainly is in the path - that 
>the system responds with "Command not found."  However, when I relogon, the
>file now is accessible.
>
>Coming from a DOS world, I'm used to having the commands available immediately
>after they've been moved, assuming of course, the directory they are moved to
>is in the path.
>
>This doesn't seem to be the case with 386BSD.  Question: is this expected
>behavior?

Try rehash, since for performance reasons the path is only scanned once
one the path is set and you have to rehash the list (or re-set the path)
after moving executables.

	Lutz
-- 
Lutz Jaenicke 				jaenicke@emserver.ee.tu-berlin.de 
Institut fuer Elektrische Maschinen	jaenicke@emapollo.ee.tu-berlin.de
Technische Universitaet Berlin		Tel. (004930)314-24552
Einsteinufer 11, D-1000 Berlin 10 	Fax. (004930)314-21133