Now I am really confused. I am accustomed to being able to change from the login shell, which in the case of my 9.3 installation is the bash shell, to the C shell by entering csh in a terminal. Suddenly, if I try that I get an error message: computation@abnormal:~/CompChem/nwchem-4.7> csh /usr/bin/.: Permission denied. (csh is linked to tcsh in /usr/bin and invokes the same error message) Yet, I have a number of programs that run in the C shell. I just tried to run one of them, ecce, and it still works. I have written a script that starts the server: #!/bin/csh /home/computation/ecce-v3.2.2/server/ecce-utils/start_ecce_server So apparently the script will evoke the C shell. If I change to root I can switch to the C shell. How can I, once again, accomplish this as a user? Thanks in advance. -- Stephen P. Molnar, Ph.D. Life is a fuzzy set Foundation for Chemistry Stochastic and multivariant http://www.geocities.com/FoundationForChemistry
Stephen P. Molnar, Ph.D. writes:
Now I am really confused. I am accustomed to being able to change from the login shell, which in the case of my 9.3 installation is the bash shell, to the C shell by entering csh in a terminal.
Suddenly, if I try that I get an error message:
computation@abnormal:~/CompChem/nwchem-4.7> csh /usr/bin/.: Permission denied.
Seems something in your .cshrc or another csh startup script is using the Bourne/Bash shell syntax ". somefile" to "source" another file. Csh doesn't understand that syntax, and tries to execute a program called ".", and /usr/bin happens to be the first directory in its PATH, and you can't execute /usr/bin/. (which is a directory). -Ti -- Ti Kan http://www.amb.org/ti Vorsprung durch Technik
Many thanks for your reply. That was it. I had made an entry in .cshrc that was the culprit. I wasn't really losing what few marbles I have left. All is now well!!! On Wednesday May 18, 2005 08:03 am, Ti Kan wrote:
Stephen P. Molnar, Ph.D. writes:
Now I am really confused. I am accustomed to being able to change from the login shell, which in the case of my 9.3 installation is the bash shell, to the C shell by entering csh in a terminal.
Suddenly, if I try that I get an error message:
computation@abnormal:~/CompChem/nwchem-4.7> csh /usr/bin/.: Permission denied.
Seems something in your .cshrc or another csh startup script is using the Bourne/Bash shell syntax ". somefile" to "source" another file. Csh doesn't understand that syntax, and tries to execute a program called ".", and /usr/bin happens to be the first directory in its PATH, and you can't execute /usr/bin/. (which is a directory).
-Ti -- Ti Kan http://www.amb.org/ti Vorsprung durch Technik
-- Stephen P. Molnar, Ph.D. Life is a fuzzy set Foundation for Chemistry Stochastic and multivariant http://www.geocities.com/FoundationForChemistry
participants (2)
-
Stephen P. Molnar, Ph.D.
-
ti@amb.org