Home >> Reference Materials >> Computational Resources >> Shell Init Scripts
  Login

CCC PC Cluster

Shell Init Scripts

Reminder: When you log into a UNIX system, a shell process is started. The shell process reads in the user-specific configuration information from .login and .cshrc files (for c-shell).

First of all, you need to make sure that your shell config scripts do not set terminal or other properties uncontrollably. This means that you need to check for existance of some environment variables, like $TERM, before their values are tested. E.g. instead of

if ( $TERM == 'xterm' ) then
  echo 'this is an xterm'
endif
use
if ( $?TERM == 1 ) then
  if ( $TERM == 'xterm' ) then
    echo 'this is an xterm'
  endif
  ... do other terminal stuff here ...
endif
Unless you do this, your PBS jobs may not execute, and as a result you will get messages like:
TERM: undefined variable

Continue on to Introduction to the Portable Batch System.

Events Calendar (Next 7 Days)
Southeastern Theoretical Chemistry Association
Professor David Dixon
Date:16 May 2008
Location:The University of Alabama
Adventures in Deutschland
Jeremiah Wilke
Date:20 May 2008
Location:CCC Room 401
Time:03:30 PM
<< May 2008 >>
S
M
T
W
T
F
S
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31