We help IT Professionals succeed at work.

Strange output on csh startup

qtluong
qtluong asked
on
Medium Priority
293 Views
Last Modified: 2013-12-15
Whenever I start csh, I get this strange output, like some programs got executed

[terragalleria@server1 ~]$ csh
hello
hello
hello
hello
hello
hello
dircolors: `/var/www/vhosts/terragalleria.com/.dir_colors.xterm-color': No such file or directory
egrep: /var/www/vhosts/terragalleria.com/.dir_colors.xterm-color: No such file or directory

Same happens on call of any script written in csh. However, there is no .cshrc file and the .login file is limited to setting a path and running .tcshrc, which in turn contains nothing but a list of alias. I am running Red Hat EL 4. I assume there is a file that csh is executing, but which one ?

Tuan.
http://www.terragalleria.com
Comment
Watch Question

Top Expert 2011
Commented:
check
/etc/csh.cshrc
/etc/csh.login
/etc/profile.d/*.csh
Those files are sourced for  starting a C shell.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Yes, there was something wrong in /etc/profile.d/colorls.csh
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.