Simple job example

From MediaWiki

(Difference between revisions)
Jump to: navigation, search
(Created page with '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 queu…')
Line 3: Line 3:
1. Login on ui.ipb.ac.rs:
1. Login on ui.ipb.ac.rs:
-
  ssh ngrkic@ui.ipb.ac.rs
+
  $ ssh ngrkic@ui.ipb.ac.rs
2. Navigate to your folder in nfs filesystem.
2. Navigate to your folder in nfs filesystem.
-
  cd /nfs/ngrkic
+
  $ cd /nfs/ngrkic
-
3. Download tgz archive from this wiki page.
+
3. Download tgz archive with example files.
-
  wget http://wiki.ipb.ac.rs/images/d/db/Serial.tgz
+
  $ wget http://wiki.ipb.ac.rs/images/d/db/Serial.tgz
4. Extract archive :
4. Extract archive :
-
  tar xvzf Serial.tgz
+
  $ tar xvzf Serial.tgz
5. Enter Serial folder :
5. Enter Serial folder :
-
  cd Serial
+
  $ cd Serial
-
6.
+
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

Revision as of 19:39, 11 October 2011

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