#!/bin/bash if [ ! -n "$1" ] then echo "Usage: `basename $0` <wildcard> (<python>)" exit 1 fi files=$1 #read in python that works e.g. /usr/local/python-2.7.6/bin/python python='python' if [ -n "$2" ] then python=$2; fi for file in $files do qsub -cwd -q compute.q -l hostslots=1 src/qsub_char_clust.sh $file $python done