tcsh not accessing /etc/csh.cshrc

tcsh not accessing /etc/csh.cshrc

Post by Mattias Borel » Wed, 25 Feb 1998 04:00:00




> I've just compiled tcsh v6.07.02 on Sun-Ultra-1 running Solaris 2.5.1
> I was
> under the impression that the access of login files goes like this...
> 1-/etc/csh.cshrc; 2-/etc/csh.login; 3-~/.tcshrc or ~/.cshrc; 4-~/.login

> When
> logging in, my tcsh accesses ~/.cshrc and /etc/.login
> Why doesn't it and how
> can I get it to access /etc/csh.cshrc and
> /etc/csh.login?

Well, as you're on Solaris 2.x.x, you should try with /etc/.[cshrc|login]
Works like a charm. Mentioned in the install-docs, I think.
Or better yet, in the FILES section at the bottom of the man-page. :-)

/Mattias
----------------------------------------------------------
Mattias Borell, Software Engineer at NetLab, R&D dept. of:
Lund University Library, P.O.Box 3, S-221 00  Lund, Sweden

Fax: int+46 46 2223682   URL: http://www.ub.lu.se/~mattias

 
 
 

tcsh not accessing /etc/csh.cshrc

Post by Casper H.S. Dik - Network Security Engine » Wed, 25 Feb 1998 04:00:00


[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]


>I've just compiled tcsh v6.07.02 on Sun-Ultra-1 running Solaris 2.5.1 I was
>under the impression that the access of login files goes like this...
>1-/etc/csh.cshrc; 2-/etc/csh.login; 3-~/.tcshrc or ~/.cshrc; 4-~/.login When
>logging in, my tcsh accesses ~/.cshrc and /etc/.login Why doesn't it and how
>can I get it to access /etc/csh.cshrc and /etc/csh.login?

Tcsh on Solaris uses the defaults from Solaris.

So it accesses:
        /etc/.cshrc
        /etc/.login
        ~/.cshrc (or ~/.tcshrc)
        ~/.login

The csh.cshrc and cshrc.login are defautls tcsh uses for system that use
no standard csh startup scripts.

The defaults for Solaris are chosen to make it more compatible w/ Solaris
tcsh.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

1. crontab entries not executing; problem with limit in /etc/csh.cshrc ?

Hello:

I'm getting closer to a solution of my crontab problem, but it's still
not resolved.  I'm using vixie-cron with SHELL=/bin/tcsh in my crontab
file.  Everything worked fine for months until recently.  Now, without
having changed the crontab file or any of the commands called by it, I
get

        limit: coredumpsize: Can't set limit

for each line in my personal crontab file.  This is apparently in
response to the line

        limit coredumpsize 1000000

in /etc/csh.cshrc.  The crontab entries sometimes gets executed;
sometimes not.  I even experimented with a very simple

        0 13 * * * mkdir /home/alan/crontest

line, with the same bizarre behavior.  In any case, I don't have a
working crontab and I'd like to get it back up and running.

A few questions/observations:

1)  Entries in root's crontab don't generate this response.  (Is there
some deny or allow file I should be looking for?)

2)  This never used to happen until I installed a new bash.  If I'm
using tcsh, why on earth would this make a difference?  Maybe I'm wrong
about the bash;  something *else* I changed right around the same time
as installing the new bash?  sh-utils perhaps?  (Clearly grasping here.)

3)  I never knew you *could* limit the coredumpsize until this started,
but don't really want to disable or redefine the limit command, as one
respondent suggested.  (I think he was suggesting something like alias
crontab "" in /etc/csh.cshrc.)  Again, why would this start all of a
sudden?  Surely the `limit coredumpsize' line has been there in
/etc/csh.cshrc all along.

Please help.  I'm stumped.

Also, for the simple practical reason that my ISP has a very short
attention span with respect to the Usenet, please send a cc to

Thanks,
--Alan Vlach

2. Intranet Web Serv, users /etc/passwd and Unix file permisions

3. Q: How to reload /etc/csh.cshrc script

4. serial and keyboard problem

5. TCSH not execing /etc/csh.*

6. My Mac IIci won't boot MacBSD

7. tcsh on Solaris not reading /etc/csh.* files

8. Efax setup

9. Help Wanted: tcsh clashes with ftp access (csh does not)

10. Help to find a good book on csh/tcsh to teach myself csh/tcsh script

11. tcsh not reading bindkey from .cshrc

12. su under tcsh does not execute the new user's .cshrc

13. Switching to Tcsh from Csh, no /etc/shell