...
Code Block |
---|
qcat jobID
qcat -e jobID
qtail jobID
qtail -e jobID |
Job submitting
There are several ways jobs can be submitted:
- by interactive submission
- using a script
- in an interactive session
- job queue
in the case of interactive submission, directly calling the qsub command will open a text editor in the terminal, through which the commands for execution are submitted:
Code Block |
---|
|
# run qsub
[korisnik@x3000c0s25b0n0:~] $ qsub
Job script will be read from standard input. Submit with CTRL+D.
echo "Hello world"
14571.x3000c0s25b0n0.hsn.hpc.srce.hr
# print directory content
[korisnik@x3000c0s25b0n0:~] $ ls -l
total 5140716
-rw------- 1 korisnik hpc 0 Jun 1 07:44 STDIN.e14571
-rw------- 1 korisnik hpc 12 Jun 1 07:44 STDIN.o14571
# print output file content
[korisnik@x3000c0s25b0n0:~] $ cat STDIN.o14571
Hello world |
In the case of script submission, we can specify the commands to be executed in the input file that we submit:
Code Block |
---|
|
# print file hello.sh
[korisnik@x3000c0s25b0n0:~] $ cat hello.sh
#!/bin/bash
#PBS -N hello
echo "Hello world"
# submit job script
[korisnik@x3000c0s25b0n0:~] $ qsub hello.sh
14572.x3000c0s25b0n0.hsn.hpc.srce.hr
# print directory content
[korisnik@x3000c0s25b0n0:~] $ ls -l
total 5140721
-rw------- 1 korisnik hpc 0 Jun 1 07:44 STDIN.e14571
-rw------- 1 korisnik hpc 12 Jun 1 07:44 STDIN.o14571
-rw------- 1 korisnik hpc 0 Jun 1 08:02 hello.e14572
-rw------- 1 korisnik hpc 12 Jun 1 08:02 hello.o14572
-rw-r--r-- 1 korisnik hpc 46 Jun 1 07:55 hello.sh
# print output file content
[korisnik@x3000c0s25b0n0:~] $ cat hello.o14572
Hello world |