LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Any body knows why I'm not be able to switch to c-shell? (https://www.linuxquestions.org/questions/linux-newbie-8/any-body-knows-why-i%27m-not-be-able-to-switch-to-c-shell-636838/)

donlobeto 04-21-2008 01:44 PM

Any body knows why I'm not be able to switch to c-shell?
 
:confused:
Can any body help me here.

basically my default account is in bash and if I try to switch to c-shell using "csh" I'm getting the following line:


/etc/cshrc: Command not found.

so, what am i doing wrong? and how to fix it?


Thanks is advance

-donlobeto
:confused:

DotHQ 04-21-2008 02:05 PM

Sounds like you do not have permission to use the csh shell.
Are you root when you type csh?

donlobeto 04-21-2008 02:13 PM

Quote:

Originally Posted by DotHQ (Post 3128185)
Sounds like you do not have permission to use the csh shell.
Are you root when you type csh?

No, I'm not a root. I'm login to my college account and I'm suppose to have access to c-shell since we are learning c-shell scripting.

Is there a way to know for sure if I don't have permissions to use the csh before I send an email to my teacher?

thanks

-donlobeto

BrianK 04-21-2008 02:22 PM

Sounds more like your environment doesn't have the necessary config for csh.

As a test, try running "csh -f" - which will load csh without trying to run any resource files. You should get a simple '%' as a prompt & be able use the shell like normal-ish.

If that's the case, then talk to your admin as to why you can't run csh. if that doesn't work, tell us what happened.

konsolebox 04-22-2008 04:15 AM

perhaps creating an empty file can fix the problem. as root do:
Code:

: > /etc/cshrc
chmod 0755 /etc/cshrc


donlobeto 04-23-2008 12:38 PM

Quote:

Originally Posted by donlobeto (Post 3128174)
:confused:
Can any body help me here.

basically my default account is in bash and if I try to switch to c-shell using "csh" I'm getting the following line:


/etc/cshrc: Command not found.

so, what am i doing wrong? and how to fix it?


Thanks is advance

-donlobeto
:confused:



Thank you all for your responses.
My account is working OK now.
I sent an email to my teacher and he just said that he was doing some changes to the system that may be the cuase.
I don't know what it was but I'm glad I was not the one causing the problem.
Thanks you all.


All times are GMT -5. The time now is 10:00 AM.