...
Users should edit their shell scripts to add special directives to the queue system, beginning with "#PBS", that request resources, declare a required walltime, and direct standard output and error. Users can then "submit" their job using commands like "qsub," as described in the next section. Advanced details can be found in Section 2.1 of the Torque user manual.
A simple example of such a script can be found in the attached apoa.sh, which runs the ApoA1 benchmark. Other examples have been posted on the Script Library page, including an example documenting how to submit multiple similar jobs, using Torque's JobID Array functionality.
A job name is assigned with a "#PBS -N" statement, the destination queue is specified using a "#PBS -q" statement:
...