home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / question / 13841 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.7 KB  |  43 lines

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