home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!gatech!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sun4nl!utrcu1!infnews!ahoekstr
- From: ahoekstr@cs.utwente.nl (Andre D. Hoekstra)
- Subject: Re: Help! Can't run a file under tcsh!
- Message-ID: <1992Nov23.132004.6546@cs.utwente.nl>
- Sender: usenet@cs.utwente.nl
- Nntp-Posting-Host: rijn
- Organization: Twente University, Dept. WB/WA (NOT cs)
- References: <lgrn2qINN9s6@priddy.cs.utexas.edu>
- Date: Mon, 23 Nov 1992 13:20:04 GMT
- Lines: 30
-
- In article <lgrn2qINN9s6@priddy.cs.utexas.edu> f254@cs.utexas.edu (Fall Class Account) writes:
- >I am experiencing an inconsistent error trying to run a file (executable
- >or shell script) under tcsh. The files do have the attribute -rwxr-xr-x.
- >Typing
- > ./testing
- >*sometimes* works but *sometimes* comes back with the
- > ./testing: Command not found.
- >message. What's more, even when I encounter this message, I am still able to
- >run some other executable file in the same directory.
- >Could someone tell me what could be the problem?
- >Thank you very much.
-
- The problem occurs with new files, doesn't it? (except those in the current
- dir). If not, forget what I say right away.
-
- If you install new executables in some directory in your PATH (except the
- current dir) (t)csh cannot find them because they are not in the hash-table.
- At start-up and on changing PATH the shell rehashes the table. (I think)
-
- What you need to do is rehash.
-
- (k)sh does not have a hash table of all executables and searches the PATH
- everytime it needs an executable file.
-
- For more info: see man (t)(c)sh.
-
- Andre--
- --
- There is no reason for any individual to have a computer in | Andre Hoekstra
- their home. (Ken Olson, Ex-President Digital Equipment, 1977) | Enschede -- NL
-