1834060 Members
3218 Online
110063 Solutions
New Discussion

Re: user running csh

 
SOLVED
Go to solution
Robert Dukes
Advisor

user running csh

Hi, ive set up a new user to use the csh shell, and when the user logs in he is getting the following message:-

setenv: Too few arguments.
[1] %

Should there be any arguments after /usr/bin/csh in the /etc/passwd file ?
How do i get rid of it?

Cheers,
5 REPLIES 5
Stephen Keane
Honored Contributor

Re: user running csh

Check the following files

System wide ...

/etc/csh.login

For the particular user ...

~/.cshrc
~/.login

Stephen Keane
Honored Contributor

Re: user running csh

Sorry, you are looking for either a setenv command with no arguments, or a setenv command with only one argument when there should be 2
Sanjay Kumar Suri
Honored Contributor
Solution

Re: user running csh

The setenv command is used to set environment variables whose values are global to the shell and any process it creates. For example:

setenv TERM hpterm

sets the value of the environment variable TERM to hpterm.

There has to be some argument after setenv. Nothing has to be done at /etc/passwd level.

Check the /etc/csh.login or $HOME/.cshrc file and make corrections.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Robert Dukes
Advisor

Re: user running csh

Thanks very much for your help, your responses have solved it. Might be useful for some other folks who have CA NSM running on their HP Boxes. What had happened is that as part of the installation of the CA NSM Unix Client, it had automatically put an entry into /etc/csh.login:-

export CA_DB

And it did not have a second argument.

Looks like a bug in the CA NSM Installation scripts....!

I dont normally use C-shell and it was only for one of our developers that use it!

Thanks again.
Robert Dukes
Advisor

Re: user running csh

Closing post.