[gridengine users] Why is .cshrc read automatically

Jesse Connell jesse08 at bu.edu
Tue May 10 20:37:39 UTC 2016

Hi Mun,

What's the shell set to for the queue?  If I remember right csh is the 
default (and it'll use the default if you don't specify -S).  For example:

For our setup "qconf -sconf | grep shell" shows:

shell_start_mode             posix_compliant
login_shells                 sh,bash,ksh,csh,tcsh

and "qconf -sq somequeue | grep shell" shows:

shell                 /bin/bash
shell_start_mode      posix_compliant

We recently switched the shell from /bin/csh to /bin/bash on each queue 
since so few were using csh anyway.  This still tries to source 
.bash_profile, since it'll be a login shell either way.  (Is that the 
part that's problematic, though, as opposed to csh vs. bash?)


On 05/10/2016 01:30 PM, Mun Johl wrote:
> Hi,
> I'm running OGS/GE 2011.11p1 on CentOS 6.5 .
> I have noticed that for some reason ~/.cshrc is read automatically for
> every qsub command I issue.  My default environment is actually Bash; I
> only put a .cshrc in my home dir to test something for a peer and then I
> noticed qsub would read the .cshrc file automatically (which negatively
> affected my jobs).
> I do not have a .sge_request file in my home dir nor in the dir from
> where I launch qsub.  And my qsub options do not include -S .
> I've tried various SGE DEBUG LEVELs, but none that I've tried have left
> breadcrumbs as to why ~/.cshrc was being read.
> This is driving me crazy, so any insight would be helpful.  Yes, I
> _could_ just remove the .cshrc file, but others here actually use
> csh/tcsh and could be affected by this as well.  Therefore, I'd like to
> root cause the issue if possible.
> Thanks,
> --
> Mun
> _______________________________________________
> users mailing list
> users at gridengine.org
> https://gridengine.org/mailman/listinfo/users

More information about the users mailing list