Simple job example

From MediaWiki

Revision as of 19:39, 11 October 2011 by Ngrkic (Talk | contribs)
Jump to: navigation, search

In this exercise user should obtain prepared simple job, extract archive, list content of files, submit job on PARADOX cluster and monitor his progress with information from queue.

1. Login on ui.ipb.ac.rs:

$ ssh ngrkic@ui.ipb.ac.rs

2. Navigate to your folder in nfs filesystem.

$ cd /nfs/ngrkic

3. Download tgz archive with example files.

$ wget http://wiki.ipb.ac.rs/images/d/db/Serial.tgz

4. Extract archive :

$ tar xvzf Serial.tgz

5. Enter Serial folder :

$ cd Serial

6. List content of folder:

$ ll

7. List content of job.pbs and job.sh files:

$ cat job.pbs
#!/bin/bash
#PBS -q hpsee
#PBS -l nodes=1:ppn=1
#PBS -l walltime=10:00:00
#PBS -e ${PBS_JOBID}.err
#PBS -o ${PBS_JOBID}.out

cd $PBS_O_WORKDIR
chmod +x job.sh
./job.sh
cat job.sh
#!/bin/bash
date
hostname
pwd
sleep 120
Personal tools