How to Submit Custom Jobs to the Cluster

From Center for Cognitive Neuroscience
Revision as of 00:28, 7 July 2011 by Elau (talk | contribs) (Undo revision 2713 by Aenalb (talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In order to quickly submit any job the cluster, create a script named q.sh that contains the following:

qsub <<CMD
#!/bin/bash
#$ -cwd
#$ -j y
#$ -S /bin/bash
#$ -V
#$ -l highp,h_data=1024M
$@
CMD

Then at the hoffman command line, just type:

> q.sh <your_command>

This script uses qsub to submit your command to the cluster.