Viewing the status of jobs and the cluster:
sinfo - view the cluster status
sview - requires X11 forwarding, gui interface provides lots of information including that for
individual jobs
smap - similar to sview, but does not require X11 forwarding
squeue -u $USER - lists jobs for $USER only
Running interactive jobs, e.g., for running R:
salloc --nodes=1 --ntasks-per-node=1 -p interactive
srun --pty R
Running jobs via the queue:
Simple jobs can be specified in a bash script and submitted via the qsub command.
Here is a very simple example script. Assume that it is saved as the file pbs.sh.
#!/bin/bash
#PBS -N myjob
#PBS -l nodes=1:ppn=1
#PBS -q batch
sleep 1200
qsub job.sh - this submits the job, which runs the unix command sleep
A bash submission file can be written and submitted via a perl wrapper. This can also use the q* commands.
More complex scripts might benefit from the sbatch commands.