#!/bin/sh # # Script to parallelize encoding of MP3's # #$ -N Job Name MP3=$1 date /home/gmkurtzer/bin/bladeenc -q -outdir=/home/gmkurtzer/mp3s/ $MP3 dateAssuming you saved this script as '/home/gmkurtzer/queue.sh', you can submit the job with the command:
$ qsub /home/gmkurtzer/queue.shAnd can make it consume both CPU's by:
$ qsub -l CPU=2 /home/gmkurtzer/queue.shnote: This does not mean that this job will run in parallel, rather it will tell the schedualler to mark both slots as full!
The command 'qstat' is the tool you should use to monitor the jobs that are in the queue and running. Here is some example usage:
Listing all queues:
$ qstat -fGetting more information on a specific queue:
# qstat -j [JOB ID]