Chapter 2: Deploying Torque (Open PBS)
Testing PBS
Now any user on nodeb should be able to directly submit a job to be run via PBS and should be able to query the state of the job. To test as user 'jane' run the following command, under the 'jane' account from the 'jane' home directory, to submit a job that will sleep for one minute and then print out the current time and date:
[jane@nodeB ~]$ echo "sleep 60;date" | /opt/pbs/bin/qsub
You should see the following ouput:
4.nodeb.ps.univa.com
Note that '4' might be a different integer, depending on exactly how many times you run this command. It is a simple job ID.
To query for the status of the sleep job run:
[jane@nodeB ~]$ /opt/pbs/bin/qstat
| Job id | Name | User | Time Use | S | Queue |
| ------------------- | ---------------- | ---------------- | -------- | - | ----- |
| 4.nodeb | STDIN | jane | 0 | R | batch |
After the job completes user jane should have the following files in her home directory:
[jane@nodeB ~]$ ls
STDIN.e4 STDIN.o4
The "STDIN.o4" file will contain the standard out from the job. It should be the time and date:
[jane@nodeB ~]$ cat STDIN.o4
Thu Feb 9 17:09:53 CST 2006
|