Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
csh probably somewhere has an unsleeping loop that waits for a condition or an event. You can try building and installing a new version of it (csh or tcsh) but make sure it doesn't break your system.
Last edited by konsolebox; 08-02-2013 at 07:47 AM.
Reason: a condition or
I am currently trying to find the error in the scripts. What I am doing is, I am printing timestamps into a log file which then gives me clues which script does eat up so much CPU (and taking 10 seconds for it).
**** code im inserting into various scripts
echo "`date` begin .cshrc" <</tmp/test.log
The output tells me that the following after having logged in at 15:22:25
Fri Aug 2 15:22:25 CEST 2013 begin etc/csh.login
Fri Aug 2 15:22:25 CEST 2013 end etc/csh.login
Fri Aug 2 15:22:25 CEST 2013 begin.cshrc
Fri Aug 2 15:22:25 CEST 2013 end.cshrc
-> this means that the script that has problems is executed after .cshrc
I have tried to google for "linux user login scripts" but had little luck, can anyone tell me which scripts are called after .cshrc??
So clearing the history file did it. Now the login works quick and cpu is at 1.7%.
I figure the history file was huge. I wonder why that is not the case on my other server that is still running centos 5.5
I have checked in bashrc in both servers and there is no comment that would limit the history file size.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.