Home >> Reference Materials >> Computational Resources >> PBS Tutorial >> PBS Scripts
  Login

CCC PC Cluster

PBS Scripts

To submit a job you need to create an execution script in the directory from which you are going to run the job. PBS directives are specified as comments in the script. In particular, all lines beginning with #PBS are PBS directives. After the PBS directives is the body of the script - commands which are executed when the script runs. Here is a sample PBS script.

# This is a sample PBS script

# Request 200 MB of memory
#PBS -l mem=200mb

# Request 1 hour 10 minutes of wallclock time (not CPU time!)
#PBS -l walltime=1:10:00

# The following is the body of the script. By default,
# PBS scripts execute in your home directory, not the 
# directory from which they were submitted. The following
# line places you in the directory from which the job 
# was submitted
cd $PBS_O_WORKDIR

# Now we want to run Psi3 which is sourced in your path.
psi3
For our simple system setup you only must specify the command(s) to run. Hence, the following will do:
cd $PBS_O_WORKDIR
psi3
Please note that you do not have to make the script executable. Also, it is no longer necessary (or desirable) to specify the number of nodes needed in the script. As discussed below, the number and type of nodes are determined by the choice of submission queue.

Continue on to How to submit a job.

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