Main menu

Navigation

problem running under BASH shell

4 posts / 0 new
Last post
murphys
problem running under BASH shell

From Mike Dvorak:

I've been running CCSM3.0 on the Argonne Jazz cluster recently. I had a lot of
problems getting CCSM to run when my shell was set to bash. I was getting
errors along the lines of "logname not found" and "LOGNAME not found" in some of
the component model log files.

Finally, I switched my default shell to tcsh and it worked. I think the problem
is that you are using "#! /bin/csh -f" in the $CASENAME.$MACH.run files. The
"-f" options doesn't acquire all of the environment you would expect. I changed
the line to "#! /bin/tcsh" this afternoon and was able to submit the jobs under
the bash environment (I assume just "#! /bin/csh" would work the same way).

Is there some way you can just get rid of that "-f" option, at least for the
Jazz configuration?

CCSM User Support

murphys

We are not supporting bash shell. The reason that the -f option appears
in the shell scripts is so that settings in the user's .cshrc file will
not conflict with possible environment variable settings in the scripts.
You are free to remove this for his runs - but we do not plan to
officially support anything but csh in the scripts for now.

CCSM User Support

jedwards

I believe that you can use bash or another shell. You just need to have a .cshrc file in place.

CESM Software Engineer

gcarr@...

Although it might be possible to run the CCSM scripts from a shell other than csh, some users may not be able to set this up on their own. Getting the CCSM scripts to run on all supported platforms with csh (and perl) has proven tougher than you might imagine. CSH is not the same on every platform (scripts written that worked on early machines did not always work on additional machines). Our regression testing requirement and limited staff forced us to choose one. We chose csh.

George R Carr Jr
NCAR/CGD
eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%67%63%61%72%72%40%75%63%61%72%2e%65%64%75%22%20%63%6c%61%73%73%3d%22%62%62%2d%65%6d%61%69%6c%22%3e%67%63%61%72%72%40%75%63%61%72%2e%65%64%75%3c%2f%61%3e%27%29%3b'))

Log in or register to post comments

Who's new

  • ezhu@...
  • 1260680980@...
  • liruichao@...
  • krc139@...
  • wilim@...